The next step

Now, you have seen the power of SpriteBuilder. With a relatively small amount of code, you have created a game that has complex physics mechanics. There was no layout code to write at all which keeps the code very readable.

You learned a lot in this chapter. SpriteBuilder is a large piece of software and you require a lot of practice to learn it properly. You should now have a basic understanding about how to layout a scene, and how to create resuseable components to speed up developer. Reuseable components also cut down on code repetition.

Of course! The game is very simple and lacks polish. In the next chapter, you will add some proper assets and design simple animations to go with them. You will also learn about particle systems. This will take the game to a whole new level.

In the meantime, however you could think about adding the following features:

  1. Add a score system. You will need to detect when the character passes between two blocks. To do this, you could use an invisible node in between the blocks and set its collision type to sensor.
  2. Try to change the numbers with the physics settings. Perhaps make the gravity stronger and judge the effect.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.246.159