GamedevFramework / Gf

Licence: other
A C++14 framework for 2D games

Programming Languages

cpp
1120 projects
cpp14
131 projects

Projects that are alternatives of or similar to Gf

Gdevelop
🎮 GDevelop is an open-source, cross-platform game engine designed to be used by everyone.
Stars: ✭ 3,221 (+1991.56%)
Mutual labels:  gamedev, 2d-game, game-2d
Simpleton Engine
What a stupid name for a library
Stars: ✭ 42 (-72.73%)
Mutual labels:  gamedev, game-2d, sdl2
Kaetram Open
An open-source 2D HTML5 adventure based off BrowserQuest (BQ).
Stars: ✭ 138 (-10.39%)
Mutual labels:  gamedev, game-2d, 2d-game
Gamedev Resources
🎮 🎲 A wonderful list of Game Development resources.
Stars: ✭ 2,054 (+1233.77%)
Mutual labels:  gamedev, game-2d, 2d-game
BonEngineSharp
A simple and fun SDL-based game engine in C#.
Stars: ✭ 16 (-89.61%)
Mutual labels:  gamedev, sdl2, game-2d
Rigelengine
A modern re-implementation of the classic DOS game Duke Nukem II
Stars: ✭ 393 (+155.19%)
Mutual labels:  game-2d, sdl2
Cdogs Sdl
Classic overhead run-and-gun game
Stars: ✭ 422 (+174.03%)
Mutual labels:  2d-game, sdl2
Imac Tower Defense
OpenGl 4.4 game made with Entity Component System
Stars: ✭ 28 (-81.82%)
Mutual labels:  game-2d, sdl2
Tank island
Top down 2D shooter game that involves blowing up tanks
Stars: ✭ 42 (-72.73%)
Mutual labels:  gamedev, game-2d
FallingSandSurvival
2D survival game inspired by Noita and slightly Terraria
Stars: ✭ 66 (-57.14%)
Mutual labels:  sdl2, 2d-game
Hinterland
2D top-down shooter game
Stars: ✭ 34 (-77.92%)
Mutual labels:  gamedev, game-2d
Soldat
Soldat is a unique 2D (side-view) multiplayer action game
Stars: ✭ 1,199 (+678.57%)
Mutual labels:  2d-game, sdl2
Libsdl2pp
C++11 bindings/wrapper for SDL2
Stars: ✭ 385 (+150%)
Mutual labels:  gamedev, sdl2
Mini2dx
A high-level cross-platform 2D game development API
Stars: ✭ 384 (+149.35%)
Mutual labels:  gamedev, 2d-game
Beaverandfairies
Stars: ✭ 14 (-90.91%)
Mutual labels:  gamedev, game-2d
Pygame
pygame (the library) is a Free and Open Source python programming language library for making multimedia applications like games built on top of the excellent SDL library. C, Python, Native, OpenGL.
Stars: ✭ 4,164 (+2603.9%)
Mutual labels:  gamedev, sdl2
Badsanta
BadSanta - Multiplayer HTML5 Game (http://santa.qake.se)
Stars: ✭ 97 (-37.01%)
Mutual labels:  gamedev, 2d-game
Gizmo
2D Pixel Destruction Game written in Go.
Stars: ✭ 114 (-25.97%)
Mutual labels:  gamedev, 2d-game
SDL.zig
A shallow wrapper around SDL that provides object API and error handling
Stars: ✭ 102 (-33.77%)
Mutual labels:  gamedev, sdl2
PICO-EC
A tiny scene-entity-component library created for the PICO-8 fantasty console.
Stars: ✭ 37 (-75.97%)
Mutual labels:  gamedev, game-2d

Gamedev Framework (gf)

Travis AppVeyor GitHub license GitHub tag

Gamedev Framework (gf) is a framework to build 2D games in C++17. It is based on SDL and OpenGL ES 2.0, and presents an API that is very similar to the graphics module of SFML with additional features. It is not a game engine, it is more something like a framework, similar to libGDX in the Java world.

Gamedev Framework (gf) is licensed under the terms and conditions of the zlib/libpng license.

Gamedev Framework (gf)

Quick example

#include <gf/Event.h>
#include <gf/Font.h>
#include <gf/RenderWindow.h>
#include <gf/Sprite.h>
#include <gf/Text.h>
#include <gf/Window.h>

int main() {
  // Create the main window and the renderer

  gf::Window window("Example", { 640, 480 });
  gf::RenderWindow renderer(window);

  // Load a sprite to display

  gf::Texture texture("sprite.png");

  gf::Sprite sprite(texture);
  sprite.setPosition({ 300, 200 });

  // Create a graphical text to display

  gf::Font font("DroidSans.ttf");

  gf::Text text("Hello gf!", font, 50);
  text.setPosition({ 100, 100 });

  renderer.clear(gf::Color::White);

  // Start the game loop

  while (window.isOpen()) {

    // Process events

    gf::Event event;

    while (window.pollEvent(event)) {
      switch (event.type) {
        case gf::EventType::Closed:
          window.close();
          break;

        default:
          break;
      }
    }

    // Draw the entities

    renderer.clear();
    renderer.draw(sprite);
    renderer.draw(text);
    renderer.display();
  }

  return 0;
}

Documentation

See the online documentation for Gamedev Framework (gf).

Packaging

Packaging status

Contact

If you want to talk directly with the developpers, you can

Contribution

Gamedev Framework (gf) is very open to contributions. See the contribution guidelines.

Dependencies

You have to install the following dependencies:

See the documentation for more information on how to build and install gf.

Screenshots

These screenshots are from games included in the repository.

Games

gf Pong! gf 2048!

Code Quality

  • LGTM: Language grade: C/C++
  • CodeFactor: CodeFactor
  • Codacy: Codacy Badge
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].