#2d #game


Build utilities for Gate, a specialized 2D game library

9 releases (5 breaking)

0.6.3 Dec 21, 2019
0.6.2 Nov 16, 2018
0.6.0 Aug 3, 2018
0.5.0 Jun 15, 2018
0.1.0 Nov 21, 2017

#475 in Game dev

Download history 12/week @ 2021-09-27 5/week @ 2021-10-04 18/week @ 2021-10-11 6/week @ 2021-10-18 6/week @ 2021-10-25 13/week @ 2021-11-01 13/week @ 2021-11-08 3/week @ 2021-11-15 8/week @ 2021-11-22 28/week @ 2021-11-29 19/week @ 2021-12-06 21/week @ 2021-12-13 7/week @ 2021-12-20 17/week @ 2021-12-27 22/week @ 2022-01-03 18/week @ 2022-01-10

68 downloads per month


985 lines


Gate is a game development library tailored to 2D pixel-art games, written in Rust.


I've made a couple of games using Gate, which are playable through a web-browser thanks to Gate's WebAssembly support.


The Rust crate for Gate can be found here, and the crate for Gate Build can be found here


Documentation for Gate can be found here, and for Gate Build here


When creating a game, it is good practice to make a layer, specific to one's needs, that separates the game logic from the resource management, rendering, audio, and other interfacing that is needed for a game. "Gate" is the layer that I created for this purpose with my personal game development endeavors, and I decided to make it public. It should be noted that this library was developed for my own personal needs, and is not meant to be a general purpose game development library. This manifests itself mostly with the renderer, which is made specifically for 2D pixel art. If your game has similar needs or you just want to get something going quickly, then this library is for you. If you have slightly different needs, then you can still use this code as a reference point.

Users of this crate should create a build script in their project, invoking functionality from the sibling crate "gate_build". This will generate texture atlases and enums to reference assets. See the "gate_build" crate for more details.


For a full example, see https://github.com/SergiusIW/gate/tree/master/example.


Collider is licensed under the Apache 2.0 License.

Future changes

There are a number of new features I am planning to add to Gate in the future. Some of these will involve breaking changes.

  • Loading assets on the fly
  • Support for displaying text
  • Adding XBox controller input
  • Generating enums/handles for user-specific assets, and loading those assets
  • Handling game save data
  • Playing looping music that has a one-time intro, without any hiccups in the music (not sure how I'm going to do this, but it's important to me; game libraries often seem to overlook this fundamental feature)
  • New renderer modes with new shaders


~66K SLoC