Giter Club home page Giter Club logo

zframework's Introduction

Summary

This is a reconstruction of the older z_framework that I have for cpp in the past. This isn't technically a framework, just bunch of useful code snippet thrown in a place.

The primary reason for redoing the entire codebase is to make it such that to use the code, I just need to copy it into my project. This is inspired by the Dropbox json11 code. So instead of putting files and individiual classes into folders and files, I will put EVERYTHING into a single header file. The things that are implemented will be grouped by functionality. The file dependency will be laid out at the top of the files. The class/method dependency hopefully, will also be laid out at the beginning of every methods/class def. These will allow you to detect unused method and delete them appropriately.

Modules

zf_alignment

Defines the basic alignment enum used by various other parts.

zf_conversion

Bunch of useful conversion methods

zf_direction

Defines direction and modifiers.

zf_rect

Bunch of useful methods for sf::Rect

zf_sprite

Bunch of useful methods for sf::Sprite

zf_spritesheet

zf_spritesheet is a small spritesheet file that allow you to load sprite into a single texture object on the fly. This is also used by zf_term and zf_twindow to manage the ascii characters and the special characters.

zf_stringformat

A small and simple implementation for formatting string, similar to boost::format. I didn't want to rely on boost until necessary. This is usually enough to do the trick.

zf_strings

Bunch of useful methods for manipulating strings.

zf_term

zf_term is an implementation similar to ncurses, which uses SFML. The original idea is to be able to write roguelike games and still support tiles.

zf_twindow

This is a implementation similar to zf_term. However, many of the curses like restriction is lifted. For example, you can create various windows of different cell sizes. Primarily, it allows you to create a tiled game easier.

Usages

The best way to use this codebase, is to treat them like snippets. Just copy them into your project anywhere you like and include them. You can remove those that you do not need, or even modify them to suit your needs.

Read the LICENSE for license for the various components.

zframework's People

Contributors

zwodahs 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.