Skip to content

Releases: KilledByAPixel/LittleJS

1.8.4 - small fixes

29 May 20:45
Compare
Choose a tag to compare
  • fix zzfx audio bug
  • fix typescript defs when using npm
  • fix RandomGenerator
  • fix right click in stress test
  • added context param to draw functions
  • fix zzfx sounds generating with wrong randomness
  • code cleanup

1.8.1 - Multi Textures, WebGL2

19 Apr 17:34
Compare
Choose a tag to compare

New Additions

  • multi texture support!
  • improved tile indexing
  • Webgl 2.0 shaders
  • TextureInfo class tracks stuff for each loaded image
  • TileInfo is used to index into a texture
  • fix RandomGenerator
  • cleanup code

With the new system some of the functions signatures have changed because now instead of passing in the tileIndex and tileSize around, now everything is contained in this object which is more useful because tiles aren't limited to being on a grid, also it has an optional texture parameter so anyone using multiple tile sheets can just pass in the index to any texture into there.

We also have an important new function called tile() where you can pass in tile index, or vector position and pass in the size as a float instead of a vec, if it is square, this should make it easy to use and retrofit old code.

So basically if you had code like this...

drawTile(this.pos, vec2(2), 0, vec2(16));

it becomes this...

drawTile(this.pos, vec2(2), tile(0, 16);

For anyone with a large code base, you can also retrofit old code by creating a new function called drawTileOld that works the old way and calls the new drawTile using the tile function to wrap the old params if that makes sense.

TileInfo is much more useful for us because it is not limited to a grid, the tiles can be at any pixel locations. Also a texture can be passed in and littlejs will handle using the correct one.

1.7.23

15 Mar 04:17
Compare
Choose a tag to compare
  • move time update to a better place
  • add effects to breakout example
  • fix crash in puzzle game example
  • remove cryptojs, instance must be passed in

v1.7.21

29 Jan 17:49
Compare
Choose a tag to compare
  • improve SoundWave, added getDuration and isLoading
  • Make Music extend Sound class
  • fix touch hold on ios causing lens and link popup
  • fix touch gamepad
  • remove floor from 2d transform (fix non-webgl glitches)
  • use strict mode for build scripts
  • make built files have proper use of strict so deepscan is happy

1.7.13

26 Jan 19:26
Compare
Choose a tag to compare

fix bug with screenspace parm in debug mode

v1.7.12

26 Jan 17:03
Compare
Choose a tag to compare
  • added wrap lerp functions
  • replace randSeeded with RandomGenerator
  • fix fps display
  • use tri strips instead of lists for webgl
  • added drawPoly function
  • added SoundWave to load wavs files
  • change screenspace draw functions to just be a param passed to draw
  • clean touch input
  • fix small zzfxm attenuation bug
  • fix mobile audio
  • added debugSaveText

v1.6.92

08 Jan 18:55
Compare
Choose a tag to compare
  • node build scripts
  • improved tile raycasts
  • improve intellisense
  • separate js13k starter project
  • fixes for deepscan
  • code cleanup

v1.6.4

12 Aug 17:57
Compare
Choose a tag to compare

move debug ~ to Escape to better support users that don't have that key readily available on their keyboard

  • this escape button can also be changed with the variable debugKey
    fix angular velocity
    fix touch input that broke due to recent browser update

1.6.0 - rework directory structure

07 Jul 22:16
Compare
Choose a tag to compare

new folder setup to make it work more like other JS frameworks

  • build/ - builds of littlejs engine
  • examples/ - all the examples are here now
  • src/ - the soruce of the engine

also renamed builds to start with littlejs instead of engine

1.5.1

30 Jun 02:56
Compare
Choose a tag to compare
  • improve documentation
  • default damping 1
  • remove defaultObjectSize