Search found 4 matches
- Mon Dec 02, 2013 3:14 pm
- Forum: Support and Development
- Topic: Principles of interacting with different objects
- Replies: 6
- Views: 4628
Re: Principles of interacting with different objects
Yeah, I saw something like this in a thread elsewhere and used that for my mole.draw() function (which you might have seen). I quite like that pattern so it's a good suggestion to use this also for state transitions. Interestingly enough there's a project at my work where we've taken this very appro...
- Mon Dec 02, 2013 2:41 pm
- Forum: Support and Development
- Topic: Principles of interacting with different objects
- Replies: 6
- Views: 4628
Re: Principles of interacting with different objects
Yes, the character logic is all here at the moment:
https://github.com/ohookins/mole/blob/master/mole.lua
https://github.com/ohookins/mole/blob/master/mole.lua
- Mon Dec 02, 2013 9:39 am
- Forum: Support and Development
- Topic: Principles of interacting with different objects
- Replies: 6
- Views: 4628
Re: Principles of interacting with different objects
Hi laice, thanks for your reply. I've already got a state-machine implementation for the player's character, which changes based on the context - e.g. if it is now colliding with a ladder it is possible to transition from the "walking" or "idle" states to "climbing_up" ...
- Sun Dec 01, 2013 6:48 pm
- Forum: Support and Development
- Topic: Principles of interacting with different objects
- Replies: 6
- Views: 4628
Principles of interacting with different objects
Hi, I'm a fairly experienced developer but fairly new to game programming and the Löve framework. I'm trying to write a fairly simple side-view game that has a character who just walks around and interacts with different things. For example, ladders should be climbable, it should be possible to pick...