You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-23Lines changed: 24 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,10 @@ The intriguing bit about all of this is that AI, body shape and brain are **bred
32
32
33
33
Eventually I plan to plug in some sort of gameplay and release as a free game. Strictly evening/weekend toy project: don't hold your breath.
34
34
35
+
### Interaction
36
+
37
+
You can interact with the simulation by shooting Resources at the minions. **Gamepad** supported!
38
+
35
39
## Feedback
36
40
- feel free to post [issues on GitHub](https://github.com/itadinanta/rust-oids/issues)
37
41
- also send me interesting gene pools (F6 to get snapshots, see instructions below)
@@ -40,13 +44,14 @@ Eventually I plan to plug in some sort of gameplay and release as a free game. S
40
44
41
45
This project started as a test bed for the Rust language and toolchain, [GFX](https://github.com/gfx-rs/gfx) and [box2d wrapper](https://github.com/Bastacyclop/rust_box2d), and could have not existed without those.
42
46
43
-
## Screenshots
47
+
## Videos
48
+
49
+
Some rust-oids competing for territory and resources, and the player messing up with them!
44
50
45
-
Some rust-oids competing for territory and resources:
51
+
[](https://www.youtube.com/watch?v=wChKsu28st8"Click to watch video")
46
52
47
-

48
53
49
-

54
+
[](https://www.youtube.com/watch?v=2M84AUo_GX0"Click to watch video")
50
55
51
56
## Prerequisites/platforms
52
57
@@ -61,6 +66,10 @@ For audio:
61
66
- libportaudio19-dev
62
67
- libasound2-dev
63
68
69
+
For gamepad:
70
+
71
+
- libudev-dev
72
+
64
73
### Windows
65
74
66
75
Building Windows dependencies is a tedious yak shaving exercise. For convenience, I am redistributing parts of open source projects in the form of headers and prebuilt x64 static libs for Windows 10.
@@ -71,7 +80,7 @@ Links to the source code are provided below as for licences:
71
80
72
81
## Build/run
73
82
74
-
- Clone this repo and ```cd`` into its root
83
+
- Clone this repo and ```cd``` into its root
75
84
-```cargo run --release [options]``` to run starting with the default gene pool
76
85
-```cargo run --release -- <gene_pool_file.csv> [options]``` to run starting with a snapshotted gene pool (DDDDMMYYY_hhmmss.csv).
77
86
@@ -84,32 +93,24 @@ Options:
84
93
85
94
## How to play
86
95
96
+
*New!* Gamepad support (tested with DS4, in Windows via [DS4Windows](http://ds4windows.com/))
97
+
98
+
- Left stick, WASD: move
99
+
- Right stick, Q, E: aim
100
+
- L2: fire rate
101
+
- R2, Spacebar: shoot
102
+
- L1, G/R1, H: slow down/fast forward
103
+
- L3, F1: toggle HUD
104
+
- Left mouse click: aim and shoot
87
105
- Middle mouse click: new rustoid from current gene pool.
88
106
- Ctrl + Middle mouse click: new random rustoid.
89
-
- Left mouse clik: select minion for tracing
90
-
- Right mouse click/drag: pan.
107
+
- Ctrl + Left mouse clik: select minion for tracing
91
108
- Z: deselect minion for tracing
92
-
- D: disable tracing of target and trajectories
93
109
- F6: snapshot current gene pool into the **resources** folder
94
110
- F5: reload shaders
95
111
- V,B: set background tone
96
112
- K,L: change light intensity
97
-
- G,H: slow down/fast forward
98
113
- 0, Home: reset camera pan
99
-
- Arrows: camera pan
100
-
- Spacebar/F1: show HUD
101
-
102
-
## Status line indicators
103
-
104
-
Press Spacebar or F1 to show the status line
105
-
106
-
- F: Simulation Frame #, Display Frame #
107
-
- E: Elapsed time since start in seconds
108
-
- FT: Simulation quantum, frame time (speed factor)
109
-
- SFT: Average frame duration of the last 120 frames (step)
110
-
- FPS: Average fps of the last 120 frames
111
-
- P: Population size
112
-
- X: Extinction index - increased every time the whole population dies off
0 commit comments