SFML community forums
General => SFML projects => Topic started by: FRex on April 24, 2016, 11:16:52 pm
-
Here's a simple game I made today: https://github.com/FRex/routing-game
Simply compile all the cpp files and link SFML system, window and graphics and run.
No other libraries or assets involved.
Your goal is to rotate tiles to make it so that the power reaches everywhere.
Correct circuit has no loops.
The tile that supplies power is cyan tinted.
Wires with power are green and powerless ones are red.
This is a direct clone of a very very old game (pre 2000s) I used to have on my first PC ever that ran Win98 but I don't remember its name now.
Controls:
F1, F2, F3, F4, F5 - start a new game with varying difficulty,
Mouse Left Click - rotate tile under cursor,
WSAD - move the camera around,
Space - randomize all tile rotations (but not start a new game).
(http://imgur.com/GLTkbjbl.png)
(http://i.imgur.com/GLTkbjb.png)
-
Looks nice! I had no idea what xorshifting was until I started looking at your code.
I may try to run it later and provide more feedback! :)
-
I added displaying seed (unix time at game start displayed in hex) and randomizing tile rotations without starting a new game (Space) to the game. :P
-
Any reason you included the compressed version of the screenshot?
(https://i.imgur.com/GLTkbjbl.png)
vs
(https://i.imgur.com/GLTkbjb.png)
-
Any reason you included the compressed version of the screenshot?
Question: how did you figure that out?
-
I noticed that the image had a lot of artifacts and wondered if this was part of the game, but when clicking on it you got the right version, so I just had to compare the URLs.
But I just noticed why this (probably) happened. Imgur provides BBCode to include the image in forums and it automatically uses the low quality version.
-
I used the screenshot tool from xfce desktop which can upload screens to imgur directly and it gave me this bbcode.
-
I'm now back on Windows for a while so I'm able to create exes easily so here's the compiled game with a readme and source bundled: https://drive.google.com/open?id=0B8dEkQw1a4WvNElXN0FxZGpOV3M