Skip to main content

Entry 5: Technical Research

TECHNICAL RESEARCH

Game Mechanics

-Button mashing
-One-directional running with jumping and ducking
-Obstacles that reduce speed if collide
-Chaser (grim reaper)

Technical Theories

Button Mashing 

>https://answers.unity.com/questions/881920/simple-2-button-mash-script.html

- Adding an interval between two buttons to be able to press.

- The buttons for mashing ranging from 5 buttons (YOUNG AGE) to 1 button (SENIOR AGE) to create difficulty and limits the mashing capability.

- As level progresses, the impact of the button mashing will be lessen. Therefore, I need to create a float that contains the value of impact. Eg. 1000 velocity per press for YOUNG AGE, 500 velocity per press for COLLEGE LIFE and 250 velocity per press for SENIOR YEARS

One-directional running with jumping and ducking

>https://docs.unity3d.com/ScriptReference/BoxCollider-size.html

- Add a velocity force minimum 40 for example to max 200.

- Add force whenever mashing is present

- "UpArrow" to jump. Add y-axis force and gravity

-  "DownArrow" to duck. Flatten the collider

Obstacles

- Deduct the total velocity by 50 for example
- Player colliding with the front of the obstacle will only deduct the character's speed

Chaser

- Create a constant force that's faster than the character's minimum speed

- A wall that collides the player if player didn't run fast enough

- Collide = Lose / Diff. Path> Death / Ending

Comments