SFML community forums

General => SFML projects => Topic started by: subconsciousbias on December 02, 2015, 01:01:00 am

Title: Hexamaster Networked [MAC]
Post by: subconsciousbias on December 02, 2015, 01:01:00 am
HexaMaster Networked Version 1 - Alpha [MAC]

(http://i64.tinypic.com/2ex67mw.png)

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

(http://s2.postimg.org/nhmg36usl/Screen_Shot_2015_12_03_at_2_06_49_AM.jpg) (http://postimg.org/image/nhmg36usl/)

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.

(http://s12.postimg.org/nhm5txthl/Screen_Shot_2015_12_01_at_5_27_06_PM.jpg) (http://postimg.org/image/nhm5txthl/)

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:
(http://s13.postimg.org/c3hxyygo3/Screen_Shot_2015_12_01_at_5_23_32_PM.jpg) (http://postimg.org/image/c3hxyygo3/)

(http://s27.postimg.org/t9cyh7mgf/Screen_Shot_2015_12_01_at_5_26_12_PM.jpg) (http://postimg.org/image/t9cyh7mgf/)

(http://s3.postimg.org/x8pk7qu1b/Screen_Shot_2015_12_01_at_5_25_59_PM.jpg) (http://postimg.org/image/x8pk7qu1b/)

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.
Title: Re: HexaMaster Networked [MAC]
Post by: eXpl0it3r 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?
Title: Re: HexaMaster Networked [MAC]
Post by: subconsciousbias 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