Skip to content

2D sandbox simulation with block placement and interactions.

Notifications You must be signed in to change notification settings

twinksy1/Sandbox-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

2D sandbox simulation with block placement and interactions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages