2D Tron Light Cycles Game

1.0

By clement, 7 months ago

Controls: D-Pad: [Arrows / WASD] - A: [J] - B: [K] - Menu: [U] - Home: [I]
Enjoy games at full speed with sound and lights on the Gamebuino META!
Emulator by aoneill

Port of my old game tron from gamebuino classic to gamebuino meta

Its a 2D Tron Light Cycles Game:

Last comments

clement

NEW 7 months ago

i have added some backlight effect :

I share the code  for example

/*
back light are a 2*4 led grid
0000
0000

0100
0010

0110
0110

1111
1111

1101
1011

1001
1001

0000
0000
*/
uint8_t backLightEffectPulseGrid[7][2] = {
  {0,0},
  {4,2},
  {6,6},
  {15,15},
  {13,11},
  {9,9},
  {0,0}
  };

void backLightEffectPulse(int pulseSpeed, Color color)
{
  int now = (gb.frameCount / pulseSpeed) % 7;
  for(uint8_t i=0;i< 4; i++){
    

    if((backLightEffectPulseGrid[now][0] >> i & 1) == 1){
      //gb.display.drawPixel(0, i, color);
      gb.lights.drawPixel(0, i, color); 
    }
    if((backLightEffectPulseGrid[now][1] >> i & 1) == 1){
      //gb.display.drawPixel(1, i, color);
      gb.lights.drawPixel(1, i, color); 
    }    

    uint8_t y2 = backLightEffectPulseGrid[i][1];
  }
}


ragnarok93

NEW 7 months ago

Today I was thinking about same idea for game :D. Definetely will try it tommorow ;).