diff --git a/game.cpp b/game.cpp index 7bacfa5..d3ecfdd 100644 --- a/game.cpp +++ b/game.cpp @@ -2,43 +2,28 @@ using namespace blit; -/////////////////////////////////////////////////////////////////////////// -// -// init() -// // setup your game here -// void init() { - set_screen_mode(ScreenMode::hires); + set_screen_mode(ScreenMode::hires); // lores is the default } -/////////////////////////////////////////////////////////////////////////// -// -// render(time) -// -// This function is called to perform rendering of the game. time is the -// amount if milliseconds elapsed since the start of your game -// +// This function is called to perform rendering of the game. +// `time` is the amount of milliseconds elapsed since the device was last reset. void render(uint32_t time) { // clear the screen -- screen is a reference to the frame buffer and can be used to draw all things with the 32blit + screen.pen = Pen(0, 0, 0); screen.clear(); // draw some text at the top of the screen - screen.alpha = 255; - screen.mask = nullptr; screen.pen = Pen(255, 255, 255); screen.rectangle(Rect(0, 0, 320, 14)); + screen.pen = Pen(0, 0, 0); screen.text("Hello 32blit!", minimal_font, Point(5, 4)); } -/////////////////////////////////////////////////////////////////////////// -// -// update(time) -// -// This is called to update your game state. time is the -// amount if milliseconds elapsed since the start of your game -// +// This is called to update your game state. +// `time` is the amount of milliseconds elapsed since the device was last reset and will always be 10ms after the last update. void update(uint32_t time) { -} \ No newline at end of file +}