Eggsbox-Game-Studios / Nursery-Crimes

GDP102 - GROUP ASSESSMENT
0 stars 0 forks source link

Proposal: Movement #1

Open Gard-en opened 1 year ago

Gard-en commented 1 year ago

As discussed in Discord, we need to prototype a 2D movement system that includes:

Jump can be achieved in Unity with a rigidbody2d component, and a positive y vector applied. For double jumping, an int counter that limits the player to x number of jumps.

For gliding, when jump key is held we can change the gravity property for the player's rigidbody2d component.

Gard-en commented 1 year ago

https://github.com/Eggsbox-Game-Studios/Nursery-Crimes/commit/ae359a9d1e96bde12155ee794a6bb4de89400182 Linked commit implements basic horizontal movement.

https://user-images.githubusercontent.com/34126658/232650457-41357eb7-a56d-4520-bef1-025ec819c861.mp4

Gard-en commented 1 year ago

https://github.com/Eggsbox-Game-Studios/Nursery-Crimes/commit/31d529e05926a94efd75b89b012f32af8d07485c Code clean-up and implement basic jump.

https://user-images.githubusercontent.com/34126658/232650482-358754a7-dcdd-4c3b-b0c2-581162d3c97a.mp4