-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBreakoutV2.ino
39 lines (34 loc) · 975 Bytes
/
BreakoutV2.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//----------------------------------------------------------------------
// Breakout v2 by Jicehel
//
//----------------------------------------------------------------------
#include <Gamebuino-Meta.h>
#include "Global.h"
// Objects
Game game;
Ball ball;
// Paddle paddle;
Brick brick;
Levels level;
Paddle paddle;
Bonus bonus[20];
void setup() {
game.init();
}
void loop() {
gb.waitForUpdate();
game.loop();
/*
* Debug code example
*
SerialUSB.print(ball.radius);
SerialUSB.print(":");
SerialUSB.print(ball.x);
SerialUSB.print(":");
SerialUSB.print(ball.y);
SerialUSB.print(":");
SerialUSB.print(ball.moveX);
SerialUSB.print(":");
SerialUSB.print(ball.moveY);
SerialUSB.println(""); */
}