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 ( const (
ε = 0.2 ε = 0.2
restitution = -0.3 restitution = -0.3
gravity = 0.3 gravity = 0.2
airResistance = -0.01 // ⇒ terminal velocity = 30 airResistance = -0.02 // ⇒ terminal velocity = 10
jumpVelocity = -4.2 jumpVelocity = -4.2
runVelocity = 1.4 runVelocity = 1.4
coyoteTime = 5 coyoteTime = 5

View file

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