Mercurial > molko
comparison libmlk-adventure/adventure/state/splashscreen.c @ 299:648f5f949afb
core: implement stackable states
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sun, 11 Apr 2021 16:41:34 +0200 |
parents | 196264679079 |
children | d01e83210ca2 |
comparison
equal
deleted
inserted
replaced
298:196264679079 | 299:648f5f949afb |
---|---|
73 struct self *self = state->data; | 73 struct self *self = state->data; |
74 | 74 |
75 self->elapsed += ticks; | 75 self->elapsed += ticks; |
76 | 76 |
77 if (self->elapsed >= DELAY) | 77 if (self->elapsed >= DELAY) |
78 game_switch(state_mainmenu_new(), 0); | 78 game_push(state_mainmenu_new()); |
79 } | 79 } |
80 | 80 |
81 static void | 81 static void |
82 draw(struct state *state) | 82 draw(struct state *state) |
83 { | 83 { |