This commit is contained in:
Fabien Freling 2021-08-15 17:08:51 +02:00
parent ccbdf0913e
commit d028675424
2 changed files with 8 additions and 3 deletions

View file

@ -9,8 +9,8 @@ Limitation: the player must cheat
- [ ] background music - [ ] background music
- [X] score overlay - [X] score overlay
- [ ] stage 1 - [ ] stage 1
- [ ] stage ending - [X] stage ending
- [ ] win state - [X] win state
- [ ] update itch page - [ ] update itch page
- [ ] other cheats? - [ ] other cheats?
- [ ] explicit goal? - [ ] explicit goal?

View file

@ -239,6 +239,7 @@ class Player {
} }
shoot() { shoot() {
TIC.sfx(1)
_bullets.add(Bullet.new(_x + _w / 2, _y)) _bullets.add(Bullet.new(_x + _w / 2, _y))
} }
@ -254,6 +255,8 @@ class Explosion {
_y = y _y = y
_countdown = 10 _countdown = 10
_t = 0 _t = 0
TIC.sfx(0)
} }
expired { _t > _countdown } expired { _t > _countdown }
@ -748,10 +751,12 @@ class Game is TIC{
// 000:00000000ffffffff00000000ffffffff // 000:00000000ffffffff00000000ffffffff
// 001:0123456789abcdeffedcba9876543210 // 001:0123456789abcdeffedcba9876543210
// 002:0123456789abcdef0123456789abcdef // 002:0123456789abcdef0123456789abcdef
// 003:ffffffff00000000ffffffff00000000
// </WAVES> // </WAVES>
// <SFX> // <SFX>
// 000:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000304000000000 // 000:05000500150015002500250035003500450045005500550065006500750075008500850095009500a500a500b500b500c500c500d500d500e500f500304000000000
// 001:0330037003a003cf03ff03ff03fe03fe03fd03fd03fc03fc03fb03faf3f9f3f9f3f8f3f8f3f8f3f8f3f8f3f8f3f8f3f8f3f8f3f8f3f8f3f8f3f8f3f8cbb000000000
// </SFX> // </SFX>
// <SCREEN> // <SCREEN>