Skip to content

Commit

Permalink
Gravity fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrik Roth committed Sep 16, 2018
1 parent 89363d2 commit 81acaca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MainMenu.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use_filter = false
font_data = ExtResource( 2 )
_sections_unfolded = [ "Font", "Settings" ]

[node name="Splash" type="TextureRect"]
[node name="Splash" type="TextureRect" index="0"]

anchor_left = 0.0
anchor_top = 0.0
Expand Down
2 changes: 1 addition & 1 deletion entities/human/Ghost.gd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func _ready():
hitpoints = 10
respawn_time = 3

physics.init(ACCELERATION, FRICTION, Vector2(0, 0), MAX_VELOCITY)
physics.init(ACCELERATION, FRICTION, Vector2(0, 0), 0, MAX_VELOCITY)

func enemy_process(delta):
# Weg zum Spieler
Expand Down
2 changes: 1 addition & 1 deletion entities/human/HumanBodyBase.gd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends "res://entities/BodyBase.gd"

const GRAVITY = 40
const GRAVITY = Vector2(0, 40)
const MAX_VELOCITY = Vector2(200, 1000)

func _ready():
Expand Down

0 comments on commit 81acaca

Please sign in to comment.