Skip to content

Releases: KilledByAPixel/LittleJS

1.9.4 - small fixes and cleanup, removed drawPoly

12 Aug 17:13
Compare
Choose a tag to compare
  • improve audio play on first click, prevents stacking while still allowing the first sound to go through
  • added TileInfo.frame() function for cleaner animation code
  • fix particle angle speed not working, it just wasn't hooked up, thanks to deep scan for helping me notice.
  • clean up some minor issues so deep scan is 100% perfect.
  • removed drawPoly, not needed by engine. feel free to copy that old function to your game code if you still need it.
  • improve platformer example with better sprite atlas and level loading code
  • improve touch gamepad, apply deadzone and fix issue with touchGamepadAnalog=0
  • remove unused glPostArrayBuffer in webgl code

1.9.3 - cleaner and meaner

05 Aug 21:43
Compare
Choose a tag to compare
  • more code and comment cleanup
  • fix particle angle speed not working
  • move builds folder to dist
  • audio context cleanup and simplification
  • added littlejs reference doc
  • platformer example improvements
    • use tiled editor
    • use mario 1-1 inspired level as default
    • added coins
    • setup texture atlas
    • cleanup sky and parallax

1.9.0 - Instanced Rendering

11 Jul 17:00
Compare
Choose a tag to compare
  • implemented instanced rendering for even faster performance, up to 8x boost in some cases
  • update zzfx to 1.3.1 with new filter param
  • use code for keyboard input, got rid of deprecated keyCode
  • added jsconfig.json to project and cleaned all type errors
  • fixed several small bugs
  • cleaner code and comments

1.8.9 - New ZzFX Param: Filter

04 Jul 19:57
Compare
Choose a tag to compare

updated to zzfx 1.3.0 with new filter param
splash screen tweaks and fit to screen
fix particle emitter emitSize can be a vector for a rectangular emitter

1.8,8 - littlejs logo splash screen

27 Jun 17:39
Compare
Choose a tag to compare

Added optional splash screen with the LittleJS logo! This logo and animation are fully code driven.

It also plays the startup animation in parallel with the texture loading to help hide loading.

Startup can be enabled in any LittleJS game by setting...

setShowSplashScreen(1)

littlejslogo (22) (8) (1)

1.8.6 - Fix type errors

18 Jun 14:47
Compare
Choose a tag to compare

fix wasd not registering when using inputWASDEmulateDirection
fix several slight type errors

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