add sfx
This commit is contained in:
parent
ccbdf0913e
commit
d028675424
|
@ -9,8 +9,8 @@ Limitation: the player must cheat
|
|||
- [ ] background music
|
||||
- [X] score overlay
|
||||
- [ ] stage 1
|
||||
- [ ] stage ending
|
||||
- [ ] win state
|
||||
- [X] stage ending
|
||||
- [X] win state
|
||||
- [ ] update itch page
|
||||
- [ ] other cheats?
|
||||
- [ ] explicit goal?
|
||||
|
|
|
@ -239,6 +239,7 @@ class Player {
|
|||
}
|
||||
|
||||
shoot() {
|
||||
TIC.sfx(1)
|
||||
_bullets.add(Bullet.new(_x + _w / 2, _y))
|
||||
}
|
||||
|
||||
|
@ -254,6 +255,8 @@ class Explosion {
|
|||
_y = y
|
||||
_countdown = 10
|
||||
_t = 0
|
||||
|
||||
TIC.sfx(0)
|
||||
}
|
||||
|
||||
expired { _t > _countdown }
|
||||
|
@ -748,10 +751,12 @@ class Game is TIC{
|
|||
// 000:00000000ffffffff00000000ffffffff
|
||||
// 001:0123456789abcdeffedcba9876543210
|
||||
// 002:0123456789abcdef0123456789abcdef
|
||||
// 003:ffffffff00000000ffffffff00000000
|
||||
// </WAVES>
|
||||
|
||||
// <SFX>
|
||||
// 000:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000304000000000
|
||||
// 000:05000500150015002500250035003500450045005500550065006500750075008500850095009500a500a500b500b500c500c500d500d500e500f500304000000000
|
||||
// 001:0330037003a003cf03ff03ff03fe03fe03fd03fd03fc03fc03fb03faf3f9f3f9f3f8f3f8f3f8f3f8f3f8f3f8f3f8f3f8f3f8f3f8f3f8f3f8f3f8f3f8cbb000000000
|
||||
// </SFX>
|
||||
|
||||
// <SCREEN>
|
||||
|
|
Loading…
Reference in a new issue