tweak gravity, fix wasm

This commit is contained in:
Josh Deprez 2021-08-28 20:32:03 +10:00
parent 906d5956a0
commit 65174fff33
2 changed files with 3 additions and 8 deletions

View file

@ -99,8 +99,8 @@ func (aw *Awakeman) realUpdate() error {
const (
ε = 0.2
restitution = -0.3
gravity = 0.3
airResistance = -0.01 // ⇒ terminal velocity = 30
gravity = 0.2
airResistance = -0.02 // ⇒ terminal velocity = 10
jumpVelocity = -4.2
runVelocity = 1.4
coyoteTime = 5

View file

@ -1,7 +1,6 @@
package main
import (
"flag"
"image"
"image/color"
_ "image/png"
@ -14,16 +13,12 @@ import (
"github.com/hajimehoshi/ebiten/v2"
)
var rewriteLevel1 = flag.Bool("rewrite_level_1", false, "Rewrites level1.gobz from an inbuilt struct literal")
func main() {
flag.Parse()
ebiten.SetWindowResizable(true)
ebiten.SetWindowSize(640, 480)
ebiten.SetWindowTitle("TODO")
if *rewriteLevel1 {
if false {
writeLevel1()
}