Skip to content

ramyaj876/SE

Repository files navigation

Game design using Cellular Automata

Level design in video games is a time-consuming and difficult task. It’s extremely difficult for humans to hand-craft areas that both look natural and are simultaneously fun to play in. With a high demand for such games and so many levels in each game, it would save an unfathomable amount of money to have computers generate the levels on the fly. Perhaps more importantly, a game with randomly generated levels inherently has a much higher replay value. To circumvent this problem, video game designers simply generate the world as the player moves through it.

This project aims at developing a simple game for demonstration which implements cellular automata techniques for level generation.

The process of level generation implements the following steps:

  • Generate the level by applying the automata rule B678/S45678.

    Cave generation animation

  • Smoothen the edges by applying the automata rule B345678/S45678.

  • Implement the flood fill algorithm to check the accessibility of the generated cave from a given point.

    Flood fill image

  • Introduce aesthetic elements (like waterfalls) and elements related to the game logic (like treasure) to generate the final level.

    Generated level

  • Certain initial configurations which never stabilize (like the Gosper's Glider Guns) can be used to make the game interesting and fun.

    Gosper Guns

About

Game design using Cellular Automata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages