一款以 C 语言和 raylib 编写的小型混沌吸血鬼生存游戏
A small chaotic vampire-survivors inspired game written in C and raylib. It uses a quad-tree for effecient collisions and is capable of handling thousands of enemies.
You can play a wasm build of the game here - https://bones-ai.itch.io/blob-survival
game.c file, I use : tags to quickly jump between different sections, I find this to be more effective than splitting it into separate files, and there's also some // MARK: that helps if you're using vscodez_build.sh to run the gameProcess 18590 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x16f603ff8)
frame #0: 0x000000010000373c game_debug`is_rect_contains_point(rect=(x = , y = , w = 0, h = 0), pt=(x = , y = , id = )) at game.c:876
873
874 // MARK: :utils
875
-> 876 bool is_rect_contains_point(QRect rect, QPoint pt) {
877 return (pt.x >= rect.x - rect.w && pt.x = rect.y - rect.h && pt.y <= rect.y + rect.h);
879 }
Target 0: (game_debug) stopped暂无开放 Issues,或尚未同步最近议题。