feat: add S1 walking skeleton
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class_name ActorView
|
||||
extends Sprite2D
|
||||
|
||||
const TILE_SIZE := Vector2i(32, 32)
|
||||
var actor: ActorState
|
||||
|
||||
func set_actor(new_actor: ActorState) -> void:
|
||||
actor = new_actor
|
||||
refresh()
|
||||
|
||||
func refresh() -> void:
|
||||
if actor != null:
|
||||
position = Vector2(actor.cell * TILE_SIZE) + Vector2(TILE_SIZE) / 2.0
|
||||
Reference in New Issue
Block a user