Giter Site home page Giter Site logo

dodolab / cogengine Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 23.79 MB

Component-oriented 2D game engine for OpenFrameworks

License: MIT License

C# 1.22% C++ 28.77% C 68.77% Batchfile 0.02% Makefile 0.16% Java 0.07% Lua 0.99%
game-engine-2d scene-graph lua-script component-architecture steering-behaviors monte-carlo-tree-search network-protocol openframeworks

cogengine's Introduction

ofxCogEngine

logo

What's the CogEngine?

CogEngine stands for C++ component-oriented game engine. It can be used as a tool for creating 2D windows or mobile games. It is implemented as an OpenFrameworks addon.

Budget: over 600 working hours

Platforms

  • Windows
  • Linux
  • Android

Features

  • Scene graph
  • ECS pattern (messaging, generic attributes, flags, behaviors, components)
  • Animations
  • Finite state machines
  • Goal-driven behavior components
  • Steering behaviors
  • Monte-Carlo tree search
  • A* Path-finding
  • SQLite database
  • Custom networking protocol for multiplayer
  • XML and JSON parsers for certain components
  • Lua scripting language

mario

Projects

  • Hydroq
    • RTS game with Monte Carlo AI
    • available here
    • !!only works with the version 0.2 of this engine (link)

logo

  • Arkanoid clone
    • included in the Example folder

logo

  • Paratrooper clone
    • included in the Example folder

logo

How to use it

Component Architecture

  • The whole game is made of components
  • Component is an entity that defines functional behavior for the whole application or its part (is not attached to any game object)
  • Behavior is a component that is attached to a game object, defining its functionality
  • Node is a part of scene graph, represents a single entity (usually a game object)
  • Attribute is a generic attribute, kept in a collection the Node has a reference to
  • The overall behavior of a particular game object is determined by the aggregation of its behaviors and attributes

Component Architecture Example

Scene

scene1

Objects

scene2

Component architecture

scene3

Compatibility

Works with OpenFrameworks 0.9.8

LICENSE and ATTRIBUTIONS

  • ofxCogEngine is made available under the MIT license.
  • ofxCogEngine bundles catch framework, lua scripting language, luabridge binder, sqlite and following OpenFrameworks addons: ofxNetwork, ofxSQLite, ofxTextLabel, ofxXmlSettings

cogengine's People

Contributors

dodolab avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

veketor ofxyz

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.