Skip to content

Commit

Permalink
This simple allocation crashes, and I'm not sure why.
Browse files Browse the repository at this point in the history
It seems like possibly a bug in the codegen for wasm?
Unfortunately I am not familiar with wasm at all, so it's hard for me to
tell.
  • Loading branch information
NHDaly committed Aug 17, 2024
1 parent 8dfdde0 commit e85515f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/game.odin
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@ import "core:math/linalg"
import sdl2 "sdl2"


init_game :: proc() {
Game :: struct {
time: f64,
dt: f64,
}


init_game :: proc() {
game := new(Game)
game.time = 10.0
game.dt = 10.0
}

handle_event :: proc(event: sdl2.Event) {
Expand Down

0 comments on commit e85515f

Please sign in to comment.