Skip to content
/ engine Public template

SFML game engine, made in about 2 weeks

Notifications You must be signed in to change notification settings

AV306/engine

Repository files navigation

engine

2D SFML game "engine" of sorts.


stuff it has

  • Tilemap: Tile-based map that reads a file
  • update() method for entities like Unity
  • (Almost) all objects accept references to assets (fonts, textures etc)
  • Scene system using interfaces

limitations

  • Map tilesets can only contain a maximum of 255 tiles (about 16x16), because the map format currently only allocates 1 byte for the tile index
  • Engine will crash with a segfault if a non-existent texture is loaded
  • Implementation-inheritance based "component" system instead of object-composition (SFML uses implementation inheritance for Drawable and Transform, so for parity I decided to follow it for Collider) (Note: Collider won't be implemented for a while, sorry)

building

linux with apt

  1. Clone the repo
  2. Install the dependencies through ./install_deps (Installs Cate and SFML)
  3. Run cate in the project root
  4. Find the executable in out/

windows with MSYS2

* Note: I personally haven't gotten this to work

Same as linux, except you have to cross-compile cate from a linux machine

running

./out/game --asset-dir="/path/to/asset/directory/"

credits

About

SFML game engine, made in about 2 weeks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages