Skip to content

A modular and lightweight 2D game engine built using C++ and SFML. This engine provides a solid foundation for developing 2D games, featuring an entity-component system, asset management, animation handling, and basic physics integration.

Notifications You must be signed in to change notification settings

chetan-code/SFMLGameEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SFMLGameEngine

A modular and lightweight 2D game engine built using C++ and SFML.
This engine provides a solid foundation for developing 2D games, featuring an entity-component system, asset management, animation handling, and basic physics integration. NOTE : The engine is work in progress - code structure and architecture is bound to evolve over time.

DEMO

Engine Preview


✨ Features

  • Entity-Component System (ECS): Flexible architecture allowing dynamic composition of game entities.
  • Asset Management: Efficient loading and management of textures, fonts, and other resources.
  • Animation System: Support for sprite animations with customizable frame sequences.
  • Physics Integration: Basic physics components for movement and collision detection.
  • Modular Design: Clean separation of concerns, making it easy to extend and maintain.

✨ Engine Architecture

Engine Architecture

🛠 Getting Started

Prerequisites

  • C++17 compatible compiler (e.g. g++, clang++)
  • SFML 2.5+

Build Instructions (Manual Compilation)

Compile using g++ (Linux/macOS) or any C++ compiler with SFML linked:

g++ -std=c++17 -o SFMLGameEngine \
Main.cpp Game.cpp GameEngine.cpp Entity.cpp EntityManager.cpp \
Components.cpp Assets.cpp Animation.cpp Physics.cpp \
-lsfml-graphics -lsfml-window -lsfml-system

About

A modular and lightweight 2D game engine built using C++ and SFML. This engine provides a solid foundation for developing 2D games, featuring an entity-component system, asset management, animation handling, and basic physics integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •