This is a documentation for Board Game Arena: play board games online !
First steps with BGA Studio: 두 판 사이의 차이
Sourisdudesert (토론 | 기여) 편집 요약 없음 |
Sourisdudesert (토론 | 기여) 편집 요약 없음 |
||
13번째 줄: | 13번째 줄: | ||
* Try to get a licence for a game you don't see in the "available game licences" page (see how-to on "available licences" page). | * Try to get a licence for a game you don't see in the "available game licences" page (see how-to on "available licences" page). | ||
== Create a new game project == | |||
You can do most of projects-related operation from "Control Panel / Manage games". In particular, you can create a new project automatically from there. | |||
== Connect to your SFTP folder == | |||
From the initial email from the Studion you get: | |||
* the name of the SFTP server to connect to | * the name of the SFTP server to connect to | ||
* your SFTP login and password | * your SFTP login and password | ||
Using this information: | Using this information: | ||
# Connect to the SFTP server using your SFTP login and password, through your favourite SFTP client software (such as [http://winscp.net/ WinSCP] for example) | # Connect to the SFTP server using your SFTP login and password, through your favourite SFTP client software (such as [http://winscp.net/ WinSCP] for example) | ||
# Check that your home folder contains one folder for each of the three example games (reversi, hearts, gomoku). | # Check that your home folder contains one folder for each of the three example games (reversi, hearts, gomoku). If you have already created a new game project, one additional folder should be in your "home" folder. | ||
== Let's code! == | |||
Now, you can try to launch a new game on BGA Studio from the "Play now" menu entry, as you would do on Board Game Arena website. | |||
# Find your game in the 'Play now' section and launch a table | # Find your game in the 'Play now' section and launch a table | ||
# Use the 'I want between X and X' players to tick down the maximum players number to the minimum | # Use the 'I want between X and X' players to tick down the maximum players number to the minimum | ||
44번째 줄: | 40번째 줄: | ||
# Go back to your browser, '''empty your browser cache''', then refresh the page, and check that the game box image has been updated. | # Go back to your browser, '''empty your browser cache''', then refresh the page, and check that the game box image has been updated. | ||
Then you can modify the provided skeleton and begin to develop your game :) | |||
== Commit your changes == | == Commit your changes == | ||
Committing uploads your changes on our [http://en.wikipedia.org/wiki/Revision_control revision control] system. This is an extra assurance not to lose your code, and to have the possibility | Committing uploads your changes on our [http://en.wikipedia.org/wiki/Revision_control revision control] system. This is an extra assurance not to lose your code, and to have the possibility to get a previous version of your code if you need to backtrack. It also helps us to follow your progress (we get an email when you commit). So you should commit from time to time, when you hit some landmark in your development. | ||
You can automatically commit your sources in the repository from "Control Panel / Manage Games / Your games / Commit my modifications". Then: | |||
# | # Enter your commit comment (such as 'My first commit') then hit the 'Submit' button; | ||
# Check the log for errors, it should end with the following lines: | # Check the log for errors, it should end with the following lines: | ||
57번째 줄: | 54번째 줄: | ||
Committed revision #revision number#. | Committed revision #revision number#. | ||
HAL says: done. | HAL says: done. | ||
2013년 9월 30일 (월) 17:15 기준 최신판
Connect to the BGA Studio website
Go to BGA Studio website: http://en.studio.boardgamearena.com
Choose one of your 10 accounts (ex: myusername0), and login into the website - as you would do for Board Game Arena.
Check projects in progress and available game licences
On the left menu, you can check game projects under development and available game licences. From this point, you can choose what you want to do:
- Join an existing project.
- Create a new project.
- Try to get a licence for a game you don't see in the "available game licences" page (see how-to on "available licences" page).
Create a new game project
You can do most of projects-related operation from "Control Panel / Manage games". In particular, you can create a new project automatically from there.
Connect to your SFTP folder
From the initial email from the Studion you get:
- the name of the SFTP server to connect to
- your SFTP login and password
Using this information:
- Connect to the SFTP server using your SFTP login and password, through your favourite SFTP client software (such as WinSCP for example)
- Check that your home folder contains one folder for each of the three example games (reversi, hearts, gomoku). If you have already created a new game project, one additional folder should be in your "home" folder.
Let's code!
Now, you can try to launch a new game on BGA Studio from the "Play now" menu entry, as you would do on Board Game Arena website.
- Find your game in the 'Play now' section and launch a table
- Use the 'I want between X and X' players to tick down the maximum players number to the minimum
- Click 'Express start': your game launches with the maximum number of players specified. It shows an empty canvas: in the game zone you just have a sentence 'This is your game interface. You can edit this HTML in your ".tpl" file.'.
- Switch to your SFTP home folder, go into your game folder. Edit the game_game.tpl file, and change this sentence to 'Hey, this is my first game!', then save.
- Go back to your browser and refresh, check that the game zone has updated.
- Click on the 'Exit game' icon on the top right, and in the popup choose 'Express game stop'. The game ends automatically and you are brought back to the table screen for this ended game.
- Switch to your game folder, go into the img folder and overwrite your game_box.png file with another image.
- Go back to your browser, empty your browser cache, then refresh the page, and check that the game box image has been updated.
Then you can modify the provided skeleton and begin to develop your game :)
Commit your changes
Committing uploads your changes on our revision control system. This is an extra assurance not to lose your code, and to have the possibility to get a previous version of your code if you need to backtrack. It also helps us to follow your progress (we get an email when you commit). So you should commit from time to time, when you hit some landmark in your development.
You can automatically commit your sources in the repository from "Control Panel / Manage Games / Your games / Commit my modifications". Then:
- Enter your commit comment (such as 'My first commit') then hit the 'Submit' button;
- Check the log for errors, it should end with the following lines:
Transmitting file data . Committed revision #revision number#. HAL says: done.
That's all!
Now you know about the basics of updating your game on BGA Studio and testing your changes.
For more information on the specificites of each file, please check out the reference documentation for the framework.