Play game
LOD Stranger's itch.io pageHow many characters of code did you use?
495
Include your code here, if you'd like to show it off!
extends Tree
var x:=2
var a
var d=3
var W=1
func _process(E):
if !a:seed(4);a=range(99);a.shuffle();a.resize(60)
queue_redraw();var v=Input.get_vector("a","d","w","s").sign();x+=v.x+v.y*9
if a.find(x)+1:free()
if v:d=max(0,v.x);if v.y:d=max(0,v.y)+2
if Input.get_axis("v",""):
W^=1;var O=x+[-1,1,-9,9][d];if W:a.erase(O)
else:a.append(O)
func _draw():if a:for i in a:draw_rect(Rect2(i%9*8,i/9*8,8,8),Color());draw_char(ThemeDB.fallback_font,Vector2(x%9*8+2,x/9*8+6),"<>^v"[d],7,Color())
Leave a comment
Log in with itch.io to leave a comment.
Comments
This is brilliant work, but I think I prefer the music in the original ;)