Excalibur 0.29.2

dotnet add package Excalibur --version 0.29.2
NuGet\Install-Package Excalibur -Version 0.29.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Excalibur" Version="0.29.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Excalibur --version 0.29.2
#r "nuget: Excalibur, 0.29.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Excalibur as a Cake Addin
#addin nuget:?package=Excalibur&version=0.29.2

// Install Excalibur as a Cake Tool
#tool nuget:?package=Excalibur&version=0.29.2

excalibur logo

This is a medium-ish release, with a ton of community contributions especially in the bugfix realm!

Features

  • Added ability to configure image wrapping on ex.ImageSource with the new ex.ImageWrapping.Clamp (default), ex.ImageWrapping.Repeat, and ex.ImageWrapping.Mirror.
    const image = new ex.ImageSource('path/to/image.png', {
      filtering: ex.ImageFiltering.Pixel,
      wrapping: {
        x: ex.ImageWrapping.Repeat,
        y: ex.ImageWrapping.Repeat,
      }
    });
    
  • Added pointer event support to ex.TileMap's and individual ex.Tile's
  • Added pointer event support to ex.IsometricMap's and individual ex.IsometricTile's
  • Added useAnchor parameter to ex.GraphicsGroup to allow users to opt out of anchor based positioning, if set to false all graphics members will be positioned with the top left of the graphic at the actor's position.
    const graphicGroup = new ex.GraphicsGroup({
      useAnchor: false,
      members: [
        {
          graphic: heartImage.toSprite(),
          offset: ex.vec(0, 0),
        },
        {
          graphic: heartImage.toSprite(),
          offset: ex.vec(0, 16),
        },
        {
          graphic: heartImage.toSprite(),
          offset: ex.vec(16, 16),
        },
        {
          graphic: heartImage.toSprite(),
          offset: ex.vec(16, 0),
        },
      ],
    });
    
  • Added simplified ex.coroutine overloads, you need not pass engine as long as you are in an Excalibur lifecycle
    const result = ex.coroutine(function* () {...});
    
  • Added way to bind 'this' to ex.coroutine overloads, you need not pass engine as long as you are in an Excalibur lifecycle
    const result = ex.coroutine({myThis: 'cool'}, function* () {...});
    
  • Added optional ex.coroutine timing parameter to schedule when they are updated
    const result = ex.coroutine(engine, function * () {...}, { timing: 'postupdate' })
    
  • Added GraphicsComponent.bounds which will report the world bounds of the graphic if applicable!
  • Added ex.Vector.EQUALS_EPSILON to configure the ex.Vector.equals(v) threshold
  • Added way to add custom WebGL context lost/recovered handlers for your game
    const game = new ex.Engine({
      handleContextLost: (e) => {...},
      handleContextRestored: (e) => {...}
    })
    

Fixed

  • Fixed issue where ex.TileMap culling did not work properly when using fixed updates lower than refresh rate
  • Fixed incomplete types for font options in ex.FontSource().toFont(options)
  • Fixed issue with ex.Loader start button position when using CSS transforms
  • Fixed issue where adding scenes with the same name did not work when it was previously removed
  • Fixed issue when WebGL context lost occurs where there was no friendly output to the user
  • Fixed issue where HiDPI scaling could accidentally scale past the 4k mobile limit, if the context would scale too large it will now attempt to recover by backing off.
  • Fixed issue where logo was sometimes not loaded during ex.Loader
  • Fixed issue where unbounded containers would grow infinitely when using the following display modes:
    • DisplayMode.FillContainer
    • DisplayMode.FitContainer
    • DisplayMode.FitContainerAndFill
    • DisplayMode.FitContainerAndZoom
  • Fixed issue where ex.ParticleEmitter z-index did not propagate to particles
  • Fixed incongruent behavior as small scales when setting transform.scale = v and transform.scale.setTo(x, y)
  • Fixed ex.coroutine TypeScript type to include yielding undefined
  • Fixed issue where Firefox on Linux would throw an error when using custom Materials due to unused attributes caused by glsl compiler optimization.
  • Fixed issue where start transition did not work properly if deferred
  • Fixed issue where transitions did not cover the whole screen if camera was zoomed
  • Fixed issue where Color.toHex() produced invalid strings if the channel values are negative or fractional, or if the alpha channel was different than 1

Changed

  • Significant 2x performance improvement to image drawing in Excalibur
  • Simplified ex.Loader viewport/resolution internal configuration

<details> <summary>Raw Changes</summary>

What's Changed

</details>

New Contributors

Full Changelog: https://github.com/excaliburjs/Excalibur/compare/v0.29.1...v0.29.2

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.29.2 121 4/7/2024
0.29.1 136 2/23/2024
0.29.0 133 2/20/2024
0.28.7 159 1/27/2024
0.28.6 138 1/13/2024
0.28.5 170 1/6/2024
0.28.4 159 12/22/2023
0.28.3 145 12/12/2023
0.28.2 171 12/2/2023
0.28.0 259 8/11/2023
0.25.3 595 2/6/2022
0.25.2 468 1/22/2022
0.25.1 528 11/6/2021
0.25.0 446 10/4/2021
0.24.5 764 9/7/2020
0.24.4 674 9/3/2020
0.24.3 671 5/10/2020
0.24.1 573 4/24/2020
0.24.0 609 4/24/2020
0.23.0 760 6/8/2019
0.22.0 751 4/6/2019
0.21.0 925 2/2/2019
0.20.0 922 12/23/2018
0.19.1 913 10/23/2018
0.19.0 964 10/13/2018
0.18.0 1,025 8/4/2018
0.17.0 1,084 6/16/2018
0.16.0 1,152 4/6/2018
0.15.0 948 2/17/2018
0.14.0 1,104 12/2/2017
0.13.0 1,032 10/7/2017
0.12.0 1,116 8/12/2017
0.11.0 1,203 6/10/2017
0.10.0 1,171 4/8/2017
0.9.0 1,186 2/10/2017
0.8.0 1,116 12/4/2016
0.7.1 1,310 10/4/2016
0.7.0 1,342 8/30/2016
0.6.0 1,569 1/20/2016
0.5.1 1,354 6/26/2015
0.5.0 1,334 6/4/2015
0.2.2 1,708 4/16/2014
0.2.1 1,543 4/16/2014
0.2.0 1,568 4/10/2014
0.1.1-alpha 1,191 12/19/2013
0.1.0-alpha 1,283 12/12/2013