|
|
%!s(int64=4) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| resources | %!s(int64=4) %!d(string=hai) anos | |
| README.MD | %!s(int64=4) %!d(string=hai) anos | |
| spacesimulate.c | %!s(int64=4) %!d(string=hai) anos | |
| spacesimulate.exe | %!s(int64=4) %!d(string=hai) anos | |
| spacesimulateMult.c | %!s(int64=4) %!d(string=hai) anos | |
| spacesimulateMult.exe | %!s(int64=4) %!d(string=hai) anos | |
Here a asteroids(game) like simulation. It has a save and load state. It has ai that lets the ship move into a random direction without hitting a asteroid. It saves the state and gives the ship a random angle and thrust value and simulates a x number of steps into the future. If there is no collision then these values are passed into the regular visible onscreen version before(restored) the simulation occured.
Forward collision