1.0.0
1.0.0
Changelog
- Game
- Added stop method to stop the animationFrame
- Added animationFrame property
- Added delta time property
- Added mobile scaling / devicePixelRatio scaling
- Added fullscreen, unfullscreen, scaleToWindow and resetScale methods
- Added public isInFullscreen property
- Added auto canvas resize when in fullscreen
- Added smart scaling option to game options, resizes canvas if smaller than screen
- Scene
- Added loader to tools
- Added randomFloat to tools
- Added randomColorWithAlpha to color tools
- Added once method to run a function one time in a loop
- Camera
- Added setFOVSmooth and setZoomSmooth methods
- Added getters defaultFOV and defaultZoom
- Changed how following works, no need to put it in update or render in your scene
- Added stopFollow method
- Added public following method
- Added shake method
- Cutscene
- Added CAMERA_SHAKE type
- Added cameraIntervalMS and cameraTimeMS properties to step
- Particle
- Added setImagePath method
- Added public floatVX and floatVY properties
- Added public age property (based on seconds)
- ParticleEmitter
- Completely revamped ParticleEmitter
- Added emitFor method
- Added setRange method
- Added float method
- Added offloadMaxAge and offloadMaxAmount method
- Changed limitMax property on keepEmitting to a number
- Added setImagePath method
- Maps
- Implemented tilemap
- Sound
- Fixed source not being set
- Added volume option to option parameter in constructor
- Group
- Added event listeners
- Added pop, shift, and splice methods
- Added length getter
- Type parameter is now correctly being used
- Gameobjects
- Added spritesheet to gameobject
- Implemented delta time
- Sprite Gameobject
- Added applyFilter method
- Made image and path properties public
- StaticLight
- Made use of convertColorToRGBA helper
- Fixed 3 letter hex codes not working in conversion process
- Made alpha parameter required in setFillColor
- Collider
- SpriteSheets now work
- Helpers
- Added new color helpers
- Added randomColor and randomColorWithAlpha to color helpers
- Added convertColorToRGBA to color helpers
- Added version and startup helpers
- Base
- Added once class
- Interactive
- Input
- Added onClick method
- Added Button
- Input
- Text
- Text x and y properties are now separate from config property.
- Demos
- Added particle test demo
- Typescript
- Added namespace Class to Duck namespace, all classes are in this namespace
- Exported child namespace helper of Duck Namespace
- Added AlphaRange type to helper namespace
- Added NonNullable type generic to helper namespace
- Added DefaultValue type generic to helper namespace
- Misc
- Updated examples
- Updated changelog
- Updated readme
- Updated docs
- Updated dev dependencies
- Updated version to 1.0.0
- Made more properties on most classes public
- Changed hexToRGBA due to not working with 3 letter hex codes
- Updated security.md
How to download
- Download the 1.0.0.zip or 1.0.0.tar.gz.
- Unpack zip or tar.gz file.
- Import DuckEngine (index.js or index.min.js file)
Files
The 1.0.0.zip and 1.0.0.tar.gz both include typedefs, main file, and minified file.