Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
public:t-vien-07-1:lab_6_materials [2007/02/16 20:47] – hannes | public:t-vien-07-1:lab_6_materials [2024/04/29 13:33] (current) – external edit 127.0.0.1 |
---|
| |
* Download and unzip the [[http://www.ru.is/kennarar/hannes/classes/ve2007/Lab6Assets.zip|Lab 6 Asset File]] into your working directory | * Download and unzip the [[http://www.ru.is/kennarar/hannes/classes/ve2007/Lab6Assets.zip|Lab 6 Asset File]] into your working directory |
| |
| |
| |
- Now add some landmarks to your world and have them show up on your map as little red squares. You can use the **Models/box.egg** object. Initialize a few of these boxes by storing a list if (x,y) tuples and then iterate through the list to place them in the world. You should also be able to send the list directly into the map's **addLandmarks** method and have the locations of the boxes light up. You'll need to fill in the rest of that method. Test to see if this is all working. | - Now add some landmarks to your world and have them show up on your map as little red squares. You can use the **Models/box.egg** object. Initialize a few of these boxes by storing a list if (x,y) tuples and then iterate through the list to place them in the world. You should also be able to send the list directly into the map's **addLandmarks** method and have the locations of the boxes light up. You'll need to fill in the rest of that method. Test to see if this is all working. |
- If you feel adventurous, change this application into a game where the health bar starts to drop as time passes and the only way to regain full health is to touch a box, which then disappears. You win the game if you reach all the boxes. By randomizing the initial box locations, you'll really need the map to help you play this game. | - If you feel adventurous, change this application into a game where the health bar starts to drop as time passes and the only way to regain full health is to touch a box, which then disappears. You win the game if you reach all the boxes. By randomizing the initial box locations, you'll really need the map to help you play this game. |
| |
--- | |
| |
You can take a look at a {{public:t-vien-07-1:lab6solution.zip|solution}} to parts 1 - 7 once you've given it a try yourself. | |