Please use .png instead of .bmp when uploading unfinished sprites to the forum!
Started by Kivutar, May 08, 2012, 08:21:29 am
def processData(self, datagram): iterator = PyDatagramIterator(datagram) source = datagram.getConnection() callback = iterator.getString() getattr(globals()[callback], 'execute')(self, iterator, source)
import Move# Return the list of walkable tile for a character to a clientdef execute(server, iterator, source): charid = iterator.getString() party = server.parties[server.sessions[source]['party']] walkables = Move.GetWalkables( party, charid ) server.send.WALKABLES_LIST(charid, walkables, source)
server.send.WALKABLES_LIST(charid, walkables, source)
myPyDatagram = PyDatagram()myPyDatagram.addString('WALKABLES_LIST')myPyDatagram.addString(charid)myPyDatagram.addString(json.dumps(walkables))self.cWriter.send(myPyDatagram, player)
Quote from: lirmont on May 09, 2012, 11:09:35 amThose are just some things I have planned for my stuff. Other ideas I've had in general are inspired from Street Fighter's early games where the "map" was animated behind the actual action. I think things like birds and people existing within the context of the map could be interesting. Good candidates for such a thing are the fish in the custom006 map, but I haven't thought up anything good to do with them yet. Maybe they can behave like the scene from FF6 with Celes and Cid, or maybe they can come up to the surface of the water to feed off what may be floating up there every once in a while (and this could be denoted by a water ripple like I wrote for rain).
Page created in 0.041 seconds with 26 queries.