Find a file
2021-12-14 21:16:21 -05:00
assets Add pf-font image 2021-12-11 22:11:40 -05:00
examples Add camera mobility 2021-12-14 21:16:21 -05:00
spec Initial commit 🎮 2021-11-25 20:57:57 -05:00
src Add pixel text rendering example 2021-12-12 00:24:38 -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 Fix draw_point bounds, add Point struct 2021-11-29 22:04: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