Commit graph

34 commits

Author SHA1 Message Date
Nathan Lovato
0382b3e2ed Add basic patrol AI 2019-06-03 09:17:40 +09:00
Nathan Lovato
b332dd31e0 Move draw_triangle function to DrawingUtils singleton 2019-06-03 09:17:01 +09:00
Nathan Lovato
1384c44ef0 Add moving platform to game scene for testing purposes 2019-05-31 14:49:29 +09:00
Nathan Lovato
fafa552bb3 Fix dependencies on scenes 2019-05-31 14:49:03 +09:00
Nathan Lovato
1213e05744 Simplify code moving platform and fix start position 2019-05-31 14:47:38 +09:00
Nathan Lovato
ab710a1e7e Add moving platform with Waypoints system
Taken and extended from the moving platform tutorial project
Known issue: can't change the value of the exported mode variable if it's set to
use the Mode enum as an editor hint. Seems to be an engine-side bug in 3.1 stable
2019-05-31 12:28:16 +09:00
Nathan Lovato
188fed175b
Merge pull request #13 from henriiquecampos/level-loops
[WIP] Level loops
2019-05-29 09:16:15 +09:00
Nathan Lovato
2f693fea1a Add delayed jump input recognition
- Jump after falling off a ledge
- Jump upon touching the ground if the jump input was pressed a few frames before
2019-05-29 09:12:01 +09:00
Nathan Lovato
4e1e4c54c1 Move gamepad input method back to ControlUtils
There was a bug on the last livestream where Godot wouldn't recognize the method
on the autoload ControlUtils
2019-05-29 09:11:06 +09:00
Henrique Campos
c8bc48901f Add level design loops 2019-05-20 10:14:55 -03:00
Răzvan C. Rădulescu
5464868404 Redesign of 1.hook-movement
Squashed commit of the following:

commit 24ad88f4fa00eaac08acdfef93a0b35ad2b1fc0f
Merge: a67f0d8 209e41c
Author: Răzvan C. Rădulescu <razcore.art@gmail.com>
Date:   Sun May 19 23:01:37 2019 +0900

    Merge branch 'redesign' of git://github.com/razcore-art/godot-metroidvania-2d into razcore-art-redesign

commit 209e41cff8
Author: Răzvan C. Rădulescu <razcore.art@gmail.com>
Date:   Sun May 19 14:07:15 2019 +0300

    Fix Game scene & project file

commit bfb6f449fa
Merge: a0da29d ae54ee9
Author: Răzvan C. Rădulescu <razcore.art@gmail.com>
Date:   Sun May 19 13:45:24 2019 +0300

    Merge branch 'master' of https://github.com/GDquest/godot-metroidvania-2d into redesign

commit a0da29d799
Author: Răzvan C. Rădulescu <razcore.art@gmail.com>
Date:   Sun May 19 13:36:29 2019 +0300

    Reorganize 1.hook-movement folder structure and code
2019-05-19 23:05:38 +09:00
Nathan Lovato
a67f0d8424 Fix ControlUtils singleton not registering properly 2019-05-19 22:58:14 +09: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