PDA

View Full Version : First step towards an alice fps!!!


zenteo
03-10-2010, 01:14 PM
This is just a test and it'll maybe become something bigger, like a cool FPS game.

In order to make the cursor/mouse to move into the center of the rendering window, I had to upgrade Alice a bit.

Locked Mouse Modus(press Q):
--This is the FPS view modus.
--The cursor/mouse will be hid and moved to the center of the screen.
--Move the mouse in order to rotate the camera.

Controls:
--Use "Q" to switch between locked mouse and unlocked mouse. You have to
use it in order to rotate the camera.
--Use the mouse to control the camera.
--Use "W", "A", "S", "D" to control the camera.
--Click on a target to paint it red!

Bugs:
--There is a rendering bug while running the world, which shouldn't be too
hard to fix. Just click restart or press any of the control keys(Q, W, A, S or
D) and it'll be gone.

The .a2w file is in the zip; enjoy it!

Download(It's a big file!): http://www.sendspace.com/file/q44nk6

------------------------------------------------------------------------
Alice 2.2 uses Java 1.5.0 and therefore coundn't reach the function "java.awt.Window.getWindows()", which is important in order to reach our render dialog.
But this is all advanced programming stuff you don't have to worry about.

All I did in this version of Alice was to update its Java from 1.5.1 to 1.6.
The rest of the coding is in Alice's scriptingsystem - jython.

--This part is only for those who are intrested in Alice Scripting--

Jython is a "Phyton interpreter" made in Java (This make it able to import Java libraries).
Phyton is the programing language that`s used to script Alice.
Java is that programing language Alice is made of (you can import Java-libs in Jyton)

-How to: Setup scripting-
http://www.westga.edu/~drocco/alice/scripting.html
http://www.alice.org/bvw02fall/scripting/scripting.html

-Jython-
http://www.jython.org/Project/devguide.html

-Python-
http://docs.python.org/

-Java-
http://today.java.net/download/jdk6/doc/api/overview-summary.html

-Example-
Easy - http://www.westga.edu/~drocco/alice/scripting_basics.html
Hard - http://www.westga.edu/~drocco/alice/networking.html
Both - http://www.alice.org/bvw02fall/scripting/exampleScripts.html

Thanks DrJim for these pages "http://www.westga.edu/~drocco/alice/" and "http://www.alice.org/bvw02fall/scripting/"

--------------------------------------------------------------------

jarg82394
02-06-2011, 01:06 AM
Hi there! Can you upload your world file again please? I'm guessing your link got expired some time ago. Thanks!

Jabadahut50
08-17-2011, 07:12 PM
Hi there! Can you upload your world file again please? I'm guessing your link got expired some time ago. Thanks!

Yeah what he said. I would really like this so I can incorporate it into my own alice fps. my reaction to this is :eek::eek::eek::eek::eek::D:D:D

Jabadahut50
09-28-2011, 04:52 PM
This is just a test and it'll maybe become something bigger, like a cool FPS game.

In order to make the cursor/mouse to move into the center of the rendering window, I had to upgrade Alice a bit.

Locked Mouse Modus(press Q):
--This is the FPS view modus.
--The cursor/mouse will be hid and moved to the center of the screen.
--Move the mouse in order to rotate the camera.

Controls:
--Use "Q" to switch between locked mouse and unlocked mouse. You have to
use it in order to rotate the camera.
--Use the mouse to control the camera.
--Use "W", "A", "S", "D" to control the camera.
--Click on a target to paint it red!

Bugs:
--There is a rendering bug while running the world, which shouldn't be too
hard to fix. Just click restart or press any of the control keys(Q, W, A, S or
D) and it'll be gone.

The .a2w file is in the zip; enjoy it!

Download(It's a big file!): http://www.sendspace.com/file/q44nk6

------------------------------------------------------------------------
Alice 2.2 uses Java 1.5.0 and therefore coundn't reach the function "java.awt.Window.getWindows()", which is important in order to reach our render dialog.
But this is all advanced programming stuff you don't have to worry about.

All I did in this version of Alice was to update its Java from 1.5.1 to 1.6.
The rest of the coding is in Alice's scriptingsystem - jython.

--This part is only for those who are intrested in Alice Scripting--

Jython is a "Phyton interpreter" made in Java (This make it able to import Java libraries).
Phyton is the programing language that`s used to script Alice.
Java is that programing language Alice is made of (you can import Java-libs in Jyton)

-How to: Setup scripting-
http://www.westga.edu/~drocco/alice/scripting.html
http://www.alice.org/bvw02fall/scripting/scripting.html

-Jython-
http://www.jython.org/Project/devguide.html

-Python-
http://docs.python.org/

-Java-
http://today.java.net/download/jdk6/doc/api/overview-summary.html

-Example-
Easy - http://www.westga.edu/~drocco/alice/scripting_basics.html
Hard - http://www.westga.edu/~drocco/alice/networking.html
Both - http://www.alice.org/bvw02fall/scripting/exampleScripts.html

Thanks DrJim for these pages "http://www.westga.edu/~drocco/alice/" and "http://www.alice.org/bvw02fall/scripting/"

--------------------------------------------------------------------

That's awesome but the download link doesn't work and id really like to test this this.:)

jediaction
09-29-2011, 09:52 AM
Good Job. This is good for beginners. Are you going to make a whole series?

arty-fishL
09-29-2011, 04:12 PM
Good Job. This is good for beginners. Are you going to make a whole series?This was Zenteo, do you not remember Zenteo? He gave up on Alice ages ago, and if only I could have told him the correct function to get the render dialog back then, he might have created something super awesome.

jediaction
09-29-2011, 08:24 PM
Yah I remember Zento....oh.....I forgot.....Wow. Yah, I remember when he left. I didn't look at the date this thing was posted...oops. Well, that what bumping is...

Jabadahut50
10-02-2011, 04:05 PM
This was Zenteo, do you not remember Zenteo? He gave up on Alice ages ago, and if only I could have told him the correct function to get the render dialog back then, he might have created something super awesome.

oh so he an old member? :( i really wanted to be able to use this:(

InsertName
10-02-2011, 05:59 PM
You can use it, I don't see why not.

Jabadahut50
10-02-2011, 07:08 PM
You can use it, I don't see why not.

the problem is the download isn't still up so i cant get it.

jediaction
10-02-2011, 08:09 PM
Your not going to be able to get it unless he magically comes back on or someone else has his thing downloaded.

Jabadahut50
10-14-2011, 05:16 PM
Your not going to be able to get it unless he magically comes back on or someone else has his thing downloaded.

i was kind of hopiong somonme had it and could give me a copy.

jediaction
10-15-2011, 07:05 PM
Good luck.:D

Jabadahut50
10-15-2011, 07:42 PM
Good luck.:D

well i dont know if ud be mad at me for this but i noticed your halo2 game had somthing like this. Dismantling is fun too... hmm......:D

jediaction
10-16-2011, 07:37 PM
Dismantling? and my game is nothing like this. I don't see where your going

PikachuCLS
02-22-2012, 07:43 AM
Mind reuploading? I'd really like to incorporate some of this in my projects.

InsertName
02-24-2012, 05:49 PM
Mind reuploading? I'd really like to incorporate some of this in my projects.

See earlier comments.
If its game engines you are looking for, there are multiple FPS/RPG/3rdperson engines on the forums.