Optimization and ready jump to godot

This commit is contained in:
2024-07-19 10:55:05 +08:00
parent 3fd38c73b6
commit b67353c1ae
6 changed files with 36 additions and 25 deletions

View File

@@ -36,8 +36,6 @@ func (p *Player) Update() {
if keys[sdl.SCANCODE_RIGHT] == 1 || keys[sdl.SCANCODE_D] == 1 {
p.Move(1, 0)
}
p.BaseObject.Update()
}
func (p *Player) Move(deltaX, deltaY float64) {