Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
Wrapper / helpers for making a game with SFML using crsfml
Add the dependency to your shard.yml
:
dependencies:
game_sf:
github: mswieboda/game_sf
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.
require "game_sf"
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)