Skip to content

naftali100/sfml-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

    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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages