Skip to content
Permalink
Browse files

fix particle

  • Loading branch information
corax89 committed Dec 2, 2019
1 parent ca5a61a commit 1f20d1f27259a3b5a497a803378c49533d7cc541
Showing with 2 additions and 2 deletions.
  1. BIN ESP8266_little_game_engine.ino.d1_mini.bin
  2. +2 −2 display.ino
Binary file not shown.
@@ -472,13 +472,13 @@ void redrawParticles(){
largeParticle(x, y, particles[n].size, particles[n].color);
}
else{
x >> 1;
x = x >> 1;
if(particles[n].x & 1)
sprite_screen[SCREEN_ADDR(x,y)] = (sprite_screen[SCREEN_ADDR(x,y)] & 0xf0) + (particles[n].color & 0x0f);
else
sprite_screen[SCREEN_ADDR(x,y)] = (sprite_screen[SCREEN_ADDR(x,y)] & 0x0f) + ((particles[n].color & 0x0f) << 4);
line_is_draw[y] |= 1 + x / 32;
}
line_is_draw[y] |= 1 + x / 32;
particles[n].time -= 50;
if(random(0,2)){
particles[n].x += particles[n].speedx;

0 comments on commit 1f20d1f

Please sign in to comment.
You can’t perform that action at this time.