Skip to content

Releases: KilledByAPixel/LittleJS

1.10.7 - Many small fixes

09 Dec 18:26
Compare
Choose a tag to compare

added glAntialias - enabled by default, sets antialias when creating the webgl context
allow passing a promise for gameInit for loading custom assets before startup
rework ui plugin to use mouse down rather then click events
added scrollbar ui object to plugin
fixed bug with zzfx sounds using default randomness if set to 0 randomness
fix some issues with touch gamepad
simplify platformer demo
setup padding in some example tile sheets
Color.setHex can take 3 or 6 length hex colors with optional alpha
added isValid checks to vec2 and color

1.10.2 - uis, pixels, roots, and more

20 Nov 02:41
Compare
Choose a tag to compare
  • added ui system plugin and example
  • added example showing how to hookup html menus
  • allow passing root element to engineInit
  • set image-rendering pixelated and no alias for webgl
  • fix half pixel offset issue, now using flexbox to center
  • set tileFixBleedScale to 0 by default
  • allow setting tileFixBleedScale anytime
  • require passing in texture filename to engineInit
  • rework tile function to accept padding and vec2 positions
  • prevent warning if no images passed in
  • clean and improve box2d plugin
  • added cloth and softbody demos to box2d example
  • improved how stalled audio is resumed
  • added debugShowErrors() - Show error as full page of red text
  • added engineObjectsRaycast to raycast for objects
  • added drawPoly, drawCircle, and drawEllipse
  • improved jsconfig setup

1.9.9 - Box2d and Plugin system!

04 Oct 19:28
Compare
Choose a tag to compare

There is now a simple plugins system and a new folder for plugins!

  • Newgrounds API moved to plugin
  • Post processing moved to plugin
  • Box2D added

Box2D features

  • Box2dObject extends EngineObject with box2d physics
  • Added wrappers for most things
  • Functions to create polygon, circle, and edge shapes
  • Raycasting and querying
  • Joint creation for every type of joint
  • Contact begin and end callbacks
  • Debug physics drawing
  • Demo that shows off all the features

More changes

  • Added headless mode for servers, skips all rendering and sound
  • Added global gain node, volume can be changed in real time now
  • Fixed some issues with touch input
  • Circular clamp speed for particles
  • Make playAudioFile use SoundWave, get rid of HTML audio
  • Many other small fixes.

Check out the LittleJS Box2D demo!

screenshot (29)

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