Shard Detail

game_sf v0.13.0

game helpers / wrapper for SFML

Install & Use

Add the following code to your project's shard.yml under:

dependencies to use in production
- OR -
development_dependencies to use in development


game_sf:
  github: mswieboda/game_sf

Readme

game_sf

Wrapper / helpers for making a game with SFML using crsfml

Installation

  1. Install SFML

  2. Add the dependency to your shard.yml:

    dependencies:
      game_sf:
        github: mswieboda/game_sf
    
  3. Run shards install

Note: if installing on Windows use shards install --skip-postinstall as the make from crsfml fails with Windows, and the generation is only meant to be ran from a Unix machine. Afterwards manually copy the crsfml repo folder into your projects lib folder, after the first shards install --skip-postinstall that installs game_sf and crsfml, so you'll only need to do this once. Override any crsfml folder in there. Then crsfml should work on Windows, assuming your followed correct instructions from Install SFML and have all the environment variables set %PATH%, %INCLUDE%, %LIB% to the SFML locations.

Usage

require "game_sf"

Contributing

  1. Fork it (https://github.com/mswieboda/game_sf/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