Idle of life - idle game based on Conway's Game of Life

Hello, I am new here. I have a few ideas for the game and I would like to start working on some of them. This is my first game project ever. I am a .net developer. But I have always been interested in making games. So why don’t try it?

I was looking for some engines to use for my ideas. And Defold feels right. The community around and feel of the engine is simple yet powerful.

So that’s was my thoughts now, about the game engine and a little about myself.

I really like Conway’s Game of Life so I wanted to recreate it in some nice funny way. The game will not be a classical idle game. Your way of playing can very change how you are making money. The basics will be your board. On board you can add cells. Cells have simple rules “Game of life”.

Rules are:

  1. Any live cell with fewer than two live neighbors dies, as if by underpopulation.
  2. Any live cell with two or three live neighbors lives on to the next generation.
  3. Any live cell with more than three live neighbors dies, as if by overpopulation.
  4. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.

A game tick will be every second. On tick, there will be a count of every living cell, and then dying and born new cells according to rules. 1 living cell counted will generate 1 LC of money (LC LifeCoin).

So you start with an empty board. How to generate money? It’s easy, create your own life.
For example:

  1. Player starts with board 16x16 and editor 3x3
  2. In the editor you can prepare your pattern to spawn
    2.1. One cell for spawn cost 1 LC
  3. On board you can insert your pattern
  4. The patter will live by rules and generate money (If your cells don’t all die)
  5. If you create a moving pattern. Every cell that leaves board will generate 2x more money

Upgrade system

  1. Increase board size
  2. Increase editor site
  3. Increase money generated from 1 cell
  4. Buy prepared Cell pattern (for example “Glider”)

So that’s the basic idea about the game I wanna create. I am open to your interesting ideas if you have some. But please take into consideration that this will be my weekend project.

Thank you for your attention. Be ready for updates! Have a nice day.

BTW Sorry for my bad English.

6 Likes

Welcome!

:+1: (me too!)

Sounds fun! I look forward to seeing what you will create.

PS: I recently saw this expanded CGoL shader on Twitter. Pretty neat stuff! https://mobile.twitter.com/slackermanz/status/1479352349915172864

1 Like

Wow expanded CGoL shader looks amazing :slight_smile: I plan only basic black and white :smiley:

2 Likes

Hello,
I started making progress yaay. And also, few decisions.

  1. The game main platform will be mobile phones, like most idle games
  2. I installed a few extensions
    2.1. Monarch - for navigation and pages
    2.2. Gooey - for GUI
    2.3. Orthographic camera - in-game cam, will be needed for better movement on bigger boards
    2.4. Defold-Input - For better handling of player interactions

What is done:

  1. Menu - ugly
  2. Game window - ugly
  3. Board 16x16 cells
    3.1. It is tile map-based, but I found that I cannot expand tilemap so idk how to do it yet.
  4. GoL logic - I hope is right
  5. Counting alive cells before creating next generation
  6. For test random spawn cells

This is my menu

This is in game

After a while randomly generated cells often ends in stable patterns (in this case after 500 generations), you can see also money on top of screen

What I will do next:

  1. player moving with cam (zoom, drag x, drag y)
  2. Spawn patterns on board
  3. Some storage for created patterns and predefined patterns for buy
  4. Editor for patterns

So that’s it, I hope you have a great day.
Thanks for your attention. Again if you have some idea or issue, I am open to everything.
Have a nice day!

5 Likes

Hello,
I hope you all are alright.
I am a little bit stuck :slight_smile:
So I am working on a system of upgrading the board. So I wonder how to make it bigger because tilemap size is static.

Few ideas:

  1. I wanted, when the player buys upgrade add 1 so from 3x3 board will be 4x4 etc.
    • This is probably something I can’t do because tilemaps are static. And I can’t spawn for example 128x128 or more game objects, because of performance
  2. So the second idea was board will be from 3x3 tilemaps, that will be spawn like game objects, it reduces the number of spawned game objects and is giving the user a little bit freehand, because he can create a board of different sizes
    • But this idea has another flaw, the code for handling Game of Life on some pattern for example board shape of L I don’t know how to render and navigate in a pattern of L
  3. Use of @britzl infinite_map as a hack. And use something like the background color of tiles that will not be available, because the player didn’t buy them.

So I am asking for help :slight_smile: But in my eyes, the third option for tilemap and 1. option for buying system is the best way.

Again thanks for your attention. And I am open to every help, idea, issue and I appreciate it.

1 Like

Yeah, the tilemap is currently static in size. But this is something we’ve discussed in the past.

What would it mean if we added a tilemap.set_bounds(tilemap_url, x, y, w, h)? We might run out of tiles (because you define max tile count in game.project). How should we handle this? Error?

I created a ticket to discuss this: https://github.com/defold/defold/issues/6328

I agree. The third solution with multiple spawned tilemap chunks (used for the infinite map you mentioned) is a nice solution.

Hello everyone,
so I am slowly progressing. It is a lot of fun, also it is totally different from .net and things I do at work. So let’s look at some new stuff, I have again a lot of things to say.

NEWS

1. Board upgrade

If a player has enough money, the system allows him to buy one row and one column of space. The price is rising at every level.

2. Pattern shop

Thanks to GUI library Gooey, I started working on a pattern shop. It’s simple. I have a module with some storage of patterns. So players don’t need to create their own patterns but can buy them. For now, it’s only a list with pattern name and preview, preview is generated with the Draw Pixels library.

TODO NEXT

So now I would like to finish pattern shop, also with the functionality of clicking on the pattern and then placing the pattern on board by dragging.

Additional things, questions, ideas

Open source vs Ads monetization

So I was thinking about making the game open source. But then I thought what if in the future I wanna use for example AdMob and be able to make money. Is it possible? Also what about some fairness with contributors? For example half money for me, half split between others, or how is this working in other projects?

Again thanks for your attention. And I am open to every help, idea, issue and I appreciate it from all of you.

5 Likes

Wow, I’m impressed by the progress you’ve made. Well done!

The two are not mutually exclusive by no means. You can monetize an open source game, but there is also nothing stopping anyone else from doing the same thing. If you do decide to monetize your open source game then I’d suggest that you are very open with where the money is going. As the creator and maintainer you probably have operational costs to cover. If the game ends up earning a lot of money you can decide to share the money with other regular contributors. But it is a luxury problem that I honestly don’t think you need to worry abut this early.

Hi, thank you for your response. My main concern is when I make the game open source now, wouldn’t that be a problem in the future with adding ads. Also, there are other problems. Like copying my game and releasing the same because someone can, fairness of money, etc.

But for example money, there is not some solution for some fairness in the open-source world. It’s mostly based on free will to contribute. I think this is theme for another post :slight_smile:

I never worked on an open source or project with ads. So I am not sure about this.

Hello there,
The next little update is here.

PATTERN SHOP

So I was working on a pattern shop, how to provide players with buying new cells. So I made a new tilemap layer like “preview”. Where I am rendering a selected pattern that users wanna buy. So in the next video, you can see, how the shop is working, also placing patterns.

PERFORMANCE

Also, I was trying to optimize a little bit GoL algorithm. Because It was really laggy also processed all cells on board, dead or alive, one by one, on bigger boards, it counts for 4 seconds. So I tried to remake it into processing only alive cells and counting dead cells for revival. So now I think it is a lot faster. But when I am placing pattern algorithm looks it slows down (you can see it in the video).

TODO

So next I wanna add more patterns so I can really test my GoL algorithm. Then I try to make some system of making and spending money (Board upgrades, buying patterns)

Thank you much for your time and attention.
Again I appreciate every thought from you!

3 Likes