mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-11-26 14:46:23 -05:00
Made the Space Invaders game. Argh matey! (#2709)
* Made the Space Invaders game. Argh matey! * Format code, sigh.
This commit is contained in:
parent
c0aa4a1738
commit
7b91103118
5 changed files with 1039 additions and 0 deletions
69
firmware/application/external/spaceinv/main.cpp
vendored
Normal file
69
firmware/application/external/spaceinv/main.cpp
vendored
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
/*
|
||||
* ------------------------------------------------------------
|
||||
* | Made by RocketGod |
|
||||
* | Find me at https://betaskynet.com |
|
||||
* | Argh matey! |
|
||||
* ------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include "ui.hpp"
|
||||
#include "ui_spaceinv.hpp"
|
||||
#include "ui_navigation.hpp"
|
||||
#include "external_app.hpp"
|
||||
|
||||
namespace ui::external_app::spaceinv {
|
||||
void initialize_app(ui::NavigationView& nav) {
|
||||
nav.push<SpaceInvadersView>();
|
||||
}
|
||||
} // namespace ui::external_app::spaceinv
|
||||
|
||||
extern "C" {
|
||||
|
||||
__attribute__((section(".external_app.app_spaceinv.application_information"), used)) application_information_t _application_information_spaceinv = {
|
||||
(uint8_t*)0x00000000,
|
||||
ui::external_app::spaceinv::initialize_app,
|
||||
CURRENT_HEADER_VERSION,
|
||||
VERSION_MD5,
|
||||
|
||||
"Space Invaders",
|
||||
{
|
||||
0x18,
|
||||
0x3C,
|
||||
0x7E,
|
||||
0xDB,
|
||||
0xFF,
|
||||
0xFF,
|
||||
0x24,
|
||||
0x66,
|
||||
0x42,
|
||||
0x00,
|
||||
0x24,
|
||||
0x18,
|
||||
0x24,
|
||||
0x42,
|
||||
0x81,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
},
|
||||
ui::Color::yellow().v,
|
||||
app_location_t::GAMES,
|
||||
-1,
|
||||
|
||||
{0, 0, 0, 0},
|
||||
0x00000000,
|
||||
};
|
||||
} // namespace ui::external_app::spaceinv
|
||||
Loading…
Add table
Add a link
Reference in a new issue