Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
engine.h
00001 /** My Life Class 00002 * @dudge the situation of the game 00003 * @author Huo Yuheng 00004 * @date May, 2020 00005 */ 00006 #ifndef ENGINE_H 00007 #define ENGINE_H 00008 00009 #include "chara.h" 00010 #include "life.h" 00011 #include "Bitmap.h" 00012 #include "N5110.h" 00013 #include "Gamepad.h" 00014 00015 /** details of obscale */ 00016 struct obs{ 00017 int x; 00018 int y; 00019 int width; 00020 int height; 00021 int *data; 00022 }; 00023 00024 /** the situation of the player */ 00025 enum events{ 00026 DEAD, 00027 NONE, 00028 }; 00029 class engine{ 00030 public: 00031 void init(); 00032 /** check situation */ 00033 events event_check(chara &p, obs &b, Gamepad &pad); 00034 /** making random obscale */ 00035 int randomobs(); 00036 }; 00037 #endif 00038
Generated on Mon Jul 18 2022 01:51:48 by
1.7.2