|
-
Apr 21st, 2001, 01:17 PM
#1
Thread Starter
Addicted Member
Here's my problem: in Infotech since im the only one in the class that know VB the teacher asked me to prepare a final project for the class, i have to show them how to make a simple racing game. So i would like to know the simplest way to do that (you have a top view and the screen doesn't move, only the cars. The track can either be tiles or a picture (tiles would be great because that way it would be easy to make a track editor but i think that would be WAY too hard for most of them considering they barely ever touched to VB. So i just need some code, project example and some tips on how i could teach them
Thanx!!
*Rudy^
Visual Studio 6 Ent. SP5
Windows 2000 SP4
Windows XP SP1a
-
Apr 21st, 2001, 02:00 PM
#2
transcendental analytic
what kind of programming experience do the students have (detailed)?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 21st, 2001, 02:09 PM
#3
Thread Starter
Addicted Member
check : http://www.sd68.bc.ca/ndss/intranet/intech12.htm
that's the asignement they have to do before, but just remember, they wont know that by heart almost for sure, this is just a basic highschool class. Oh yeah they'll also be able to get help to make the game, the teacher can give a hand and ill be there
*Rudy^
Visual Studio 6 Ent. SP5
Windows 2000 SP4
Windows XP SP1a
-
Apr 21st, 2001, 02:27 PM
#4
transcendental analytic
Okay i'll try to keep it as simple as possible and help you with the technical parts.
first off some programming ethical issues, would you want to introduce objects (designing class modules) or types (user defined types)? that would be of help keeping the projects organized but at the same time might be too much new concepts at once.
you need some vector aritmetics for controlling position and speed vectors of the cars, a simple collision detection algoritm and a tileset and a map for combining the tiles for the racing area.
for preparing the map data you could in fact use the fact that the students are used to a RAD environment
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 21st, 2001, 02:30 PM
#5
Thread Starter
Addicted Member
Well we can show them stuff but most of it they wont really understand it but they'll just copy it. Some students that know a lil bit more about VB might be able to understand, but im not sure about every1 level
*Rudy^
Visual Studio 6 Ent. SP5
Windows 2000 SP4
Windows XP SP1a
-
Apr 21st, 2001, 02:39 PM
#6
transcendental analytic
that's a bit sad, they should have at least some experience with vb, who's idea was this racing game?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 22nd, 2001, 01:16 AM
#7
You could keep em occupied with "Doors". the game goes something like this:
Place 3 picboxes on a form, and a label, and a global variable "Score"
throw this function in:
Code:
Private Sub Game(ID as Integer)
Dim correct as Integer
correct = rnd() * 2 + 1
if correct = ID Then
msgbox "Correct!"
score = score + 1000
else
msgbox "Wrong! You are dead!"
score = 0
end if
label1.caption = "Score: " & score
end sub
and in each picturebox's click event, call Game with a 1, 2, or 3.
Shortest game that I know of, and its kinda addicting =).
Z.
-
Apr 22nd, 2001, 02:55 AM
#8
Thread Starter
Addicted Member
Hahah good idea Zaei but its not what i need to do 
Kedaman: that project is my teacher idea...and yes its sad that they have almost no experience with vb
*Rudy^
Visual Studio 6 Ent. SP5
Windows 2000 SP4
Windows XP SP1a
-
Apr 22nd, 2001, 03:05 AM
#9
Seems like the teacher doesnt really know what he or she is doing. Shooting for graphics, when almost no one knows any VB at all is quite insane...
Z.
-
Apr 22nd, 2001, 03:39 AM
#10
transcendental analytic
good point
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 22nd, 2001, 03:43 AM
#11
Thread Starter
Addicted Member
yeah well i dunno, i guess he expect the student to know more or something like that
*Rudy^
Visual Studio 6 Ent. SP5
Windows 2000 SP4
Windows XP SP1a
-
Apr 23rd, 2001, 03:16 AM
#12
Frenzied Member
Heh, I have some ideas as to making the game simple: DON'T USE THAT KIND OF STUFF!
Stick to control arrays of images. You can make transparency easily by using GIF images with transparency.
The game info should be kept in arrays:
Code:
Dim Map(1 to 32, 1 to 32) as byte
Dim CarX(1 to 8) as long
Dim CarY(1 to 8) as long
Dim CarDirection(1 to 8) as string
Remember, keep it simple. Use 1-based arrays, and for stuff like the cars' direction, use strings: Up, Down, Right, Left.
Yes, you should use a tile engine. Make a simple algorythm at first to load a lot of control arrays that are the tiles, and load them with bitmaps from other pictureboxes or files.
Collision detection might be too hard for them, so each car should occupy 1 tile and it can't move to a "blocked" tile.
You should at first allow the cars to move instantly (with a small delay), and only then move to the animations in-between tiles.
Well, those are only my ideas. You can use them or try to make them understand API, Classes, UDTs...
-
Apr 24th, 2001, 03:17 PM
#13
-
Apr 24th, 2001, 07:10 PM
#14
Thread Starter
Addicted Member
Whoa man i dunno how to thank you, ill study the code a bit and ill be able to teach it thanx a lot!!
*Rudy^
Visual Studio 6 Ent. SP5
Windows 2000 SP4
Windows XP SP1a
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|