PDA

View Full Version : Help


Mystic Gunman
11-25-2004, 09:14 PM
I wanna make a first-person shooter like doom. Plz help me.

The Brown Cow
11-25-2004, 10:42 PM
Heh, alright.

3D in games is almost always done by means of a thing called ray-tracing. This clever little concept involves projecting imaginary lines ("rays") around a mathamatical representation of the world. A ray is fired from each point on the screen, the number of points used controls the resolution and the speed of the program. Each ray that is sent out travels until it hits an object in the world. The color/texture/etc of the object is calculated and used to color in the point on the screen from which the ray was fired.

That's rendering for you. Movement is actually pretty simple. Just change the numbers that represent the player's position in the world. Collision detection shouldn't be too tricky. You just need to mathamatically compare the player's position with the map data for the area. That way you can keep them within the walls.

Guns can be done with rays, just like the rendering. Simply project a ray from the player and have the bullet hit the first object it collides with. Slower moving weapons (rockets, grenades) can be done with normal methods of moving. Just make the little buggers change position by a certain amount each frame.

There you have it. The basics of a 3D first-person shooter like Doom. If you can implement it in Flash, I will bow to you (no one has yet).

Bodadem
11-25-2004, 10:49 PM
Why are you so smart, TBC?

arkhan
11-26-2004, 05:38 AM
O.O...maaan..thats gotta be somenthing tricky...Ill be back in 20 years with a doom game made in flash!!no promises tought...
but I think it is qute possible to be done..even if flash cant handle it very well...we just have to implement a _z and forget bout perspective..texturization renderization.......nah..forget about it...

Mystic Gunman
11-26-2004, 12:20 PM
English plz

The Brown Cow
11-26-2004, 12:29 PM
That was all English. It describes what you need to do.

If you're looking for code in Flash, I don't have any. No one has ever made a true 3D FPS in Flash.

If you really want code to look at, you can download the Doom source code (ftp://ftp.idsoftware.com/idstuff/source/doomsrc.zip). It's not in Flash, mind you. And good luck understanding it.

Mystic Gunman
11-26-2004, 02:20 PM
It don't work. PAGE CANNOT BE DISPLAYED

The Brown Cow
11-26-2004, 02:29 PM
http://www.3ddownloads.com/showfile.php3?file_id=7430

Nexus
11-26-2004, 03:18 PM
Currently, only simple 3D apps can be made with flash. The amount of calculations that must be made every second can become quite overwhelming, especially if you're trying to get a rendering speed around 30 fps.

This might change in a few years, but for now it's very unlikely.

Mystic Gunman
11-26-2004, 05:51 PM
How 'bout with game maker? I know u can with that.

The Brown Cow
11-26-2004, 06:13 PM
Well, sure. It's a 3D program. It handles the hard part for you.

I've never used Game Maker myself, but I'm sure there are some good tutorials out there. Why not try going here (http://www.google.com/search?q=game+maker+tutorials) to find some?

Bodadem
11-26-2004, 06:19 PM
You have a good reason for not using Game Maker, TBC, since you use a Mac.. (Unless you also have a computer running windows...)

The Brown Cow
11-26-2004, 06:22 PM
I do have a '98 Toshiba laptop running Windows 98, and it boots some of the time. Hardly counts though.

Bodadem
11-26-2004, 06:53 PM
Just like you and your candidacy for Mac Master.

The Brown Cow
11-26-2004, 06:56 PM
Nah, I know people far more talented with Macs. I just like working on them.

Bodadem
11-26-2004, 09:20 PM
Sorry, to see what I meant, Click Here! (http://forums.xgenstudios.com/viewtopic.php?t=14335&start=30) Read all the posts on that page and you should understand! ;)