Find a file
2022-01-25 00:14:53 -05:00
assets Add animated sprite example 2022-01-24 22:05:04 -05:00
examples Prefer bracket notation for vector 2022-01-25 00:14:53 -05:00
spec Prefer bracket notation for vector 2022-01-25 00:14:53 -05:00
src Prefer bracket notation for vector 2022-01-25 00:14:53 -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