"Empty Room" movement feels ok?
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
extends Area2D
|
||||
|
||||
func _on_body_entered(body) -> void:
|
||||
#print("collision")
|
||||
if body is BoxBoy:
|
||||
body.apply_bounce()
|
||||
|
||||
@@ -2,14 +2,14 @@ class_name BoxBoy extends CharacterBody2D
|
||||
|
||||
@onready var _sprite = $AnimatedSprite2D
|
||||
|
||||
const MOVE_FORCE: int = 300
|
||||
const JUMP_FORCE: int = 500 #about 4 tiles
|
||||
const MOVE_FORCE: int = 300 #about 10 tiles horizontally (airborne arc)
|
||||
const JUMP_FORCE: int = 500 #about 4 tiles vertically
|
||||
|
||||
const GRAVITY_RISING: int = 15
|
||||
const GRAVITY_FALLING: int = 30
|
||||
|
||||
#bouncy platform
|
||||
const BOUNCE_FORCE: int = -820 #about 10 tiles
|
||||
const BOUNCE_FORCE: int = -820 #about 10 tiles vertically
|
||||
var just_bounced: bool = false #allow max bounce height (i.e. ignore jump input)
|
||||
|
||||
#limits
|
||||
|
||||
10
scene.tscn
10
scene.tscn
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user