Skip to content

Instantly share code, notes, and snippets.

@Samuel-IH
Last active April 8, 2022 09:03
Show Gist options
  • Save Samuel-IH/cf7bf22f3e39cf5bffc02b1661a2bd12 to your computer and use it in GitHub Desktop.
Save Samuel-IH/cf7bf22f3e39cf5bffc02b1661a2bd12 to your computer and use it in GitHub Desktop.
(Game Showcase) Conway's Game of Life in Unreal Engine 4

Description

Game

This project implements Conway's Game of Life in UE4. It allows the player to initially select which cells are alive/dead, and then simulates the cell's life according to a list of pre-defined rules.

Challenges overcome in this game

  • Creating render targets via BP. Description.
  • Drawing to render targets via BP.
  • Psuedo 2d arrays in UE4 BP.
  • Using nearest-neighbor filtering mode for textures. Description.
  • Dynamic widget creation and placement in BP.

What I would change if I did it again

  • Allow the player to pick the world size. Currently, the world size is dynamic within the BP by a couple of variables. However, it would improve the game to allow the player to select the size when they create the world.
  • Improve drawing perfocmance by using C++ instead of BP.

More Screenshots:

pre-simulation menu

Menu

level blueprint

Blueprint

@emanuelebalia
Copy link

Hey nice work! Is the code open source?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment