wall-kick-jump WIP

This commit is contained in:
minjaesong
2019-10-02 15:24:05 +09:00
parent c14453cb35
commit 15a6324ef4
6 changed files with 29 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ object AVKey {
const val JUMPPOWER = "jumppower"
const val JUMPPOWERBUFF = "$JUMPPOWER$BUFF"
/** How much air jumping you can perform. INT */
/** How much air jumping you can perform. 0 is same as 1. INT */
const val AIRJUMPPOINT = "airjumppoint"
/** How much air jumping you have performed before you run out of the point. INT */
const val AIRJUMPCOUNT = "_airjumpcount"

View File

@@ -222,9 +222,10 @@ open class ActorWBMovable(renderOrder: RenderOrder, val immobileBody: Boolean =
* [m / s^2]
* s^2 = 1/FPS = 1/60 if FPS is targeted to 60
* meter to pixel : 24/FPS
*
* NOTE: this property is "var" so that future coder can implement the "reverse gravity potion"
*/
private val gravitation: Vector2
get() = world?.gravitation ?: Vector2(0.0, 9.8)
var gravitation: Vector2 = world?.gravitation ?: GameWorld.DEFAULT_GRAVITATION
@Transient val DRAG_COEFF_DEFAULT = 1.2
/** Drag coefficient. Parachutes have much higher value than bare body (1.2) */
var dragCoefficient: Double