Skip to content

v0.1.1-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@SylviBlossom SylviBlossom released this 21 Jan 23:16
· 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 to Mod, Map, and Character, which takes an argument for the character (only in Mod and Map) and which step it is (1 or 2)
  • Added Timer:everyInstant, same as Timer:every but calls the function once immediately
  • Added World:spawnObject to conveniently add an object to World
  • Added Stage.timer, easily accessible anywhere via Game.stage.timer
  • Added EnemyBattler.encounter variable
  • Added Anchor(ox, oy) object, where ox and oy are a percentage from 0-1, and the Anchor 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 to EnemyBattler: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 an Actor 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