Skip to content

javascript playground, html5 canvas / webgl experiments, utilities, datastructures, tests etc.

Notifications You must be signed in to change notification settings

tomasztunik/Perpetual

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

perpetual


Tomasz Marian Tunik's JavaSript playground and perpetual attempt at making something significant. Moslty html5 2d/webgl canvas stuff.

Utilities:
- Timer - requestAnimationFrame based, using 3 models - simple (update + render linked), deterministic (const update intervals + render) and simple (only render loop)
- Camera2d - allows to pan/zoom view on the canvas and set scale or invert y axis of canvas
- Vec2 - 2d vector math as set of static methods
- M2 - simple 2d matrix for transformations
- u.js - dif utilities and helpers - extend (inheritance), clamp, map, max, min, randInt, randFloat, TO_RADIANS, TO_DEGREES.. and growing
- image-scaling.js - set of different upscalling algorithms for sprites/textures (so far Scale2x/4x + Nearest Neighbour)

Sprites:
- Animation.js + Frame.js - work in progress for advanced animations

Datastructures:
- scene/dependency graph - with canvas and HTML5 renderers
- quadtree - QuadTree.js

Examples:
- scene graph, children nodes transformations test
- quad tree indexing - quadtree indexing visualisation
- quad tree collisions
- brute force collisions - for comparison
- three.js - simple test of wrapping it in perpetual-style structure
- basic webgl with triangles drawing - nothign fancy, just regular
- and others...

About

javascript playground, html5 canvas / webgl experiments, utilities, datastructures, tests etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published