| Poster | : petra | | Posts | : 1 | | Country | : nl | | City | : delft |
| | | | Posted by petra on 16/12/2009 at 08:29:18
| | In http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series2D/Positioning_images.php
we put the carriages on the screen...but when you did the homework assignement changing the screen to 800x600, it won't fit. Perhaps it's wise to mention that.... I was a bit puzzled (once in my life I do a home work assignment and i get punished immediatly!) | |
|
|
| |
| |
| Poster | : Archenon | | Posts | : 397 | | Country | : Romania | | City | : Oradea |
| | | | Posted by Archenon on 16/12/2009 at 10:31:47
| | | Well of course it won't fit. I don't know why do you expect if something designed for a given resolution when you change the resolution nothing fits ... If you have read along at the end where you find Resolution Independency where it is explain how to avoid this change ... | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 06/02/2010 at 14:05:16
| | One typo in this paragraph - <b>hard</b> should be <b>hand</b>, right?
There’s one important thing we still need to initialize: the position of players on the terrain. As you can see, the foreground image has 4 flat areas, perfectly suited to place a cannon. When we will create the foreground image ourselves in a later chapter, we will know the position of these flat areas. For now, we will have to code them by <b>hard</b>. These are the 4 positions of the 4 flat areas of the terrain (put this code at the end of the SetUpPlayers method):
players[0].Position = new Vector2(100, 193);
players[1].Position = new Vector2(200, 212);
players[2].Position = new Vector2(300, 361);
players[3].Position = new Vector2(400, 164);
_______________________________________________
I hope I posted in the right place. | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 06/02/2010 at 14:12:03
| | | Now let’s !now! forget to call this method from our Draw method. | |
|
|