Repository navigation
Releases
Releases · setdef/Lota
Lota 0.8.0
Added
lota path/to/file.rbruns that Ruby file in the place ofmain.rb, from its folder, aslove path/to/file.luadoes, andlotatakes a game given as afile://URI.lotareads LÖVE's options--fused,--console,--game PATH,--renderers LIST, and--excluderenderers LISTanywhere among its arguments, aslovedoes, and gives the game its arguments without them;--renderersand--excluderendererswin overconf.rb's, and--consolechanges nothing yet.- The fuser, an app that makes a
.lotaopened with it, or given to its program after--build, into an app of its own, with no Ruby on the computer, through Fledge'sfledge build --from(Lota::Fuser);rake "fuser[GEM]"builds it from a clone of Lota. - Each release also publishes Lota's extension prebuilt for each iOS slice and Android ABI beside the engines, as
lota-extension-ios-arm64.tar.gzand the like, built against them and the phone Ruby of the Fledgelota fusebuilds with, and pinned beside them. A phone build from the release's source gem links it and compiles only its three-line entry point, so it needs neither Rice nor CMake. A gem whose files differ from the extension's compiles the extension, and a phone Ruby of another ABI stops the build, saying to name the Fledge the extension was built with or to pass--with-rice-dir, with which the build compiles the extension for that Ruby. - Each release also publishes, for each desktop, Lota's app, which plays a
.lotaopened with it or dropped on its "no game" screen as LÖVE's app plays a.love, and the fuser, which makes a.lotainto an app of its own; each as an archive and an installer, such asLota-arm64-darwin.dmgandLota.Fuser-x64-mingw-ucrt-setup.exe, carrying the release's version and listed in itsSHA256SUMS, so neither a player nor a developer needs a clone of Lota to have them
Changed
lota fusebuilds with Fledge 0.16.0, was 0.14.0; Fledge's changelog says what changes in an app.- A fused Linux app is about 69 MB smaller unpacked, since Fledge 0.16.0's runtime carries its static libruby without debug information.
- An Android app built as the phone guide says carries the NDK's shared C++ runtime,
libc++_shared.so, about 1.4 MB in each ABI, with its licence innotices/libc++_shared.txt, and Lota's extension links it, where it linked a static copy of its own. - Breaking:
Lota::Event.restartruns the game again in its process on every platform, as LÖVE's restart does, where it replaced the process withexec: a game on iPhone, iPad, or Android restarts where it ended, a game in the macOS App Sandbox restarts where macOS 15 killed it,Lota::Boot#callruns the game again where it returned, and on Windows the process keeps its id. What a game changed outside its own files, such as a built-in class or a gem it loaded, stays from one run to the next. - Breaking:
Lota::Boot#restart?andLota::Boot#restart_valueare gone:Lota::Boot#callnow returns only once the game quits, so there is no restart for them to report. - Breaking:
lota path/to/gameruns a game, aslove path/to/gamedoes, andlota runis gone.lotaalone prints its usage and shows the no-game screen, where it printed its usage, so the game in the current folder runs withlota ., and-vand-hare gone, aslovehas only--versionand--help, which print LÖVE's usage with Lota's names. - Breaking:
Lota::Boot.new(nil, arguments)takes the game from its arguments, as thelotaprogram does, wherenilnamed the current folder; given a folder, it reads LÖVE's options among the arguments and leaves them out of the game's. lotagiven a path that holds no game, or a file that is not a.lota, prints its usage and opens a window that shows the error, aslovedoes with a path it cannot load, where it printed the error and exited before opening one.
Fixed
Lota.filedroppedreceives the file dropped on the window, or opened with a fused app on macOS, as aLota::Filesystem::File, as LÖVE'slove.filedroppeddoes, where handling the event raised RuntimeError.
Lota 0.7.1
Added
- Each release publishes LÖVE's engine prebuilt for each iOS slice and Android ABI beside its gems, as
lota-engine-ios-arm64.tar.gz,lota-engine-ios-arm64-simulator.tar.gz,lota-engine-android-arm64-v8a.tar.gz, andlota-engine-android-x86_64.tar.gz, with their checksums in itsSHA256SUMS. A phone build fetches them without--with-lota-source: from the release's source gem,lota-VERSION.gem, which each release now also publishes and which pins that release's engines inext/lota/phone/engines.txt, or from a clone of trunk, where CI pins the newest release's after each release.
Lota 0.7.0
Fixed
Lota::Font::TrueTypeRasterizer.new,Lota::Font::Rasterizer.new, andLota::Graphics::Font.newcheck 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.newgiven 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_pathand.mount_common_pathread anappendthat is nottrueorfalseasfalse, as LÖVE does, where they took its truthiness.Lota::Filesystem.mountmounts aFilethatopen_native_fileopened orLota.filedroppedreceived, by its filename, as LÖVE means to, and reads anappendthat is nottrueorfalseasfalse, as LÖVE does, where it raised;mountandunmountraiseTypeErrorfor any otherarchivethat is neither aStringnor aLota::Data, where they raisedNoMethodError.- Breaking: Every setter LÖVE reads with
luax_checkbooleanraises TypeError for a value that is nottrueorfalse,nilincluded, as LÖVE does, where it took any value's truthiness:Lota::Mouse.visible=,grabbed=, andset_relative_mode;Lota::Keyboard.key_repeat=andtext_input=;Lota::Joystick.background_events=andJoystick#sensor_enabled=;Lota::Window.set_fullscreenanddisplay_sleep_enabled=;Lota::Graphics.color_mask=,depth_mode=, which checks the flag before the compare mode, andwireframe=;Lota::Audio.set_output_spatialization,set_mix_with_system(and sot.audio.mixwithsystem), andSource#looping=and#relative=;Lota::Filesystem.symlinks_enabled=; andLota::Physics::Body#active=,awake=,bullet=,fixed_rotation=, andsleeping_allowed=,Shape#sensor=,World#sleeping_allowed=,Contact#enabled=, and themotor_enabled=andlimits_enabled=ofRevoluteJoint,PrismaticJoint, andWheelJoint. Lota::Physics::World.newlets Bodies sleep when givennilforsleep, as LÖVE does, where it tooknilasfalse.Lota::Filesystem.identity=andt.appendidentityread anappendthat is nottrueorfalseasfalse, as LÖVE does, where they took its truthiness.Lota::Physics::Body#apply_torqueand#apply_angular_impulsetake whether to wake the Body after the amount, as LÖVE'sapplyTorqueandapplyAngularImpulsedo, 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.linesgiven something other than a String raises TypeError saying it "expected filename.", as LÖVE does, where it raised the binding's own message.
Lota 0.6.0
Fixed
Lota::Graphics.drawand.draw_layergivennilin place of the quad, then aLota::Math::Transform, report the missing quad, as LÖVE does, where they reported the Transform.Lota::Graphics::Buffer.newandLota::Graphics::Mesh.newwith a format of its own report an unknown usage, or mesh mode, before a fault in the format, as LÖVE does.Lota::Graphics::TextBatch#setfchecks its wrap limit and alignment before its text, as LÖVE does.Lota::Graphics::Buffer.newraises TypeError for ausageordebugnamethat is not a name or text, before reading the format, as LÖVE does, where it read them as text after the format.Lota::Graphics.draw_from_shaderraises TypeError for anilcount, where it drew nothing, and.draw_from_shader_indirectgiven a primitive checks its name before its buffer, as LÖVE does.Lota::Graphics::Mesh.newraises TypeError for a usage that is not a name, where it ignored one in the standard form, checks the mode and usage before the vertex format, and raises TypeError for an older format entry whose name or type isnilor a boolean, as LÖVE does.Lota::Graphics::Mesh#set_vertex_mapgiven a Data and no index type, ornil, raises TypeError, as LÖVE does, where it raised IndexError or an unknown-type error.Lota::Graphics.readback_textureand.readback_texture_asyncraise TypeError for a texture that is not aLota::Graphics::Texture, before checking the other arguments, as LÖVE does, where they raised NoMethodError.Lota::Graphics::TextBatch#addand#addfraise TypeError for a placement value that is not a number, as LÖVE does, where they dropped it and read the numbers after it in its place.Lota::Graphics.clear(nil)clears to transparent black, andLota::Graphics.scissor =fournils or an empty Array stops clipping, as LÖVE does, where they raised.Lota::Graphics.set_canvas(depthstencil: target)with no canvases draws to that target alone, andLota::Graphics.canvasis then empty, as LÖVE does, where it drew to the window again.Lota::Graphics::Texture#replace_pixelstakes aLota::Image::CompressedImageData, and the mipmap of it to copy as a new last argument, as LÖVE does, where it raised TypeError.Lota::Graphics::SpriteBatch#add,#set,#add_layer, and#layer=take aLota::Math::Transformin place of the numbers, after the quad when there is one, as LÖVE does, where they raised TypeError.Lota::Joystick.save_gamepad_mappingswith a file name raises the message of a write that fails, as LÖVE does, where it returned the mappings as if it had written them.Lota::Mouse.down?takes its buttons as one Array, as LÖVE'sisDowntakes a table, where it raised TypeError.Lota::Event.pushraises TypeError for a name that is neither a Symbol nor a String before it reads the arguments, as LÖVE does, where it queued the name'sto_s.Lota::Sensor.enabled=raises TypeError when whether the sensor is on is nottrueorfalse, as LÖVE does, where it took any value's truthiness.Lota::Audio::Source#set_effectraises TypeError for an on-or-off value that is nottrue,false, ornil, as LÖVE does, where it set the effect.Lota::Window.set_modeandupdate_moderaise TypeError for anxorythat is not a number, as LÖVE does, where a String became 0 and other values raised NoMethodError.Lota::Audio::RecordingDevice#startraises TypeError for samples given asnil, as LÖVE does, where it recorded with the device's last settings and dropped the rest.Lota::Audio::Source#queueraises TypeError for something other than a SoundData, and for an offset or length given asnilor as anything but a number, as LÖVE does, where it raised NoMethodError or queued every sample.Lota::Data::ByteData#string=takes aniloffset as 0, as LÖVE does, where it raised.Lota::Mouse::Cursor.newtakes anilhot spot as 0, as LÖVE does, where it raised.- Breaking:
Lota::Math::RandomGenerator.new(nil)raises TypeError, as LÖVE'snewRandomGenerator(nil)does, where it made a generator from the usual seed; leave the seed out for that. - Breaking:
Lota::Window.show_message_boxwith an empty Array of buttons raises RuntimeError, as Lota raises every error LÖVE raises withluaL_error, where it raised ArgumentError. Lota::Filesystem.write,append, andFile#writegiven a negative size returnniland LÖVE's message,"Invalid write size.", as LÖVE does, where they wrote nothing and returnedtrue.- Breaking:
Lota::Math::Transform#matrix=andLota::Graphics.projection=check the layout before the elements, and raise TypeError for fewer than sixteen elements, as LÖVE does, where they raised ArgumentError for the count first. - Breaking:
Lota::Image::ImageData#map_pixelchecks the rectangle's numbers before the block, and raises RuntimeError with LÖVE's message for one that is not a number, as LÖVE does, where it raised TypeError, and checked the block first. Lota::Image::ImageData.newwith a size checks the size and the format before the kind of its bytes, as LÖVE does, where bytes of the wrong kind raised first.t.externalstorage = trueputs an Android game's save directory on the app's external storage, as in LÖVE. Lota kept the setting but never passed it to the engine, so the game saved on internal storage.Lota::Sound::SoundData.new(file, buffer_size, type)decodes the file with that buffer size and stream type, and raisesArgumentErrorfor a stream type LÖVE does not know, aslove.sound.newSoundDatadoes; it ignored both. A sample rate, bit depth, or channel count given asniltakes its default, as in LÖVE, where it raisedTypeError.Lota::Filesystem.writeandappendtake anyLota::Data, such as aByteData, as LÖVE does, where they took only aFileData.- Every texture constructor (
Texture.new,Image.new,ArrayTexture.new,CubeTexture.new,VolumeTexture.newand theirImagekin),Lota::Graphics::Font.new,Lota::Graphics::ImageFont.new,Lota::Graphics::Shader.new,ComputeShader.new, andLota::Graphics.validate_shadertake aLota::Filesystem::Filewhere LÖVE does, andFont.newtakes anyLota::Dataholding a TrueType font with a size, as LÖVE does. Lota::Sound::Decoder.newandLota::Audio::Source.newtake aLota::Filesystem::File, decoding from theFileitself or with:memoryfrom what it reads, and anyLota::Data, as LÖVE does, where they took only a file name or aFileData;Decoder.newtakes anilbuffer size as the default.Lota::Graphics::ComputeShader.newtakes a second source, as LÖVE'snewComputeShaderdoes, which it reads and looks up asShader.newreads its second and compiles only when the first isnil.- A
Filethat cannot be read raisesRuntimeErrorwith LÖVE's message inLota::Font's rasterizers, where it raisedTypeError;ImageFont.newchecks its image before its spacing and DPI scale, as LÖVE does; andShader.newpasses over a source argument that is neither aStringnor a file, as LÖVE does, where it raised. Lota::Filesystem.mountmounts aFilethatopen_native_fileopened, by its filename, as LÖVE does, and reads anappendthat is nottrueorfalseasfalse, as LÖVE does, where it raised;mountandunmountraiseTypeErrorfor any otherarchivethat is neither aStringnor aLota::Data, where they raisedNoMethodError.- Breaking:
Lota::Physics::CircleShape.new,RectangleShape.new, andEdgeShape.newcheck a destroyed Body before they count the numbers after it, as LÖVE does.EdgeShape.newmakes a lone edge when its fifth number isnil, and raises TypeError for a missing number, where it raised ArgumentError for fewer than four and IndexError for five to seven. Lota::Physics::Shape#ray_castchooses its form as LÖVE does, casting where the Body is unless the seventh argument is given and notnil, and takes anilchild as 1; anilamong the extra arguments raised TypeError.- Breaking:
Lota::Physics::RevoluteJoint.new,WeldJoint.new, andPrismaticJoint.newraise TypeError for an explicitnilreference angle, as LÖVE does, where they left the angle out;FrictionJoint.newandWheelJoint.newno longer read a value aftercollide_connected, as LÖVE does not. - An explicit
niltakes the default, as LÖVE's optional numbers do, forLota::Physics::RectangleShape.new's angle,Lota::Physics::Fixture.new's density, and the child ofLota::Physics::Shape#compute_aabband#bounding_box; each raised TypeError. - Breaking:
Lota::Physics::ChainShape.newandLota::Physics.new_chain_bodyraise TypeError for aloopthat is nottrueorfalse, as LÖVE does; they tooknilasfalseand anything else astrue. - Breaking:
Lota::Physics::Body#world_pointsand#local_pointsreturn an odd value left over first, as it was given, then the transformed pairs, as LÖVE does; they returned it last, as a Float. Given fewer than two values, they raise LÖVE's message, "Incorrect number of arguments. Got [1], expected at least [2]".
Lota 0.5.5
Changed
lota fusebuilds with Fledge 0.14.0, was 0.13.0; Fledge's changelog says what changes in an app.lota fusejudges a Gemfile'srubyline by the Ruby of Fledge's runtime as RubyGems names it,4.1.0.preview1on macOS and Linux and4.1.0.devon Windows, where it judged plain4.1.0: a line that asks for4.1.0-preview1exactly now fuses on macOS and Linux, though not on Windows, and a range whose first bound is a preview, such asruby ">= 4.1.0.a", "< 4.2", now fuses under Bundler 4.0.- When the lockfile has no checksum for its Bundler, the advice
lota fusepasses on from Fledge is to rungem install bundler -v VERSION, thenbundle lock --add-checksums, where it wasbundle install, which wrote no checksum for a Ruby's own Bundler. - An Android app carries Lota's engine and extension as a library of their own,
libfledgeext.lota.native.so, which Ruby loads on its own thread when the game requires Lota, where Fledge linked them intolibfledgeext.so, which the host loaded before Ruby started;rake android:noticesnames the new file.
Lota 0.5.4
Added
lota fusereads Bundler'swithandwithoutsettings as Bundler reads them for the game's folder (its.bundle/config,BUNDLE_WITHandBUNDLE_WITHOUT, then your own), where it read only your own: a group inwith, such asbundle config set --local with development, ships in the app, which still leaves out thedevelopmentandtestgroups by default.
Changed
lota fusebuilds with Fledge 0.13.0, was 0.12.0; Fledge's changelog says what changes in an app.
Fixed
lota fusebuilds a game with the Bundler thatbundleruns in the game's folder, wherever you run it from. It took the Bundler that the lockfile in the folder it ran from, or in a folder above it, named, so one game could be locked by another Bundler, or refused by Fledge, depending on that folder.- On Ruby 4.1, reading four or more values at once (
Lota::Graphics.color,background_color,scissor,Lota::Image::ImageData#pixel,Lota::Math::Transform#matrix,Lota::Graphics::Mesh#vertex, a ray cast's hit, a shape's points, and the like), polling a message of four or more values such as a mouse move's, and a physics callback's four or more arguments no longer set off major garbage collections: each such Array now holds its values inline, with no buffer from malloc, which Ruby 4.1 counts toward anoldmallocmajor collection. A frame that read the color 1,000 times ran 17 of them in 10,000 frames, and now runs none. Lota::Graphics.color=,Lota::Graphics.background_color=, andLota::Graphics::SpriteBatch#color=allocate only the Array their values arrive in, as in 0.3.1; since 0.4.0 each call allocated a second.- A phone app built from a clone of Lota at a release's tag, by the iOS kit or by hand, has that release's
Lota::VERSION, where it had0.0.1.dev:rake phone:gem, which lays out the folder a phone project names as itslotagem, stamps it in.
Lota 0.5.3
Changed
lota fusestops before it writes anything when an--excludepattern would leave out the file the game's Gemfile reads its Ruby version from (ruby file: ".ruby-version"), or its folder, as it stops forconf.rbandmain.rb, where Bundler stopped later, as it locked the project's gems.
Lota 0.5.2
Added
lota run game.lotaplays a game in one file, its folder zipped, aslove game.loveplays a.love:Lota::Filesystemreads the archive, which is itssource, and the game saves under the archive's name, while its Ruby runs from a copy unpacked once into the system's cache folder, sorequire,require_relative,__dir__, andFilework as from the folder, in aLota::Thread::Threadof one of its files too. An archive with an entry that would land outside the folder, match another but for case, take a name Windows forbids, hold native code, be a symbolic link, or, on Windows without long paths, need a path longer than 259 characters, is refused, naming the entry.
Lota 0.5.1
Fixed
- A
Lota::Thread::Threadmade from a file runs its code under the file's real path, so__FILE__,__dir__,require_relative, and backtraces name the file, as LÖVE names a thread's chunk for its file, where they named the file as the game knows it, relative to the working directory.
Lota 0.5.0
Added
- Deprecation notices are drawn over the frame, as LÖVE draws them: the newest four, in a dark band at the bottom of the window, for 20 seconds after the latest, while
Lota.deprecation_output?is true. love.thread:Lota::Thread, which boot opens unlesst.modules.threadis false, andlota.thread;Lota::Thread.channel;Lota::Thread::Channel(new,push,supply,pop,demand,peek,count,read?,clear,perform_atomic), which carries any of Lota's objects as itself and hands back a fresh copy of each message, its Strings, Arrays, and Hashes unfrozen; andLota::Thread::Thread(new,start,wait,error,running?), whose code runs in a Ractor of its own.lota.graphicsandlota.windowarenilin a thread's code, as in LÖVE, and the user data and World callbacks one thread sets raiseRactor::IsolationErrorin another.Lota::Graphics.capture_screenshottakes aLota::Thread::Channel, which gets the frame as anImageDataonce it is presented, aslove.graphics.captureScreenshottakes a Channel.Lota.threaderror(thread, error), called when a thread's code raises; its default raises the error in the game, aslove.threaderrordoes.- A Ractor other than the main one may call Lota's modules, holding wrappers of its own for the engine objects it reads, but
Lota::GraphicsandLota::WindowraiseThreadErrorthere, as on any thread but the main one. Lota::Window.show_file_dialog, translatinglove.window.showFileDialog: it shows the system's dialog for opening files, opening a folder, or saving, and calls its block or callable with the chosen paths, the chosen filter's name, and any error when the event queue is next pumped after the player chooses.Lota::Graphics.cleartakes an Array of components for each canvas being drawn to, aslove.graphics.cleartakes a table for each, with an empty Array ornilleaving a canvas as it is.- A phone build fetches LÖVE's engine and its libraries prebuilt for its iOS slice or Android ABI from the release that
ext/lota/phone/engines.txtnames, checked against the SHA-256 it pins, unlessbundle config build.lotapasses--with-lota-source, which builds them from source as before;--with-lota-engine-urlnames a mirror and--with-lota-engine-cachethe folder they are kept in.
Changed
- Breaking: A
Lota::Datais no longerRactor.shareable?: each Ractor holds its own wrapper of an engine object, as each of LÖVE's Lua states holds its own userdata, so a release in one ends only that one's use. Pass a Data, or any of Lota's objects, to another Ractor through aLota::Thread::Channelor a thread's arguments, which carry it as itself. - Breaking: Requires Ruby 4.1 (preview or later); Ruby 4.0 is no longer supported. Each precompiled gem accepts Ruby 4.1's previews and releases, and the Windows gems are built on the head build of RubyInstaller that Fledge keeps, since RubyInstaller publishes no 4.1 preview; another day's head build need not load them.
lota fusebuilds with Fledge 0.12.0, whose runtimes are Ruby 4.1, was 0.10.0.- Lota's loop allocates fewer objects calling a game's callbacks: two a call, the arguments and the callback's
Method, where it allocated five to seven, so a game with an emptyupdate(dt)anddrawcosts 7 objects a frame instead of 14. Lota::VERSIONis a release's version only in that release's gems; a clone of the repository, and a gem built from one, is0.0.1.dev, which sorts before every release.
Fixed
- An object a game releases while another thread's call still uses it is let go as that call ends, rather than when Ruby collects its wrapper.
- A game that releases an object and still holds it no longer stops Ruby at the next garbage collection with "[BUG] object allocation during garbage collection phase".
- On 64-bit Android, a new engine object, such as a
SoundDataor aShader, no longer comes back as an older object of the same class or another that lay close by in memory, which released the new object and madeSoundData#sample=raise "Attempt to set out-of-range sample!" andShader#send"Shader uniform ... does not exist." on most launches. t.gammacorrectinLota.confprints LÖVE's deprecation notice, replaced byt.graphics.gammacorrect, aslove.conf's does.