Skip to content

victkk/SFML-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SFML SNAKE

This is a repository for my PJ of OOP at Fudan University.

DEMO:https://www.bilibili.com/video/BV1D3Vee6EoB

project tree

├─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

LOOKING FOR SOMEONE TO MAINTAIN THIS REPOSITORY

There are still many parts of the project that can be imporved:

  1. Manage snakes and food using an object pool.
  2. reimplement window resizing adaptations in a decent manner(the current is bullshit)
  3. Add more UI components (it’s best not to reference the button; it was generated by GPT and is very inconvenient to use, causing most of the issues encountered during window resizing).
  4. Discard the dual-layer state machine I wrote.(maybe I wrote too much verilog that I created this disaster)
  5. Develop other snake control strategies.
  6. Convert 'snake' to use 'vertexarray' (this could significantly reduce overhead, but since my Intel 13th generation i9 CPU can effortlessly run 500 frames, I haven’t bothered changing it)

I really hope someone would continue working on this project.

About

A snake game created with C++ and lib SFML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published