Version 1.3.4 on master
This commit is contained in:
commit
cbcf50295a
BIN
Plague.g1a
BIN
Plague.g1a
Binary file not shown.
19
src/core.c
19
src/core.c
|
@ -161,23 +161,6 @@ int callback_tick(volatile int *tick)
|
|||
void message(char *msg)
|
||||
{
|
||||
display_message(msg);
|
||||
getkey();
|
||||
|
||||
int key = 0, frame = 0;
|
||||
|
||||
static volatile int tick = 1;
|
||||
int t = timer_configure(TIMER_ANY, DNA_ANIMATION_TICK*1000, GINT_CALL(callback_tick, &tick));
|
||||
if (t >= 0) timer_start(t);
|
||||
|
||||
while (!key)
|
||||
{
|
||||
while(!tick) sleep();
|
||||
tick = 0;
|
||||
|
||||
key = rtc_key();
|
||||
display_dna_animation(frame);
|
||||
|
||||
frame = (frame + 1) % 16;
|
||||
}
|
||||
|
||||
if (t >= 0) timer_stop(t);
|
||||
}
|
||||
|
|
|
@ -198,13 +198,3 @@ void display_message(char *msg)
|
|||
}
|
||||
|
||||
|
||||
void display_dna_animation(const int frame)
|
||||
{
|
||||
extern const bopti_image_t img_dna;
|
||||
|
||||
dsubimage(2, 3, &img_dna, 8 * frame, 0, 7, 12, DIMAGE_NONE);
|
||||
dsubimage(42, 3, &img_dna, 8 * ((frame + 2) % 16), 0, 7, 12, DIMAGE_NONE);
|
||||
dupdate();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -21,7 +21,4 @@ void display_mutation_description(const char *name, const char *description, con
|
|||
// output_error : display text and message background
|
||||
void display_message(char *msg);
|
||||
|
||||
// display_dna_animation : display the DNA according to the frame number
|
||||
void display_dna_animation(const int frame);
|
||||
|
||||
#endif /* _PLAGUE_DISPLAY_ENGINE_H */
|
|
@ -1,6 +1,10 @@
|
|||
/*
|
||||
Project name ......: Plague
|
||||
<<<<<<< HEAD
|
||||
Version ...........: 1.3.3
|
||||
=======
|
||||
Version ...........: 1.3.4
|
||||
>>>>>>> dev
|
||||
Last modification .: 5 June 2021
|
||||
|
||||
code and assets provided with licence :
|
||||
|
@ -20,7 +24,7 @@
|
|||
#include "mutation_engine.h"
|
||||
#include "save.h"
|
||||
|
||||
const char *VERSION = "1.3.3";
|
||||
const char *VERSION = "1.3.4";
|
||||
|
||||
// title_screen : display the title screen
|
||||
static void title_screen(void);
|
||||
|
|
Loading…
Reference in New Issue