-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameViewController.h
More file actions
42 lines (34 loc) · 883 Bytes
/
GameViewController.h
File metadata and controls
42 lines (34 loc) · 883 Bytes
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
//
// GameViewController.h
// flappy
//
// Created by Rachel on 15/12/19.
// Copyright © 2015年 Rachel. All rights reserved.
//
#import <UIKit/UIKit.h>
int bird_speed;
int old_height;
int random_toptunnel_pos;
int random_bottomtunnel_pos;
int score;
@interface GameViewController : UIViewController
{
IBOutlet UIImageView* imview_bird;
IBOutlet UIButton *btn_startgame;
IBOutlet UIImageView* imview_tunnel_top;
IBOutlet UIImageView* imview_tunnel_bottom;
IBOutlet UIImageView* imview_top;
IBOutlet UIImageView* imview_bottom;
NSTimer *timer_bird_move;
NSTimer *timer_tunnel_move;
IBOutlet UILabel* label_gameover;
IBOutlet UILabel* label_score;
IBOutlet UIButton* btn_return;
}
-(void)Gameover;
-(IBAction)Startaction:(id)sender;
-(void)BirdMoving;
-(void)TunnelMoving;
-(void)PlaceTunnels;
-(void)IncScore;
@end