Skip to content

Commit

Permalink
Add more obvious way to start game
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairmcmillan committed Dec 2, 2016
1 parent da0aa7d commit 211fe5d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions MBGame.m
Expand Up @@ -67,10 +67,13 @@ - (void)update_info
// private
- (void)draw_logo
{
char str[15];
[ui UI_clear];
[ui UI_draw:logo
:(screensize - [ui UI_picture_width:logo]) / 2
:(screensize - [ui UI_picture_height:logo]) / 2];
sprintf(str, "Click to start");
[ui UI_draw_str:str :167 :screensize/7*5];
}

- (void)Game_start:(int)newlevel
Expand Down Expand Up @@ -134,6 +137,11 @@ - (void)Game_button_release:(int)x :(int)y
int i;
[ui UI_set_cursor:defaultcursor];

if (state == STATE_WAITING) {
[self Game_start:1];
return;
}

if (state != STATE_PLAYING)
return;

Expand Down

0 comments on commit 211fe5d

Please sign in to comment.