|
Post by stephencollins20 on Apr 28, 2013 18:44:51 GMT -5
Well my primary focus has been to learn C# in its entirety and im doing so from scratch since i have no previous programming knowledge whatsoever. i find your tutorials the most helpful of all the info i have managed to gather off the net.
i was able to reproduce all of the programs in your tutorials and expand on them. with the picture processor you built i was able to correct several flaws and enhance the program to include additional features beyond what was discussed. In the game tutorial i also managed to introduce behavior in the AI so that it isnt impossible to win lol. tightened up the parameters of the sprites and collisions and added a win/loss scenario and a score counter.
id really like to see more done with the game tutorial. there is a lot inside your source code that wasnt explained that we kind of just have to play around with. and very specifically i am having a hard time creating a pause loop that can be initiated and stopped useing a keyboard key to toggle the effect.
|
|
|
Post by stephencollins20 on Apr 28, 2013 18:50:21 GMT -5
just found some of your intermediate tutorials for games in C# on youtube. i guess they arent linked to your tutorilla webpage?
|
|
|
Post by stephencollins20 on Apr 30, 2013 11:24:54 GMT -5
i am still haveing issues creating the pause ability and also ive branched out to create a pacman like game but im haveing trouble with thewalls and making them impassible from all sides without preventing the sprite from moving at all, it would seem the method used for collision in pong wont work here.
|
|
|
Post by Brian on May 2, 2013 13:08:05 GMT -5
Add a label control with your pause text to display when the game is paused. I named mine pauseLabel.
Create the following instance variables: string keyReleased = ""; bool pause = true;
Modify keyUp event: private void keyUp(object sender, KeyEventArgs e) { this.keyReleased = inkey; inkey = ""; }
Modify the Update event: if (pause) { if (keyReleased == Keys.Space.ToString()) { this.pauseLabel.Visible = false; pause = false; keyReleased = ""; } } else { if (keyReleased == Keys.Space.ToString()) { this.pauseLabel.Visible = true; pause = true; keyReleased = ""; } //REMAINING CODE FOR UPDATE }
That should do it, let me know if you have any issues.
|
|