-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move to html instructions #267
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions
58
dlgr/griduniverse/templates/instructions/instruct-ready.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<p> | ||
The objective of the game is to maximize your final payoff. | ||
The game is played on a 200 x 100 grid, where each | ||
player occupies one block.<br> | ||
<img src="./static/images/gameplay.png" height="250"><br> | ||
The grid is viewed through a 20 x 20 window | ||
that moves along with your player. The game has 3 rounds, each lasting | ||
<strong>45.0 seconds</strong>. | ||
</p> | ||
<p> | ||
Players move around the grid using the arrow keys.<br> | ||
<img src="./static/images/keys.gif" height="60"><br> | ||
A player cannot occupy a block where a player is | ||
already present. Players cannot see the whole grid, but only an area | ||
approximately 40 blocks around their current position. | ||
</p> | ||
<p> | ||
Press the 'h' key to toggle highlighting of your player.<br> | ||
<img src="./static/images/h-toggle.png" height="250"> | ||
</p> | ||
<p> | ||
Players gain points by picking up and eating edible items: | ||
<ul> | ||
<li>🥕 Wild Carrot (5 points)</li> | ||
<li>🫐 Gooseberry (3 points)</li> | ||
</ul> | ||
Once a food item is being carried, pressing the spacebar causes | ||
it to be eaten, which awards the points to the player. | ||
</p> | ||
<p> | ||
The edible items do not exist on the board at the start of play. | ||
Players must produce them by picking up other objects and carrying out | ||
"transitions" to transform them, or by reaching a specific object and | ||
triggering the transition. | ||
</p> | ||
It is possible for the players to transform some items into food | ||
in various ways: | ||
<ul> | ||
<li>Pick up a 💎 Sharp Stone and press the spacebar while | ||
occupying the same square as a 🥕 Wild Carrot Plant.</li> | ||
<li>Occupy same square as a 🌴 Gooseberry Bush and press spacebar to | ||
eat a 🫐 Gooseberry. Gooseberry bushes have only 6 berries each. | ||
Once all berries are eaten, the bush is empty and players can't | ||
occupy the bush's square anymore.</li> | ||
<li>If there are no 💎 Sharp Stones on the grid, players can create | ||
one by picking up a <img src="./static/images/stone.png" width="16"> | ||
Stone, going to a 🗿 Big Hard Rock, and pressing the spacebar.</li> | ||
</ul> | ||
</p> | ||
<p> | ||
A chatroom is available to send messages to the other | ||
players. Player names shown on the chat window are pseudonyms.<br> | ||
<img src="./static/images/chatroom.gif" height="150"> | ||
</p> | ||
<p> | ||
You will receive <strong>$0.02</strong> for each point | ||
that you score at the end of the game. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like we have a conflict between the visibility code and the new sprite renderer. We probably need to include a color with an alpha layer based on player distance from the item and perform some blending of the color with the texture. I'd consider that a bug in the #251 implementation, that we should probably address with a new PR.