Code: Select all
Creature = {X=10, Y=10}
Function Creature.Move()
Creature.X = Creature.X + 1
Creature.Y = Creature.Y + 1
EndFunction
Function Creature:Bark()
Debugprint("Wof!")
EndFunctionWould have done this separation right from beginning, had I realised that my simple save/load method would include all these functions too, and now wondering If I should do that now afterwards, which luckily wouldnt be terribly big task.