Skip to content

Custom template for a C++ game template, inspired by XNA/Monogame

License

Notifications You must be signed in to change notification settings

AzuxirenLeadGuy/sfml-azuxiren-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SFML Azuxiren's Template

This template is for my personal projects, but feel free to use/change it to your needs.

Pre-requisites

  • clang or gcc compiler for C++
  • Build tools (Either GNU Make or Taskfile)
  • Optional tools:
    • clang-tidy : For providing analysis
    • clang-format : For formatting the code
    • bear: For generation of [compile_commands.json] that will be used by your IDE as well as the above two tools to work properly.

Please go through the Makefile to understand how each tool work for each other. The build commands build and debug (in Makefile as well as the taskfile) compiles the program, without using any of the mentioned optional tools.

Purpose

This template is an initial boilerplate. A game can be abstracted in a series of "Scenes", while the SfmlGameClass does the low level tasks for all the scenes, i.e polling for events, storing settings that last for the entire game, invoking the main loop, etc. More details and examples would be provided in the wiki (Hopefully in the near future)

License

This repository is licensed under the MIT license while the SFML library is licensed under zlib/libpng license.

About

Custom template for a C++ game template, inspired by XNA/Monogame

Resources

License

Stars

Watchers

Forks

Packages

No packages published