Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

silversthem/2f

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2f

2f is a framework built on top of SFML, it provides :

  • An event machine, to handle events (keyboard and mouse actions, for example) at little more nicely than with a giant while loop.
  • Frames, which are an extention of sf::RenderWindow, handling objects displaying, physical calculations (collisions, mostly) and "ticking".
  • Timers and tickers, which call functions or methods when a certain amount of time has passed ( = ticks).
  • Objects, the stuff you have in your plan, handling collision, events and movements (if needed).
  • Structures, which are 2D composite objects, like a house or a plateform (Pathfinding is supported natively and can be overwritten to apply contraints to the pathfinding algorithm).
  • Most geometrical calculations are included as well, and with movement class and its derivatives, following an object (or the mouse, or else), becomes a matter of a single instruction (even with pathfinding).

Getting started

Soon

Roadmap

  • Basic object : The rectangle
  • Collisions
  • Line class
  • Objects handling
  • Multiframe handling
  • Auto Multithreading
  • Pathfinding
  • Sprite class
  • Animated Sprite class
  • Projectile class
  • Events
  • Movements
  • Forces
  • Structures
  • Time and ticks handling
  • Documentation

About

Little framework to build games using sfml

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published