Open GoogleCodeExporter opened 9 years ago
Original comment by asamg...@gmail.com
on 7 Aug 2012 at 12:06
This issue was updated by revision r179.
Added the dumbbell-sprite to the Sprites folder.
Original comment by asamg...@gmail.com
on 7 Aug 2012 at 12:07
This issue was updated by revision r180.
Committed the contentproj file.
Original comment by asamg...@gmail.com
on 7 Aug 2012 at 12:13
This issue was updated by revision r192.
Added the Gym-Interior image to the Textures folder.
Original comment by asamg...@gmail.com
on 7 Aug 2012 at 11:07
This issue was updated by revision r194.
Committed the contentproj file.
Original comment by asamg...@gmail.com
on 7 Aug 2012 at 11:11
This issue was updated by revision r198.
Edited the DumbbellScreen class to show an avatar excercising with a dumbbell,
and added the function GetPlayer to the playscreen class and modified the
ExcrcisesScreen class' constructor
Original comment by asamg...@gmail.com
on 8 Aug 2012 at 12:15
This issue was updated by revision r202.
Used a different sized spritesheet.
Original comment by asamg...@gmail.com
on 8 Aug 2012 at 1:00
This issue was updated by revision r203.
Used a different framewidth and frameheight for the sprite animation.
Original comment by asamg...@gmail.com
on 8 Aug 2012 at 1:01
remove unused usings
make variables private
remove PlayScreen playScreen; from the constructor, both screens are seperate
screens and should be independent
you only need the bar make it a public field in class playscreen and use it
from there, update the bar in your class not the one in playscreen, thats why
it stays frozen probably
Original comment by khaled.osmaan
on 14 Aug 2012 at 9:43
Actually repling to khaled about the bar : the bar he use is used from
playscreen,if you see from where the bar is from you will it is called from
play screen and in the update it is called update of bar in playscreen.The
problem of frozen is because Shirin update health at end with final value not
updating value value and this is the one should be changed.
Shirin :
1)You load files in Initialize and you should not ,so please cut this line from
initialize and paste it in load content:
dumbbellSprite = Content.Load<Texture2D>("Sprites/dumbbell-sprite");
2) int counter = 0;
int lifts = 0;
please make it --> int counter,lifts;
and initialize them in constructor or in Initialize;
3)You do not need this statement SpriteBatch sprite = spriteBatch; that in
draw,you can use the SpriteBatch spriteBatch; that in instance variable
directly and call begin and end by it.
Original comment by hollaxy...@gmail.com
on 14 Aug 2012 at 11:16
I know, but I don't like the idea of using an object in a screen from another
screen, would be better if he initialize a new one, this means if there's no
playscreen the screen wont work and if its common in both screens why doesnt he
add it in the excercise screen sothat the other screens treadmill and dumbbell
inherit it from there
Original comment by khaled.osmaan
on 17 Aug 2012 at 10:04
Original comment by khaled.osmaan
on 17 Aug 2012 at 10:04
@Shirin .. instead of using counter.. use a timer thats updated with gameTime
Original comment by vendett...@gmail.com
on 17 Aug 2012 at 9:26
Original issue reported on code.google.com by
asamg...@gmail.com
on 25 Jul 2012 at 9:04