Add doom_fire for TIC-80
This commit is contained in:
commit
d3cb331c95
59
doom_fire.wren
Normal file
59
doom_fire.wren
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
// title: Doom Fire
|
||||||
|
// author: Fabien Freling
|
||||||
|
// desc: inspired by https://fabiensanglard.net/doom_fire_psx/
|
||||||
|
// script: wren
|
||||||
|
|
||||||
|
class Game is TIC{
|
||||||
|
|
||||||
|
construct new(){
|
||||||
|
_t=0
|
||||||
|
_x=96
|
||||||
|
_y=24
|
||||||
|
}
|
||||||
|
|
||||||
|
TIC(){
|
||||||
|
if(TIC.btn(0)){
|
||||||
|
_y=_y-1
|
||||||
|
}
|
||||||
|
if(TIC.btn(1)){
|
||||||
|
_y=_y+1
|
||||||
|
}
|
||||||
|
if(TIC.btn(2)){
|
||||||
|
_x=_x-1
|
||||||
|
}
|
||||||
|
if(TIC.btn(3)){
|
||||||
|
_x=_x+1
|
||||||
|
}
|
||||||
|
|
||||||
|
TIC.cls(13)
|
||||||
|
TIC.spr(1+((_t%60)/30|0)*2,_x,_y,14,3,0,0,2,2)
|
||||||
|
TIC.print("HELLO WORLD!",84,84)
|
||||||
|
|
||||||
|
_t=_t+1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// <TILES>
|
||||||
|
// 001:efffffffff222222f8888888f8222222f8fffffff8ff0ffff8ff0ffff8ff0fff
|
||||||
|
// 002:fffffeee2222ffee88880fee22280feefff80fff0ff80f0f0ff80f0f0ff80f0f
|
||||||
|
// 003:efffffffff222222f8888888f8222222f8fffffff8fffffff8ff0ffff8ff0fff
|
||||||
|
// 004:fffffeee2222ffee88880fee22280feefff80ffffff80f0f0ff80f0f0ff80f0f
|
||||||
|
// 017:f8fffffff8888888f888f888f8888ffff8888888f2222222ff000fffefffffef
|
||||||
|
// 018:fff800ff88880ffef8880fee88880fee88880fee2222ffee000ffeeeffffeeee
|
||||||
|
// 019:f8fffffff8888888f888f888f8888ffff8888888f2222222ff000fffefffffef
|
||||||
|
// 020:fff800ff88880ffef8880fee88880fee88880fee2222ffee000ffeeeffffeeee
|
||||||
|
// </TILES>
|
||||||
|
|
||||||
|
// <WAVES>
|
||||||
|
// 000:00000000ffffffff00000000ffffffff
|
||||||
|
// 001:0123456789abcdeffedcba9876543210
|
||||||
|
// 002:0123456789abcdef0123456789abcdef
|
||||||
|
// </WAVES>
|
||||||
|
|
||||||
|
// <SFX>
|
||||||
|
// 000:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000304000000000
|
||||||
|
// </SFX>
|
||||||
|
|
||||||
|
// <PALETTE>
|
||||||
|
// 000:140c1c44243430346d4e4a4e854c30346524d04648757161597dced27d2c8595a16daa2cd2aa996dc2cadad45edeeed6
|
||||||
|
// </PALETTE>
|
||||||
|
|
Loading…
Reference in a new issue