Programming

Crossy Road Coding

This image has an empty alt attribute; its file name is coding.1.png
This image has an empty alt attribute; its file name is coding.2.png
This image has an empty alt attribute; its file name is coding.3.png
  1. Spawning. In this code I make the spawning of the blocks/cars. I made it so they will move across the road and re spawn after a period of time. When the player hits this block they will re spawn.
  2. Player Movement. I made this so the player can move. I coded that one button press would lead to the player character jumping once. Each jump has to same distance and can not be spammed.
  3. Camera Movement. I coded the camera movement so it would follow the player. I made it so the camera can be at an angle while still moving forward and not down.

Practice


This image has an empty alt attribute; its file name is image-1.png
This image has an empty alt attribute; its file name is image-2.png

This was half fun half not fun. I enjoyed the progress I made and that everything I’ve done so far workings but I prefer the coding in unity. Even though it looks harder I think its better because it is just line for a command and then a line under, were as unreal you have a spider diagram and its just all over the place.

This image has an empty alt attribute; its file name is image-3.png

Angry Birds practice. I love unity coding over unreal coding.

Design a site like this with WordPress.com
Get started