Vector line games

Talk about making games.

Vector line games

Postby gopher » Thu Dec 07, 2006 9:06 am

Could someone point me in the right direction to built a vector based game like the original asteroids or tempast???

or just get me started on using drawn lines as actors??

thanks
gopher
 
Posts: 5
Joined: Sun Aug 27, 2006 1:49 am
Score: 0 Give a positive score

Postby Game A Gogo » Fri Dec 08, 2006 12:21 am

in this case, you should use graphics.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby gopher » Fri Dec 08, 2006 10:33 pm

Thanks
gopher
 
Posts: 5
Joined: Sun Aug 27, 2006 1:49 am
Score: 0 Give a positive score

Postby Game A Gogo » Fri Dec 08, 2006 11:43 pm

its the best way, cuz making line rotate and all that stuff is a pain in the ass, believe me.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

agreed - vector for GE is bad.

Postby defalkner » Fri Dec 15, 2006 9:10 am

The only way would to generate your vector graphics as an animated 3D model sequence using 3DS Max or other, and export them as an animated .bmp (or other) sequence to simulate vectors to be compatible with GE. It's not worth the effort.
User avatar
defalkner
 
Posts: 5
Joined: Fri Dec 15, 2006 8:43 am
Location: Redding, CA, USA
Score: 0 Give a positive score

Postby Fuzzy » Fri Dec 15, 2006 1:20 pm

On the other hand, if you are doing wire frame type graphics, you can give the actor a small array, and randomly fill it with numbers that are slightly higher and lower than the x and y of the actor. then you just draw a line from point 1 to 2 to 3 to 4... and back to one. That should make a bumpy sort of circle.

You dont have to calculate rotations on the fly at all.

You just fill 10 numbers for both x and y, and subtract 1/2 of the range.

So if you want the points no further than 20 pixels away from the center of the actor, you would make each element of the array equal to rand(40)-20, giving a range of -20 to +20.

Then when it comes time to draw you take the first element of the Xlookup array, and the first element of the Ylookup array, and set your pen to there. then you draw a line to Xlookup[2] and Ylookup[2] and so on, with the last connecting to the first.

For a regular shaped item, like a ship, you can do the same, but plot them by hand and store it in code.

Its 6am. I hope I make sense.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest