Added basic jumping
This commit is contained in:
@ -59,6 +59,7 @@ class Game is Ready {
|
|||||||
var input = Transform.local_vector_to_world(camera, right + left, 0, fore + back)
|
var input = Transform.local_vector_to_world(camera, right + left, 0, fore + back)
|
||||||
input.y = 0
|
input.y = 0
|
||||||
Math.normalize(input)
|
Math.normalize(input)
|
||||||
|
input.y = Input.event_began("jump", "game") ? 2 : 0
|
||||||
|
|
||||||
Character3D.set.input(_player, input)
|
Character3D.set.input(_player, input)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
modules = {
|
modules = {
|
||||||
camera = "1.0.6"
|
camera = "1.0.6"
|
||||||
func_luxe = "dev"
|
func_luxe = "dev"
|
||||||
luxe = "2025.6.3"
|
luxe = "2025.6.4"
|
||||||
|
debug = "dev"
|
||||||
} // modules
|
} // modules
|
||||||
|
|||||||
@ -12,8 +12,7 @@ input = {
|
|||||||
down = { keys = ["key_s", "down"] }
|
down = { keys = ["key_s", "down"] }
|
||||||
|
|
||||||
jump = {
|
jump = {
|
||||||
keys = ["key_x", "up", "key_w", "space"]
|
keys = ["space"]
|
||||||
mouse = ["left"]
|
|
||||||
gamepad = [0]
|
gamepad = [0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user