Though I majorly considered building the game in GameSalad, unfortunately it keeps crashing. So instead I’ve opted to develop Carrot Bomb in Unity. Though this mean development will be more challenging and likely take longer to build in Unity (rather than GameSalad), it also gives the game more potential. Unity is far more advanced. Although the scripts will be hard to write, there is essentially unlimited potential compared to the simplistic drag and drop system in GameSalad.
Before any design element comes in, we must first start with the mechanics of the game.So, to begin with I’ve created 2 objects, the floor (green) and the player (red)
Next the scripts have to be written. One of these scripts will be the commands that the player inputs, the other is the physics of the object in the game-world. This will all determine how and which objects will be affected by gravity and how objects collide. To make objects collide, there needs to be a selected layer that can be applied to objects (like the floor) that determines whether and how they interact.
To ensure that there are no errors in the code, the game is now tested in Unity by pressing the play button. Fantastically, after glossing over a few minor errors, the code works fine, an the cube is now controlled by the left and right keys, and the space bar to jump.
If I duplicate the ground object (green) and place the duplicate somewhere else in scene, the player object can interact with it too, and even jump on to it. From here, all the base is set out to create a very simple obstacle course, essentially. However, the camera doesn’t follow the player, which means it remains stationary in the original position. This is something we’ll tackle next time… With more coding!
Comments are closed.