Find a file
2022-01-23 16:20:30 -05:00
assets Refactor drawing methods onto Sprite class 2022-01-06 20:25:39 -05:00
examples Consolidate vector classes 2022-01-17 14:52:13 -05:00
spec Add specs 2022-01-22 23:43:34 -05:00
src Add Lehmer32 random number generator 2022-01-23 16:20:30 -05:00
.editorconfig Initial commit 🎮 2021-11-25 20:57:57 -05:00
.gitignore Initial commit 🎮 2021-11-25 20:57:57 -05:00
LICENSE Initial commit 🎮 2021-11-25 20:57:57 -05:00
README.md Add drawing functions 2021-11-29 02:26:51 -05:00
shard.yml Version 0.0.5 2022-01-17 15:12:31 -05:00

PixelFaucet Game

GitHub release

An SDL2 based game engine

Installation

  1. Install sdl2

homebrew: brew install sdl2

  1. Add the dependency to your shard.yml:
dependencies:
  pixelfaucet:
    github: sleepinginsomniac/pixelfaucet
  1. Run shards install

Usage

require "pixelfaucet/game"

class Example < PF::Game
  def update(dt)
  end

  def draw
  end
end

e = Example.new(100, 60)
e.run!

Contributing

  1. Fork it (https://github.com/your-github-user/pixel_faucet/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors