Version 1.3.4 on master

This commit is contained in:
Shadow15510 2021-06-06 16:21:37 +02:00
commit cbcf50295a
5 changed files with 6 additions and 32 deletions

Binary file not shown.

View File

@ -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);
}

View File

@ -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();
}

View File

@ -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 */

View File

@ -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);