Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Hexamaster Networked [MAC]  (Read 3900 times)

0 Members and 1 Guest are viewing this topic.

subconsciousbias

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • Email
Hexamaster Networked [MAC]
« on: December 02, 2015, 01:01:00 am »
HexaMaster Networked Version 1 - Alpha [MAC]



Download :
http://s000.tinyupload.com/?file_id=16303450293619563927



Description: This is a game created in C++ and SFML. It took a week to develop. It is a game inspired by Tetramaster from the final fantasy series, and the rules have similarities. It was my first networked game, using tcp connection through SFML, it requires one person to be the server, and the other to connect to the server as the client by using the servers IP.

How to Setup:
Note: You can play this game with yourself using two windows, just duplicate the program and open both. Using one as server and one as client, using your own local IP address for the client.

If you want it to work outside of your router, the server user must port forward port 50001
http://portforward.com/

If the program cannot open it is because you need to allow non-app store programs to be opened on your mac. So just right click the application and then click open and it will prompt you, and you can open it.

Once the program is open you need one computer or window to start as the server first. Then the other computer or window to be the client afterwards. Just click the corresponding button. To work over your router - For the client you will first need to input the local IP address of the server, to find your ‘local IP’, refer to the image below. And to get this to connect to a computer outside of your router you need to use the 'public IP' - As well as make sure the server has port 50001 port forwarded.



Once both the server and client are connected, it will display that it is Green’s turn (Server), and you can begin playing.

Rules:
Only the server can reset the game board.
The server must be created before the client can connect properly.
There is a chat log, so feel free to talk to the other player, press enter to send the message.

When it is your turn you place a hex-tile on the board, and once placed it cannot move.
The first number on the tile is your Attack.
The second number on the tile is your Defense.
You can only attack a tile if you have an arrow facing the enemy.
If you attack another tile with your arrow, and they have no defending arrow, you automatically claim their card.
If you have multiple arrows facing an enemy tile, the enemy tiles are highlighted and you must click and decide which tile to attack (tip: think about combos).
If you attack another tile with an arrow, a battle takes place, where a random number is generated from 1 to your attack, and a random number is generated from 1 to your opponents defense. If the attackers attack is higher than the defenders defense then you claim the card. Defender wins ties. You lose card if defender defense is higher than your attack.
Combos: If you claim a card while attacking, you also claim all enemy cards directed from the claimed cards arrows. The combo doesn’t infinitely link, only takes place from the claimed card.
Win: To win you must own more tiles once all tiles are placed. On equal ownership it is a tie game.
Reset: Server can reset the game upon win/loss/tie or any time they want to restart the game.

Screen Shots:






Feedback and Testing is welcomed
Feel free to play with other people on the forum, or if you can’t find anyone to play with online, just use two windows and find a friend or family member to play with.
« Last Edit: December 11, 2015, 08:25:35 am by subconsciousbias »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Re: HexaMaster Networked [MAC]
« Reply #1 on: December 02, 2015, 07:54:35 am »
If the program cannot open it is because you need to allow non-app store programs to be opened on your mac. See the image below. It may prompt you to open after you tried, or just allow all apps.
Can't you just right click the application and then click open and it will prompt you?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

subconsciousbias

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • Email
Re: HexaMaster Networked [MAC]
« Reply #2 on: December 02, 2015, 08:25:10 am »
If the program cannot open it is because you need to allow non-app store programs to be opened on your mac. See the image below. It may prompt you to open after you tried, or just allow all apps.
Can't you just right click the application and then click open and it will prompt you?
Edit: Yes it does infact work! Thanks - Changed instructions
« Last Edit: December 02, 2015, 08:57:15 am by subconsciousbias »