Git Product home page Git Product logo

sandbox-game's Introduction

ABOUT:

This is a small sandbox game I decided to do after viewing a video in the graphics programming reddit. It is a work in progress that I will do during my free time. I plan on adding a variety of blocks and block interactions. Chunk rendering has been added which might lead to the implementation of procedurally generated terrain/worlds.

BUILDING

  • SDL2 developer packages need to be installed
    • Linux: sudo apt-get install libsdl2-dev
    • Windows: Tutorial
  • SDL2_ttf must also be installed for font loading
    • Linux: sudo apt-get install libsdl2-ttf-dev
    • Windows: Development libraries for Windows can be found here

Once every dependency is installed, you can build on Linux with the makefile provided by typing "make" in the same directory. For Windows, the makefile might need to be tweaked.

PROGRAM USE

  • Left click draws single particle at mouse location(if on screen)
  • Holding left click continually draws particles
  • Right click deletes particles falling within a certain radius of the mouse
  • Holding right click continually deletes particles
  • 'm' button displays a menu where you can click to change between the particles being drawn
  • Hold left or right arrow keys to traverse through the generated chunks

DEBUGGING

  • Holding left shift key and left clicking on the screen displays the closest cell's info along with its chunk id
  • Info gets written to local logInfo.txt file
  • 'f1' displays grid-like system, white squares represent single particles and red squares represent entire chunks

BETA 1

Pic1

BETA 2

Pic2

sandbox-game's People

Contributors

twinksy1 avatar

Stargazers

 avatar  avatar  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.