Skip to content

Repository files navigation

Caves

    Python application that creates a 2D underground cave world using cellular automata. The start to a game that was never finished. Made in the summer of 2017 due to boredom.

View some images

How it works:

  1. game.py > The main game loop
  2. caves.py > The cellular automata algorithm
  3. textures.py > Texture handler
  4. map_editor.py > Controls for camera moving and destroying and placing blocks, saving and loading maps
  5. terrain_gen.py > Terrain handler

 

Notes

    Lots of obsolete code and bugs. There isn't much functionality- the only part of this worth saving is the terrain_gen.py file and map_editor.py for the terrain generating and file saving/loading functionality. Everything else should be scrapped and re-written for future use, the main engine is a mess.

 

Possible future implementation:

Finished:

  • Cellular automata algorithm
  • Custom world filetype for importing and exporting world saves
  • Destroying and placing various types of blocks within the world grid

Planned:

  • Re-write main game loop
  • Remove obsolete code
  • Re-write camera and player code
  • Finish gravity implementation (Half finished)
  • Proper start menu
  • In-game menu
  • More expansive underground 2D world

 

Images

caves

About

Random cave world generator using a cellular automata algorithm.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages