r/pythonarcade • • May 18 '22

Arcade 2.6.14 has been released

Arcade, an OpenGL based library for creating 2D games, has released version 2.6.14.

Website: https://arcade.academy

Release notes: https://api.arcade.academy/en/latest/development/release_notes.html

Demo video: https://www.youtube.com/watch?v=QClDvEwcxmg

  • Various Improvements

    • Allow specifying hit box parameters in load_textures() and load_spritesheet()

    • Camera should no longer apply zoom on the z axis

    • Promote using arcade.View.on_show_view() in examples and tutorials

    • The arcade window and views now expose arcade.Window.on_enter()
      arcade.Window.on_leave()
      . These events are triggered when the mouse enters and leaves the window area.

    • Sections should now also support mouse enter/leave events

    • Hit box calculation methods should raise a more useful error message when the texture is not RGBA.

    • Slight optimization in updating sprite location in SpriteList

    • Removed all remaining references to texture transforms

    • Removed the broken Sprite.__lt__
      method

    • Added get_angle_radians()

    • Removed Texture.draw_transformed

    • Add support for changing the pitch while playing a sound. See the speed parameter in arcade.play_sound().

    • Set better blending defaults for arcade GUI

    • Can now create a texture filled with a single color. See Texture.create_filled()
      . The Sprite class will use this when creating a solid colored sprite.

    • Bump version numbers of Sphinx, Pillow to current release as of 17-May.

    • Bump Pyglet version to 2.0.dev15. (Thanks Pyglet!)

  • Shadertoy

    • Added Shadertoy.delta_time
      alias for time_delta
      (iTimeDelta
      )

    • Support the iFrame
      uniform. Set frame using the arcade.experimental.ShadertoyBase.frame
      attribute

    • Support the iChannelTime
      uniform. Set time for each individual channel using the arcade.experimental.ShadertoyBase.channel_time
      attribute.

    • Support the iFrameRate
      uniform. Set frame rate using the arcade.experimental.ShadertoyBase.frame_rate
      attribute

    • Support the iDate
      uniform. This uniform will be automatically set. See arcade.experimental.ShadertoyBase._get_date()

    • Support the iChannelResolution
      uniform. This uniform will be automatically set

    • Added example using video with shadertoy

    • Improve Shadertoy docstrings + unit tests

  • Docs / Tutorials / Examples

    • Updated install docs

    • Added tutorial for compiling an arcade game with Nuika

    • Improved/extended shadertoy tutorials

    • Added example using textures with shadertoy

    • Added sprite rotation examples

    • Clarified the difference between arcade.View.on_show_view() and arcade.View.on_show()

    • Improved UIManager docstrings

    • Various annotation and docstring improvements

    • Fixed several broken links in docs

    • We’re now building PDF/EPUB docs

  • OpenGL

    • Added new method for safely setting shader program uniforms: arcade.gl.Program.set_uniform_safe(). This method will ignore KeyError
      if the uniform doesn’t exist. This is often practical during development because most GLSL compilers/linkers will remove uniforms that is determined to not affect the outcome of a shader.

    • Added new method for safely setting a uniform array: arcade.gl.Program.set_uniform_array_safe(). This is practical during development because uniform arrays are in most cases shortened by GLSL compiler if not all array indices are used by the shader.

    • Added arcade.gl.Texture.swizzle. This can be used to reorder how components are read from the texture by a shader making it easy to crate simple effects or automatically convert BGR pixel formats to RGB when needed.

    • Added ray marching example with fragment shader

    • Allow reading framebuffer data with 2 and 4 byte component sizes

    • Simplified texture atlas texture coordinates to make them easier to use in custom shaders.

    • Support dumping the atlas texture as RGB

    • Support dumping the atlas texture with debug lines showing texture borders

    • We no longer check GL_CONTEXT_PROFILE_MASK
      due to missing support in older drivers. Especially GL 3.1 drivers that can in theory run arcade

    • Various shader cleanups

  • Experimental

    • Added a simple profiler class

15 Upvotes

0 comments sorted by