-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain_Menu.cpp
54 lines (47 loc) · 907 Bytes
/
Main_Menu.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <bits/stdc++.h>
#include "FlappyBirdWindow.cpp"
#include "Menu_Components.cpp"
#include "tic.cpp"
#include "15square.cpp"
using namespace std;
//void Snake_Game(){}
//void Infinite_Runner(){}
Fl_Window* window = new Fl_Window(800,800,"Menu");
Menu *m;
void ShowMenu(){
window->show();
}
int IR1(){
window->hide();
IR();
return (Fl::run());
}
int Flappy_UFO(){
window->hide();
b->initBird();
bo.init_Obstacles();
window2.color(247);
window2.end();
window2.show();
Fl::add_timeout(0.04, callback);
return (Fl::run());
}
int Tic_Tac_Toe(){
window->hide();
Play_Tic();
return (Fl::run());
}
int Puzzle(){
window->hide();
Play_Puzzle();
return (Fl::run());
}
int main(){
m=new Menu();
m->initMenu();
window->end();
window->show();
return (Fl::run());
}