Week 2: Project Jump 'r Drop - Nocookieleft/Jump-r-Drop GitHub Wiki
New this week: Learned how the update function should NOT call for SKactions, as it'll call for an action a second time before the first called action has finished. In other words: frames are updated faster than actions should (in my case) be performed. Let the actions run in separate functions, calling upon themselves at the moment they've completed their action. Learned about scaling the avatar; in this case I've scaled the x value of the sprite, resulting in a vertical flipping animation. This however affected the way the sprite thought it was positioned on the screen, resulting in different movement. Therefore the move function of the avatar needed to be adjusted as well. Furthermore managed to separate the classes and functions more, keeping most actions in the class they affect.
Tuesday
####Finished:
- jump animation of the avatar
- avatar moving repeatedly horizontally within the screens bounds
- avatar turning around when hitting edge of the screen left or right
- avatar not rotating when in contact with another sprite
####Working on:
- platforms generating: they are now generating on a time interval--> might want to change that.
- platforms populating the screen at start: currently only populating half the screen, although the ground floor does render nicely
- physicsBody: implementing the relations of the platforms with the avatar, currently they are bumping into each other, but we want the avatar to be able to recognise the platforms position as the new baseline. The avatar needs to be able to jump when on another platform than the ground floor (not yet possible).
- Restart function and Game Over scene: does not load correctly
###To do:
- Highscores: keep track of scores / save them / present them at end of game
- Game Over Screen: ask for name and present scores
- Overall relations: platforms / gravity / avatar etc
Thursday
###Finished:
- setting up the basic movement of the player's avatar
- setting up basic background and letting it move
###Working on:
- platforms populating the screen according to a certain height and width
- relationship of the platforms with the avatar
- game over scene and a button for starting a new game--> managed to get the game over scene to load but implementing a button is yet another thing
- game over state --> stopping all processes, as they are now jittering all over the screen
###To do:
- highscores
- popover view to input name
- better platforms
- something to measure progress of the player