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.
Dependencies: mbed 4DGL-uLCD-SE MMA8452
Diff: Sprites/bomb/bomb.cpp
- Revision:
- 3:0e14def93d4e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Sprites/bomb/bomb.cpp Fri Mar 15 20:46:37 2019 -0400
@@ -0,0 +1,21 @@
+#include "bomb.h"
+#include "frames/frames.h"
+
+
+void bomb_constructor(sprite *bomb, int frame){
+
+ //render vars
+ bomb->render.depth = 0;
+ bomb->render.x = 0;
+ bomb->render.y = 0;
+ bomb->render.activeSkin = bomb_frames[frame];
+
+ //set sprite ID so that sprite can easily inserted into the world map
+ //with this ID. See ./worlds/world1.h for an example
+ bomb->attributes.sprite_id = 0;
+
+ bomb->render.static_sprite = false;
+ //return bomb;
+
+ }
+