Skip to content

Lota 0.7.0

Choose a tag to compare

@Kerrick Kerrick released this 21 Nov 06:18
· 63 commits to trunk since this release

Fixed

  • Lota::Font::TrueTypeRasterizer.new, Lota::Font::Rasterizer.new, and Lota::Graphics::Font.new check the hinting mode before the DPI scale and the font, as LÖVE does, where a font file that could not be read, or a DPI scale of the wrong kind, raised first; Lota::Graphics::Font.new given a font and no size ignores the settings, as LÖVE does, where it raised TypeError for one of the wrong kind.
  • Lota::Filesystem.mount_full_path and .mount_common_path read an append that is not true or false as false, as LÖVE does, where they took its truthiness.
  • Lota::Filesystem.mount mounts a File that open_native_file opened or Lota.filedropped received, by its filename, as LÖVE means to, and reads an append that is not true or false as false, as LÖVE does, where it raised; mount and unmount raise TypeError for any other archive that is neither a String nor a Lota::Data, where they raised NoMethodError.
  • Breaking: Every setter LÖVE reads with luax_checkboolean raises TypeError for a value that is not true or false, nil included, as LÖVE does, where it took any value's truthiness: Lota::Mouse.visible=, grabbed=, and set_relative_mode; Lota::Keyboard.key_repeat= and text_input=; Lota::Joystick.background_events= and Joystick#sensor_enabled=; Lota::Window.set_fullscreen and display_sleep_enabled=; Lota::Graphics.color_mask=, depth_mode=, which checks the flag before the compare mode, and wireframe=; Lota::Audio.set_output_spatialization, set_mix_with_system (and so t.audio.mixwithsystem), and Source#looping= and #relative=; Lota::Filesystem.symlinks_enabled=; and Lota::Physics::Body#active=, awake=, bullet=, fixed_rotation=, and sleeping_allowed=, Shape#sensor=, World#sleeping_allowed=, Contact#enabled=, and the motor_enabled= and limits_enabled= of RevoluteJoint, PrismaticJoint, and WheelJoint.
  • Lota::Physics::World.new lets Bodies sleep when given nil for sleep, as LÖVE does, where it took nil as false.
  • Lota::Filesystem.identity= and t.appendidentity read an append that is not true or false as false, as LÖVE does, where they took its truthiness.
  • Lota::Physics::Body#apply_torque and #apply_angular_impulse take whether to wake the Body after the amount, as LÖVE's applyTorque and applyAngularImpulse do, where they raised ArgumentError for it.
  • Lota::Video::VideoStream#sync= given something it cannot keep time by says what it expected in LÖVE's words, "Source or VideoStream or nil", where it listed them with commas.
  • Lota::Filesystem.lines given something other than a String raises TypeError saying it "expected filename.", as LÖVE does, where it raised the binding's own message.