Design notes on how to handle game design.
To create a Platformer, the mask system is important as it can be used a invisible guide for Objects. In the above image, Red would be class as a solid, Blue would use both mask and collision system.
MaskGetValue(x, y), along with floatsin & floatcos will be the functions using in a platformer. MaskGetValue will return a value between 0-255.
Known Issues: Map Editor isn't design to handle delayed enemy loading.
to be added...
/* Simple Turn Timer battle code */ const MAX_CHARACTERS = 6; enum character { entity[40 char], Float:countdown // You might want to added other things } new chars[MAX_CHARACTERS][character]; new turn = -1; main() { if ( turn == -1) { // Countdown Check new n = 0; while ( n < MAX_CHARACTERS ) { if ( chars[n][entity][0] ) { chars[n][countdown] -= Time() if ( chars[n][countdown] <= 0 ) { turn = n; } } n++; } } else { // Show Menu or Enemies attack if ( AttackFinished() ) //Call A public Function { chars[turn][countdown] = GetOriginalTime(); //Call A public Function turn = -1; //You should also check for characters status. } } }Moves/attacks
At this present time, Mokoi doesn't offer fine enough AI control. Try Stratagus http://www.stratagus.org/ instead.
Comming Soon