fix minimap colors

This commit is contained in:
Antti Hakkarainen 2023-02-14 11:29:05 +02:00
parent 57d47c5eed
commit 63ea78592a
10 changed files with 155 additions and 92 deletions

View file

@ -5,6 +5,7 @@ var x:int = -1
var y:int = -1
var should_remove:bool = false
# Called when the node enters the scene tree for the first time.
func _init(ypos:int, xpos:int, sr: bool):
self.x = xpos
@ -18,9 +19,11 @@ func _init(ypos:int, xpos:int, sr: bool):
y*Globals.CHUNK_SIZE.y*Globals.TILE_SIZE_Y
)
func _ready():
generate_chunk()
func _draw():
self.draw_rect(
Rect2(
@ -33,6 +36,7 @@ func _draw():
false
)
func generate_chunk() -> void:
for row in Globals.CHUNK_SIZE.y:
for col in Globals.CHUNK_SIZE.x: