varkor / pokengine

An online Pokémon battle system for the web
http://varkor.com/pokengine/battle/
MIT License
54 stars 11 forks source link

Add floating Pokémon #146

Closed varkor closed 9 years ago

varkor commented 9 years ago

Pokémon that fly or levitate will need to be identified for Sky Battles anyway, so some sort of property is needed for this. It'd make sense to make it even more general purpose, and allow Pokémon to be classed as "swimming" or other such things, which could be accompanied by a visual change. One suggestion would be the following syntax example:

attributes : [{ kind : "airborne", height : 30, variance : 10, movement : "circles" }] // A Pokémon flying around in circles 30px above the ground, in circles of radius 10px
fuzzball288 commented 9 years ago

There is already a floating value in the dex data that's purely visual. http://prntscr.com/63xpxe Also many Pokemon like Beedrill will need floating sprites but won't be able to participate in Sky Battles. We need a field for "can participate in Sky Battles" too but I don't think it needs to be linked to the visual floating effect.

varkor commented 9 years ago

Added a slight variation on this scheme in the latest commit. It's separate from Sky Battles though.