Facebook OA / AI2 – Week 9 (March 25 – April 1)
For this week, I added new components to the game. One of these components is a flexible platform.
Recalling our previous implementation of platform, there was no support for custom-sized platforms. In the latest iteration however, this is possible.
I also added a couple of animated sprites to control the user animations. However, instead of dealing with the low-end Blockly code, it is possible to change the state of the player sprite (running / moving / left / right) via a simple function call. Phaser already does some of the heavy-lifting (For example, cutting up the spritesheet into the various frames), however this is not intuitive and may be too slow for the novice user if it were implemented through blocks.
So here is the game in action, with a couple of new sprites:
Oh and, you could change the texture of the custom platform!
And the blocks:
Create a user:
Ever wanted the user to turn left? No problem!
And the custom platform block: