Coder Social home page Coder Social logo

jrob774 / block-fever Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 3.6 MB

My second ever finished game.

Home Page: https://jrob774.itch.io/block-fever

License: MIT License

Batchfile 0.30% C++ 99.32% HTML 0.35% CSS 0.03%
game cpp cpp17 sdl sdl2 emscripten simple 2d block block-fever

block-fever's Introduction

Block Fever

This project was my second completed game, made back in 2015. It's a simple game where you must contain a spreading infection whilst preventing as many blocks as possible from becoming permanently infected, the more blocks saved the higher the end score. A download for the game can be found over on itch.io, the game is also playable in browser on the same page.

Development

The game was developed in C++ using the SDL2 library. A port for web browsers was also recently developed using emscripten.

Building

Windows

Launch the build/win32/win32 shortcut to setup a command prompt in the right environment. The game can then be built by typing build in the console. Different types of builds can be made by specifying an extra argument after the initial build command, these arguments are:

debug   - builds a debug version of the game (default)
release - builds a release version of the game
final   - builds and packages a release version

In order to be able to execute builds Visual Studio must be installed. All other dependencies (SDL2, etc.) are provided within the repository.

Web

Launch the build/web/web shortcut to setup a command prompt in the right environment. The game can then be built by typing build in the console. Different types of builds can be made by specifying an extra argument after the initial build command, these arguments are:

release - builds a release version of the game (default)
final   - builds and packages a release version

In order to be able to execute builds emscripten must be installed. By default the build script looks for emscripten at the relative location ../../../.emsdk, in order to change this path open the 'build/web/setup.bat' file and change the emsdk_location variable.

License

The project's code is available under the MIT License.

block-fever's People

Contributors

jrob774 avatar

Stargazers

Matthew Wong avatar Bocke avatar

Watchers

 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.