A Blog with step-by-step game development and programming tutorials. Even a total newbie can make a game following this blog!
| Home | My Account | Directories |
26. Pythagoras, Firefighers and Math
Published on 2009-07-01 05:02:00
The last and, in my oppinion, the coolest part of this tutorial is making our doggy splash water from his fire-hose. There are a lot of ways to do this… My first idea was to make him splash a stream of water in a horizontal line… But I wasn't satisfied. Then, i figured out how to make him splash wather at an angle… But that didn't make me satisfied either. Then I decided to renew my high school math knowlege, and to force this dog to splash water to the exact point where the player would c
25. Bubble bath
Published on 2009-06-09 01:44:00
Up to now, we displayed the blocks as squares filled with color. From now on, we'll display little icon images instead. If you remember, we used rectangles to define the size, and the position for each field. And that suits us just fine! So, here's a part of our code that we wrote in chapter 7:(This is a part of the code from chapter 7, method DrawField())switch (Field[v, s]){ case 0: // Draw empty field... break; case 1: // I've decided that color #1 is Blue. So, if // t
24. Preparing the show-off
Published on 2009-05-22 04:37:00
Right, before we add all that fancy graphics, we have to prepare our form first. We'll add some additional picture boxes to hold our images. Like the one to hold the firefighter dalmatian doggy, etc… So, add the controls, and modify their properties as shown in the following tables.PictureBox(name):picDoggyBackColor: Web > TransparentImage: [Load firefighter doggy image]Location: 477; 186Size: 131; 201PictureBox(name):picSplashAnchor:RightBackColor: Web > TransparentImage: [Load water