Giter Club home page Giter Club logo

visualization's Introduction

Visualization

Visualizes simple game techniques for 2D or anything I found interesting.

Checkout wiki page for download link, algorithm details, etc.

Notes

  • These visualizations are made for 2D, but some can be expanded to 3D (i.e. QuadTree to OcTree or 3D flocking with additional axis).
  • All visualizations are coded within about 3 days while my spare time, so I don't expect to work flawlessly and keep up 60 fps for all enviornments. There are definetly some points where I can polish.
  • Since all visualizations I made are well known and have tons of articles out there on the internet, I didn't provide any explanation for each algorithm. Search on Google if you need more info.

Engine & Language

Cocos2d-X 3.13 ~ 3.14.1

Why Cocos2d-X? Because Cocos2d-X is the engine that I'm most used to it compared to others, works great for 2D, cross-platform and opensource. Also it's free!

C++

Performance

Performance of each algorithm are different. Some algorithm, Quad Tree for example, limits the size of total entities, but some algorithm can have more than 10000 entities like Circle Packing.
My goal for the performance is to make everything to run in 60 fps in most case.

Working/Tested Platforms

Windows 10
Mac OS X Sierra
Ubuntu 16.04


Planned

Optimization

Optimize all visualization.

Vector Math

Visualizes dot and cross product (i.e. Patrol detects player if player is in his sight range with angle)

Audio spectrum

Visualizes music in to several different form of graphs


Font

Used Rubik by Hubert & Fischer.

##Todo List

  • Test build on linux

ChangeLog

v0.12 Added Sort (Selection, Insertion, Merge, Bubble, Quick) visualization v0.11 Added 2D visibility visualization.
v0.10 Added A Star Pathfinding visualization. Memory leak checked with OS X Instrument.
v0.9 Added Ear Clipping visualization.
v0.8 Using new ECS implementation of mine link
v0.7 Added Rect Packing visualization.
v0.6 Refined.
v0.5 Added Circle Packing visualization.
v0.4 Fixed Bugs.
v0.3 Replaced ECS.
v0.2 Added Flocking Algorithm visualization.
v0.1 Added QuadTree visualization.
v0.0 Project started.

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.