v0.1.1-beta
Pre-release
Pre-release
·
1737 commits
to main
since this release
Small update for Kristal. Check out the documentation for how to use this engine, and download example-mod.zip
for mod structure, as well as overworld and battle examples.
Additions:
- Added
onFootstep
function toMod
,Map
, andCharacter
, which takes an argument for the character (only inMod
andMap
) and which step it is (1 or 2) - Added
Timer:everyInstant
, same asTimer:every
but calls the function once immediately - Added
World:spawnObject
to conveniently add an object to World - Added
Stage.timer
, easily accessible anywhere viaGame.stage.timer
- Added
EnemyBattler.encounter
variable - Added
Anchor(ox, oy)
object, whereox
andoy
are a percentage from 0-1, and theAnchor
object will stay anchored to that percentage of the parent's width and height. For example,Anchor(0.5, 0.5)
will always be centered on its parent.
Changes:
- Moved bullets' scale and origin to the bullet itself, instead of their sprite. This means bullet hitboxes are no longer centered, they are now relative to the bullet's topleft, and changing origins of the bullet itself works how you would expect. This may break your bullet if it defines a custom hitbox, scales/rotates its sprite directly, or adds a child to itself!
- Moved
EnemyBattler.tension_attack_divider
to a function,EnemyBattler:getAttackTension
- Renamed
EnemyBattler:fetchEncounterText
toEnemyBattler:getEncounterText
- Added "after" function argument to
Character:setAnimation
- Allow enemies to not have encounter text
- Made "height" argument of
Wave:setArenaSize
optional - Allow
ActorSprite
to be initialized with a string (actor ID) instead of anActor
directly - Allow
Utils.angle
to take objects as arguments. - Allow
Utils.clampMap
arguments to be passed in any order
Fixes:
- Fixed tile alpha blending
- Fixed
Object:setLayer
not properly updating children - Fixed hooks not applying to subclasses
- Fixed inconsistency with Deltarune for exiting certain battle menus
Windows: Download and extract the .zip
, and run kristal.exe
to play
Others: Download and install Love2D, and run the .love
with Love2D to play