PJ for OOP at Fudan University
DEMO:https://www.bilibili.com/video/BV1D3Vee6EoB
两种操控模式:长按鼠标右键控制蛇头 或 wasd 控制蛇头
空格加速,吃彩色点点增长/大躯体,人机的蛇头撞到你的蛇身完成击杀(是有点难的)
├─resources //all the resources(img audio) needed by the game
├─docs
│ ├─SFML 学习日志.md //Learning Journal of the SFML Library
│ └─ 项目日志.md //change log
├─src //SOURCE CODE
│ ├─entity
│ ├─screen
│ ├─UI
│ └─utils
├─snake_test.cpp //program entrance
└─CMakeLists.txt
验证过的编译器:
- mingw64 14.2.0
- mingw64 13.0.1
- mingw64 8.1.0
- mingw64 7.2.0
- Manage snakes and food using an object pool.
- reimplement window resizing adaptation
- Add more UI components
- Discard the dual-layer state machine
- Develop other snake control strategies
- use 'vertexarray' for 'snake'(this could significantly reduce computation overhead)