Release source code


We just released the code and assets of Urban Exodus in open source!

What can I do with the code?

Strictly speaking, the code and logic assets are released under the MIT license. Roughly speaking, this means that you can use the code for anything, as soon as you quote our names (Suzanne Gomont & Élie Michel) and the license whenever you reuse a substantial part of the code.

The graphical assets are under the Creative Commons 4.0 BY-NC-SA. You can use them in your productions if these are non commercial, but any work derived from them must be shared with the same license. In any case, you must quote us.

You can also simply have a look at the project for inspiration, or for review, and comment on it. We'd be happy to hear from you any comment you can have about it!

I want more levels!

The levels are loaded from simple text files, so you can easily make your own! We even encourage you to do so and share them with us and the community. For example, here is the level file describing the second level:

[Layout]
0 0 0 0 0 0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 2 3 0 0 0 0 0
 0 0 0 4 1 1 3 3 0 0 0
0 0 0 0 0 1 3 1 3 0 0
 0 0 0 0 0 0 3 3 0 0 0
0 0 0 0 0 0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0
 
[Recipes]
7,2: 2>2 3>2: 4
7,1: 1>4 3>2: 2
6,4: 0>4 1>2 2>3 3>2 4>4 5>3: 5
6,2: 2>2: 4

The file is separated into sections with heading such as [Receipes]. The first section describes the layout, where numbers mean:

  • 0: Nothing
  • 1: City
  • 2: Forest
  • 3: Water
  • 4: Animals
  • 5: Victory tile

Then the receipes work as follow. The two numbers before the first colons are the position of a city tile, given by the debug info when pressing space bar. Then, the conditions are of the form "neighbor>type", where the first number represent the neighbor index, starting from the right-hand one and turning in the direct order (IIRC), and the first number is the required type for the city tile to be turned into a nature tile. Finally, the last number is the type of the tile once turned into nature.

When your new level is ready, open the MainScene and go in the TileSystem object. The levels are listed in an array property: just add your levels to this array!

Enjoy, and don't hesitate to comment and give feedback about this!

Files

urban-exodus-source.zip 77 MB
Version 2 65 days ago

Get Urban Exodus

Leave a comment

Log in with your itch.io account to leave a comment.