Răzvan C. Rădulescu
bfb6f449fa
Merge branch 'master' of https://github.com/GDquest/godot-metroidvania-2d into redesign
2019-05-19 13:45:24 +03:00
Răzvan C. Rădulescu
a0da29d799
Reorganize 1.hook-movement folder structure and code
2019-05-19 13:36:29 +03:00
Nathan Lovato
ae54ee9139
Add delayed hook input detection
...
See InputContinuous, stores a hook input and generates input events for a few
frames, so the player can hook on a target even if they miss it by a small margin
2019-05-19 16:55:44 +09:00
Nathan Lovato
75b5a979a7
Add a button to restart the scene
2019-05-19 16:09:21 +09:00
Nathan Lovato
5f720924f7
Improve camera horizontal movement
...
uses both the input direction and character velocity
2019-05-19 16:09:12 +09:00
Nathan Lovato
f0b89e3137
Add a switch to toggle ledge detect on and off
2019-05-17 18:53:25 +09:00
Nathan Lovato
f5965449d2
Add simple camera rig that looks around the character based on mouse position or
...
joystick orientation
2019-05-14 15:52:53 +09:00
Nathan Lovato
12dc9a021e
Refactor joystick direction calculation out of Hook
2019-05-14 15:52:29 +09:00
Nathan Lovato
ec315ec8b9
Add placeholder for ZeroGravityArea
...
I experimented a bit with the code before realizing for this mechanic to work,
we need to change the controls and character behavior completely, so I dropped
the code from this commit
2019-05-14 15:11:41 +09:00
Nathan Lovato
9ec02b86f0
Add aim input action and extra input actions keys for the gamepad
2019-05-14 10:47:57 +09:00
Nathan Lovato
dfe32ee412
Merge branch 'gamepad_alternate_controls'
2019-05-14 09:05:05 +09:00
Nathan Lovato
f6d0bd86d1
Prevent hook downwards when on the floor
2019-05-14 08:55:33 +09:00
Nathan Lovato
0afa320643
Fix ledge detection: make floor detector collide with hookable physics layer
2019-05-14 08:41:54 +09:00
Nathan Lovato
292ebcbc3f
Draw character and add transition animation to the ledge state
2019-05-14 08:25:29 +09:00
Nathan Lovato
71e023a5bd
Give the character a max air speed boost when using the hook
2019-05-14 07:57:09 +09:00
Nathan Lovato
fe5a745d7d
Merge pull request #12 from guilhermehto/pilot-tutorial-demo
...
Pilot tutorial demo added
2019-05-13 11:08:01 +09:00
Nathan Lovato
f1c5e12a82
Improve the precision of ledge detection
...
LedgeDetector now takes the initial offset of the rays in account.
Moved the rays to not be on the edges of the characters' collider: this would
trigger a bug that's hard to reproduce, where the character would jump back to
the origin of the world.
To get the player's look direction, the code now uses sign(_velocity.x)
The ledge state is still instant.
2019-05-13 09:25:03 +09:00
Guilherme Oliveira
60d0225a41
Pilot tutorial demo added
...
Removed wrong files from project
2019-05-10 16:59:27 -03:00
Nathan Lovato
64f3c396ac
Movement prototype: Add Ledge and Floor detection
2019-05-10 11:02:06 +09:00
Guilherme Oliveira
6c12f9cf0b
Added RigidBody hook prototype
2019-05-09 16:55:43 -03:00
Nathan Lovato
d21efdce14
Add base project for the RigidBody2D movement prototype
2019-05-09 10:17:01 +09:00
Nathan Lovato
7d5fd39cd8
Move hook reaction code to Character.gd
2019-05-09 10:12:45 +09:00
Nathan Lovato
f80dc39b25
Add alternate gamepad controls
...
Slow down time with X, aim with the left stick
Change use_right_stick property of Hook.gd to use the right stick to aim
2019-05-03 13:23:52 +09:00
Nathan Lovato
cf82f3a164
Add base movement prototype from gdquest-kickstarter-3 repo
2019-05-03 10:09:12 +09:00