Topic History of: Problem with a game... Max. showing the last posts - (Last post first)
Author
Message
chromecow.
Hi Will,
You're on the right track. All the game logic should be done on the server side, as modules. Think of the client simply as an pretty interface to all the server data.
There are several good threads recently about writing modules, and accessing server variables.
Hope this helps!
Sean Hyde-Moyer
Will
Ok, now that my Client API is almost ready, I tried to set-up a very very simple game.
The concept :
- The player is represented by a character in a 16x16 grid.
- The user can simply move from one case to another and can't move on a case if another player is present on this case.
And... I have to say I'm a bit confused about how to do that with palabre.
1. Placing the new Player
- When the new player connects, he needs to be put on an empty place in the grid...
- So the player send a <request-position>-like node, and the server should reply with a "<your-position><x>12</x><y>10</y></your-position>.
How would you perform such action ? With a custom module in python ?
If yes, it means that when you build an application for Palabre, all the logic, security and actions should be scripted in Python in add-on module.