# My fps engine

**URL:** <https://forum.kirupa.com/t/my-fps-engine/63070>\
**Category:** Uncategorized\
**Created:** [September 2, 2004, 7:05pm UTC](https://forum.kirupa.com/t/my-fps-engine/63070 "2004-09-02T19:05:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alzor](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@alzor](https://forum.kirupa.com/u/alzor)\
**Post date:** [September 2, 2004, 7:05pm UTC](https://forum.kirupa.com/t/my-fps-engine/63070/1 "2004-09-02T19:05:59Z")

</div>

check it out here… .www.ikickedmydogintheface.bravehost.com/fpsnewest2.swf  
Im going to make a wolfenstein type game with it Im very interested in it’s potential.

things I still have to work on:  
-enemies and their intelligence  
-arsenal of weapons  
-strafing left and right  
-health  
-level design  
-door and portal codes  
does anyone know where I can get a full ascii 2 code chart or something like that so I can use number and letter keys?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 2, 2004, 7:55pm UTC](https://forum.kirupa.com/t/my-fps-engine/63070/2 "2004-09-02T19:55:32Z")

</div>

dude thats lookin sweet.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 3, 2004, 4:28pm UTC](https://forum.kirupa.com/t/my-fps-engine/63070/3 "2004-09-03T16:28:17Z")

</div>

> [@Skribble](#):
>
> dude thats lookin sweet.

thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 3, 2004, 6:03pm UTC](https://forum.kirupa.com/t/my-fps-engine/63070/4 "2004-09-03T18:03:50Z")

</div>

That game’s lookin’ good so far. I want to make a 3d thing, but I don’t know how. Anyway, as for the key codes:

[swf=“[http://www.geocities.com/djorkon/KeyCode.swf](http://www.geocities.com/djorkon/KeyCode.swf)”]width=200 height=90[/swf]

Also, if you do:

```php

if(Key.isDown(1)){
}

```

It will be like:

```php

onClipEvent(mouseDown){
}

```

And keycode “2” is rightclick

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2004, 1:52am UTC](https://forum.kirupa.com/t/my-fps-engine/63070/5 "2004-09-04T01:52:06Z")

</div>

See below

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2004, 9:12am UTC](https://forum.kirupa.com/t/my-fps-engine/63070/6 "2004-09-04T09:12:44Z")

</div>

> [@bhjodokast](#):
>
> We definitely need a good free 3-D engine for Flash.
> 
> We need functions; there is a good cube rotate function at:  
> [http://www.active-web.cc/html/research/bin/txmapper.zip](http://www.active-web.cc/html/research/bin/txmapper.zip)
> 
> Your sample looks Phong-shaded.
> 
> For a full 3-D engine, in addition to the rotateCube function, we would need stuff like,
> 
> - Translate along X, Y, Z with a Cube
> - Translate along X, Y, Z with a Sphere
> - Etc
> 
> Then we can use ASCII maps of the whole level. I have an ASCII map of the first Wolfenstein-3D level if anyone needs it.

Frank Baumgartner has been a big help; he sent me these links:

The first is a great 3-D road sample with source code! I’m not sure if it’s ‘free’ but it takes care of translating along the X axis:

[http://www.gotoandplay.it/\_articles/2003/07/racing\_engine.php](http://www.gotoandplay.it/_articles/2003/07/racing_engine.php)

Also if you want to do the 3-D EXACTLY like Wolfenstein, you can download the code at:  
[http://www.flashkit.com/movies/3D/Engines/Flash\_5\_-Strille-6852/index.php](http://www.flashkit.com/movies/3D/Engines/Flash_5_-Strille-6852/index.php)

This is ray-casting, but we could test it with 600 vertical lines and see how it works! Let me know how it goes.
