#include <FastLED.h>
#include "Global.h"

uint32_t rocketShip[64] = {
  0x00000000, 0x00000000, 0x00000000, 0x00ff0000, 0x00ff0000, 0x00000000, 0x00000000, 0x00000000, 
	0x00000000, 0x00000000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00000000, 0x00000000, 
	0x00000000, 0x00ff0000, 0x00ff0000, 0x006596e7, 0x006596e7, 0x00ff0000, 0x00ff0000, 0x00000000, 
	0x00ff0000, 0x00ff0000, 0x00ff0000, 0x000060ff, 0x000060ff, 0x00ff0000, 0x00ff0000, 0x00ff0000, 
	0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 
	0x00000000, 0x00000000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00000000, 0x00000000, 
	0x00000000, 0x00000000, 0x00000000, 0x00ff0000, 0x00ff0000, 0x00000000, 0x00000000, 0x00000000, 
	0x00000000, 0x00000000, 0x00000000, 0x00ffd200, 0x00ffd200, 0x00000000, 0x00000000, 0x00000000
};

// Objects
GameObject rocketShipObj{8, 8, 10, 10, rocketShip};

void setup() {
  Serial.begin(115200);
  matrix.init();
  buttons.init();
  buttons.moveObject(&rocketShipObj, 0); // draw the initial position
}

void loop() {
  // Global time
  systemTime = millis();

  // Buttons
  buttons.update();
  buttons.moveObject(&rocketShipObj, 50);
}