Coder Social home page Coder Social logo

davdag / cppconsolegamelibrary Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 20 KB

Fast & Easy to use C++ Library to make console games.

License: MIT License

C++ 100.00%
game buffer cpp cpp11 cpp14 cpp17 cpp-library library console console-framework

cppconsolegamelibrary's Introduction

CppConsoleGameLibrary

Fast & Easy to use C++ Library to make console games.

Why should i use this library ?

Because it's open source, easy to use and to add to your project but especially ... because ITS FAST.

Functionalities

  • It manage Cursor, Window, buffer and keyboard.
  • You can simply call two basic functions to get a fast cpp console game.
  • Some #define to help you with colors and keys.

How to use it

  1. Start donwloading the '.hpp' file.
  2. Add it into your project simply including it at the beginning of your file.
#include "Base4ConsoleGames.hpp"
  1. Create a class and inherit the 'Game' Class.
class ExampleGame: public Game
{
  ...
}
  1. In the main loop call the DrawBuffer Function.
{
  ...
  void mainLoop()
  {
    // Clear all with [FillBuffer]
    // Draw Something on the buffer [FillCell]
    // or using [DrawFrame] and [DrawWords]
    // Game Logic
    DrawBuffer();
  }
}

Version

  • 1.0 Uploaded on GitHub !
  • 1.1
    • Added function to update only a region of the buffer.
  • 1.2
    • Added function to draw Frames and Text !
    • Added function to check if a Key Is Pressed.
    • Some minor bug fixes.

cppconsolegamelibrary's People

Contributors

davdag avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.