fix supid viewport bug
This commit is contained in:
@ -1,6 +1,9 @@
|
||||
package mob
|
||||
|
||||
import "lab.zaar.be/thefish/alchemyst-go/engine/types"
|
||||
import (
|
||||
"fmt"
|
||||
"lab.zaar.be/thefish/alchemyst-go/engine/types"
|
||||
)
|
||||
|
||||
type Mob struct {
|
||||
*types.Appearance
|
||||
@ -9,7 +12,8 @@ type Mob struct {
|
||||
}
|
||||
|
||||
func (m *Mob) Walk(dx, dy int) {
|
||||
|
||||
m.Coords = types.Coords{m.X + dx, m.Y + dy}
|
||||
fmt.Printf("new coords: %d, %d\n", m.Coords.X, m.Coords.Y)
|
||||
}
|
||||
|
||||
func (m *Mob) Render() {
|
||||
|
Reference in New Issue
Block a user