#include "Game_Variables.h"
#include "Environment.h"
#include <ArduinoTrace.h>

Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
Environment env(&display);

void setup()
{
	Serial.begin(9600);
	env.setup_game(); // Setup display and game objects (Ball and paddle)
}

void loop()
{
	env.update(); // Update ball and paddle position, calculate collisions and check game over
	env.draw(); // Draw environment
}