Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

Unfortunately, I didn't have much success with the game on web, and it seems to have some issues on desktop too. I cloned the game's repo and tried to run it, but at the end of the snake segment it seemed to promptly crash because of referencing a null pointer

```

Thread 1 "a.out" received signal SIGSEGV, Segmentation fault.
PhysicsObject::Step (this=0x5555556852a0 <snake>) at physics_object.cpp:36
36                      unsigned int curSquare = GetGridAt(squares[i]);
(gdb) p squares
$1 = (Vector2 *) 0x0

```

Here's a backtrace, if it would be helpful.

```

#0  PhysicsObject::Step (this=0x5555556852a0 <snake>) at physics_object.cpp:36
#1  0x0000555555581fc3 in Snake::Update (this=0x5555556852a0 <snake>, dt=0.0166671444) at snake.cpp:65
#2  0x000055555557c62a in UpdateDrawFrame () at raylib_game.cpp:302
#3  0x000055555557c072 in main () at raylib_game.cpp:205

```

Squares comes from GetGridEdgePositions, which returns NULL. The crash is consistent and I can reproduce it every time. For this reason, I am unable to rate it.

(1 edit)

That's odd, I'll definitely try to see what's going on here. Sorry about that, I'll update the game after the rating period is over.

Thanks for letting me know!