Perpetual
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:javascript playground, html5 canvas / webgl experiments, utilities, datastructures, tests etc.
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...

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。