Git Product home page Git Product logo

boondock-sam's Introduction

Boondock Sam

About

Boondock Sam is a classic 2D platformer game in the spirit of the 1990s written in C using SDL2 and the TMX Map Format (Tile Map XML).

Last but not least: follow-on project of Rainbow Joe which I do not wanna develop any further.

Why C?

A question I hear alot is why I'm using C for this project instead of a modern language like Rust, Haskell or [insert your preferred language here], because writing games in C is neither a easy thing to do nor very common (these days).

The main reason is simple: to get exercise in C programming. And writing a game in C seemed like a fun way of getting some. Even though I am currently trying to get on with Haskell, I still consider C a fun and challenging language.

Anyway: I hope you find the code of this project useful. If so, feel free to use it in any way you want. Just consider buying me a beer in case we meet someday.

Dependencies

The program has been successfully compiled with the following libraries:

libxml2    2.9.8
sdl2       2.0.8
sdl2_image 2.0.3
sdl2_mixer 2.0.2
zlib       1.2.11

MacOS

All libraries can be installed normally via brew given the above formula names.

Additionally, MacOS builds require icu4c (installed with brew install icu4c).

Further, icu4c and libxml2 will need to be force-linked using brew link --force icu4c libxml2.

Compiling

To compile Boondock Sam under Linux simply enter:

make

If you're on NixOS enter:

nix-shell --command make

Due libxml2 isn't available via emscripten-ports, the Emscripten support is in an experimental stage:

make emscripten

To generate the documentation using doxygen enter:

doxygen

Controls

Q:     quit
0:     set default zoom level
1:     zoom out
2:     zoom in
LEFT:  walk left
RIGHT: walk right

License and Credits

This project is licenced under the "THE BEER-WARE LICENCE". See the file LICENCE.md for details.

TMX C Loader by Bayle Jonathan is licenced under a BSD 2-Clause "Simplified" Licence. See the file COPYING for details.

inih by Ben Hoyt is licensed the New BSD licence. See the file LICENSE.txt for details.

Jungle Asset Pack by Jesse M.

boondock-sam's People

Contributors

mupfdev avatar qix- avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.