Welcome, Guest. Please login or register.

Author Topic: Routing Game  (Read 1784 times)

0 Members and 1 Guest are viewing this topic.

FRex

  • Hero Member
  • *****
  • Posts: 1548
    • View Profile
    • My GitHub page
    • Email
Routing Game
« on: April 24, 2016, 09: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).


 
« Last Edit: April 27, 2016, 11:23:42 am by FRex »
LuaConsole: https://goo.gl/X4kRUk
FoxRaycaster: https://goo.gl/27nVS8
Simple Games - Heart, Routing and Snek: https://goo.gl/15ZGWE https://goo.gl/k5gwWD https://goo.gl/4nKPnT
Botes - a notes app in Pascal: https://github.com/FRex/botes

Erdrick

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • Email
Re: Routing Game
« Reply #1 on: April 26, 2016, 04:38:29 am »
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! :)

FRex

  • Hero Member
  • *****
  • Posts: 1548
    • View Profile
    • My GitHub page
    • Email
Re: Routing Game
« Reply #2 on: April 27, 2016, 11:24:32 am »
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
LuaConsole: https://goo.gl/X4kRUk
FoxRaycaster: https://goo.gl/27nVS8
Simple Games - Heart, Routing and Snek: https://goo.gl/15ZGWE https://goo.gl/k5gwWD https://goo.gl/4nKPnT
Botes - a notes app in Pascal: https://github.com/FRex/botes

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 8245
    • View Profile
    • development blog
    • Email
Re: Routing Game
« Reply #3 on: April 27, 2016, 04:28:14 pm »
Any reason you included the compressed version of the screenshot?


vs

Tukimitzu

  • Full Member
  • ***
  • Posts: 112
  • Anti-Hero Member
    • View Profile
Re: Routing Game
« Reply #4 on: April 27, 2016, 06:57:01 pm »
Any reason you included the compressed version of the screenshot?

Question: how did you figure that out?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 8245
    • View Profile
    • development blog
    • Email
Re: Routing Game
« Reply #5 on: April 27, 2016, 07:07:52 pm »
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.

FRex

  • Hero Member
  • *****
  • Posts: 1548
    • View Profile
    • My GitHub page
    • Email
Re: Routing Game
« Reply #6 on: April 27, 2016, 07:22:19 pm »
I used the screenshot tool from xfce desktop which can upload screens to imgur directly and it gave me this bbcode.
LuaConsole: https://goo.gl/X4kRUk
FoxRaycaster: https://goo.gl/27nVS8
Simple Games - Heart, Routing and Snek: https://goo.gl/15ZGWE https://goo.gl/k5gwWD https://goo.gl/4nKPnT
Botes - a notes app in Pascal: https://github.com/FRex/botes

FRex

  • Hero Member
  • *****
  • Posts: 1548
    • View Profile
    • My GitHub page
    • Email
Re: Routing Game
« Reply #7 on: April 02, 2017, 08:06:13 pm »
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
LuaConsole: https://goo.gl/X4kRUk
FoxRaycaster: https://goo.gl/27nVS8
Simple Games - Heart, Routing and Snek: https://goo.gl/15ZGWE https://goo.gl/k5gwWD https://goo.gl/4nKPnT
Botes - a notes app in Pascal: https://github.com/FRex/botes

 

anything