Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Road & Traffic Prototype 1.2
Citybound runs on Windows, MacOS, and Linux operating systems. You also need an OpenGL (3.2+) compliant graphics card, updated to the newest driver. If it fails to run, make sure you have download the latest version, checked the known bugs and issues or ensured you have the latest drivers. #Minimum Requirements:
- Windows(x86 and x64)/MacOS/Linux Platform
- OpenGL 3.2 compliant graphics card with newest drivers
Good luck, if you still have issues please post them in the issues reporter.
Start by running the program as you normally would on your OS.
- MacOS and Windows users might need to explicitly allow running untrusted applications
- For Linux users mark the file as an executable before attempting to run
*The best way to provide all kinds of feedback is to create a post in the official community
The "(NEW)" marked items are changed or added from the older versions, check the version you are running if you cannot use these controls.
To move the camera around the following controls allow you to pan, zoom, and rotate.
- Pan Camera:
- Zoom Camera:
- Rotate/Pitch Camera:
Drawing Road Strokes
When drawing new roads, or strokes, simply use the mouse to click the empty space, then when you have the shape and length you like, double click. If you made a road you don't like, simply undo it by 'ctrl' or 'cmd' + Z. Redo by adding a shift key. Numbers define the lanes, 0 is set for one way, and 1 to 9 allow for increasing the lane amount per stroke.
- Create new stroke:
Clickyour mouse for each control point
Double Clicklast control point to finish stroke.
- Set number of lanes for next stroke:
- Toggle one-way road:
Manipulating Road Strokes
Depending on the zoom level, you can either manipulate a whole road, one side of a road or a single lane. The controls below allow you to manipulate the stroke before building it.
- Select road/side/lane stretch:
Click & Dragalong road/side/lane
- Deselect all:
Clickinto nowhere (the white space)
- Delete selected road/side/lane stretch:
- Move selected road/side/lane stretch:
Click & Dragblue selection
- Create parallel lane:
Hover + Clickimmediately right of selection
- Continue road/side/lane:
Clickroad/side/lane close to its start or end
You need to build the road by pressing enter or return. You can still add new roads after this.
- Implement plan:
Returnor 'Enter' key
Press 'C' to simulate cars.
- Spawn cars:
C(you can see the number of cars in the small debug text in the top left corner as "batch 8000")
- Before hitting this key, you must build the road or an error may occur.
Creating a grid
If you want a large grid you can use these controls.
- Create 10x10 grid plan:
- Create 15x15 grid plan: