This is not the most beautiful code (sorry Belzy). Focus was on just getting something basic together. Happy to refactor as we iterate. Also, happy to walk the other programmers through the design so far to help catch you up / so you dont have to read my code by yourself.
I used some asset pack from the Unity Asset store just as placeholders. Pay no attention to how ugly everything is haha.
Controls: Jump = Space Bar. "A" and "D" keys are horizontal movement. When you first jump, you initiate the pogo ability. When the pogo ability is active, you continuously bounce every time you hit the ground. When you are in pogo mode, the controls are as follows: Pogo Slam is space bar (shoots you downwards and makes you bounce a little higher). Arrow keys rotate you (this dosent really do anything yet mechanically, just looks funny)
Note that I created two scriptable objects ('Data' folder) that feed the "CharacterEngine" script and the "PogoAbility" script. For those of you who havent used scriptable objects before, you can change these parameters AT RUN TIME and the values are saved. Good for tweaking the mechanics / messing around.
Prototyped out a bunch of stuff. A few notes:
This is not the most beautiful code (sorry Belzy). Focus was on just getting something basic together. Happy to refactor as we iterate. Also, happy to walk the other programmers through the design so far to help catch you up / so you dont have to read my code by yourself.
I used some asset pack from the Unity Asset store just as placeholders. Pay no attention to how ugly everything is haha.
Controls: Jump = Space Bar. "A" and "D" keys are horizontal movement. When you first jump, you initiate the pogo ability. When the pogo ability is active, you continuously bounce every time you hit the ground. When you are in pogo mode, the controls are as follows: Pogo Slam is space bar (shoots you downwards and makes you bounce a little higher). Arrow keys rotate you (this dosent really do anything yet mechanically, just looks funny)
Note that I created two scriptable objects ('Data' folder) that feed the "CharacterEngine" script and the "PogoAbility" script. For those of you who havent used scriptable objects before, you can change these parameters AT RUN TIME and the values are saved. Good for tweaking the mechanics / messing around.