https://github.com/naftali100/sfml-template
https://github.com/naftali100/sfml-template
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/naftali100/sfml-template
- Owner: naftali100
- Created: 2022-04-05T17:49:20.000Z (about 4 years ago)
- Default Branch: stable
- Last Pushed: 2022-07-02T19:34:21.000Z (almost 4 years ago)
- Last Synced: 2025-11-05T21:32:09.821Z (8 months ago)
- Language: C++
- Size: 5.45 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sfml-template
cross platform sfml project template with a lot of stuff built in for easy and quick start.
c++20 required
WIP.
# how to use
- add new state that inherits from State class.
```cpp
class MyState: public State {
public:
using State::State
// override State's pure methods
private:
// all what the state need
sf::Sprite m_player;
};
```
- set the entry state in game class before the game loop.
- compile and run.
# what's in
- states
- animation (using texture atlas)
- easy resource management
- particle system (not the most efficient)
- tile map
- advance camera (with movements, zoom and adjustments to window resize in various ways)
- logging with plog, integrate sfml with plog
- sfml utilities
- imgui
- easy testing
- gui - WIP
# todo
- quad tree.
- update particle system to use VertexArray and batch rendering (or keep it with drawable?)
- states factories. (?)
# Credits
- SFML's wiki (particle system, animation, tileMap, latterBox view)
- [ImGui](https://github.com/ocornut/imgui)