Author |
Message |
The_Bean
|
Posted: Wed Mar 19, 2008 4:00 pm Post subject: Geometry_Wars |
|
|
This is Geometry Wars inspired from the Xbox 360 Geometry Wars. (hehe)
Yes Richard I am still making stuff even though the semester is over.
Thank you to 'nick' for the joystick tutorial and the update .tu http://compsci.ca/v3/viewtopic.php?t=17192
Thank you to 'Mackie' for the Gradient circle which were used alot http://compsci.ca/v3/viewtopic.php?t=17171
Thank you to myself for the PointedCircles which are used for the bullets http://compsci.ca/v3/viewtopic.php?t=17298
WARNING:
This game requires a Xbox 360 game controller with a cord in order to play it.
To install the control plug it into a usb port and if windows doesn't automatically install the driver you can get it here http://www.microsoft.com/hardware/gaming/download.mspx
If you do not have this controller then I don't suggest trying the game because you will get an error.
If you have another game pad with 2 joysticks it still may not work because of the different axis setup and which variables hold them.
If you do manage to play this game please post so I know atleast someone has tried it.
Description: |
|
Download |
Filename: |
Geometry_Wars.rar |
Filesize: |
237.84 KB |
Downloaded: |
301 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
swami
|
Posted: Wed Mar 19, 2008 4:09 pm Post subject: Re: Geometry_Wars |
|
|
THIS GAME IS AWESOME!!!!! so realistic.. even has all the physics like in the real one.. WOW + karma Also + 7 bits!!
|
|
|
|
|
|
CodeMonkey2000
|
Posted: Wed Mar 19, 2008 4:27 pm Post subject: RE:Geometry_Wars |
|
|
I keep getting a division by zero error.
|
|
|
|
|
|
Mackie
|
Posted: Wed Mar 19, 2008 5:49 pm Post subject: RE:Geometry_Wars |
|
|
It doesn't work for me either, but it's pretty awesome that my gradient module got used.
|
|
|
|
|
|
Sean
|
Posted: Wed Mar 19, 2008 5:51 pm Post subject: Re: Geometry_Wars |
|
|
Same error, I recieve, even when I extracted the program, I could only load up the background, which was the Gradient Module Sky that Mackie had made.
|
|
|
|
|
|
Nick
|
Posted: Wed Mar 19, 2008 5:53 pm Post subject: RE:Geometry_Wars |
|
|
not bad
I used a controller with a PS2 setup and it wouldn't let me shoot behind me however that's probably me controller
and you're welcome for the tutorial glad someone used it
|
|
|
|
|
|
darkangel
|
Posted: Wed Mar 19, 2008 7:10 pm Post subject: Re: Geometry_Wars |
|
|
I'm getting the same error.
Would someone who does get it to work please post some screen shots, this sounds interesting and would like to see.
Afterthought, a youtube video would be even better!
|
|
|
|
|
|
Sean
|
Posted: Wed Mar 19, 2008 7:39 pm Post subject: RE:Geometry_Wars |
|
|
The_Bean, you should do it, since you created it.
I know the Sky Night is the background, and I'll see if Mackie will let me post his code onto the Forum, but you need to download his Gradient Module, if you haven't.
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
MichaelM
|
Posted: Wed Mar 19, 2008 7:52 pm Post subject: Re: Geometry_Wars |
|
|
Ya, I think you get the division by zero error if you try it without the controller plugged in. I got it to "work" with my Logitech PS2 style controller. However, for some reason the shooty thingys only shot left for me, and hence I couln't really get far or get good screenshots. Maybe theres some controls I dont know about, or my controller could just be messed up. Heres a screenshot I took:
Description: |
|
Filesize: |
74.67 KB |
Viewed: |
161 Time(s) |
|
|
|
|
|
|
|
The_Bean
|
Posted: Wed Mar 19, 2008 8:27 pm Post subject: Re: Geometry_Wars |
|
|
Ok to answer some questions:
The division error by zero is because you don't have a controller properly hooked up, it is trying to read it and is getting nothing so when I'm using arctan(y/x) it is dividing by x which is 0 because of no controller.
The reason why it constantly shoots left and its hard to shoot rightis because your not using the xbox controller try hitting the triggers on the back and see what happens.
This is because of how the computer reads the controller. On the xbox controller the right joystick uses U for the x and R for the y and Z as the triggers on the back. But other controllers use a different combination of these variables and where they go.
Turing: |
xLeftJoy := round (((joy.pos.xpos / joy.caps.maxX ) * 2 - 1) * 10)
yLeftJoy := round ((1 - (joy.pos.ypos / joy.caps.maxY ) * 2) * 10)
xRihtJoy := round (((joy.pos.upos / joy.caps.maxU ) * 2 - 1) * 100) / 100
yRihtJoy: = round ((1 - (joy.pos.rpos / joy.caps.maxR ) * 2) * 100) / 100
triggers := round ((1 - (joy.pos.zpos / joy.caps.maxZ ) * 2) * 10) / 10
%Not the actual variables i used
|
The reason that it always shoots left is because i set the trigger to be always equal to 0 and when hit the left one its goes <0 and the right one makes it >0 so because of the subtraction and making it as one of the joysticks its then always pointing left if you go right on the joystick then it will use the bomb and the triggers then make you shoot right.
I also have a MadCatz computer version of the original xbox and it also has these problems. I will try and fix this and release a second version tomorrow.
Possibly will try and make a simpler version that can use the mouse and keyboard but the limitation of the keys will make it harder to move, and make it only linear movement (0,45,90,135,180...) instead of full circle.
I will try and get some screens or vid up on youtube so people can see.
Controls:
forgot to put these
Left Joystick=movement
Right Joystick= shotting
Triggers= Bomb (only have 3 and don't get pointsfor kills)
Start(button 8)= en program
any key(on keyboard)= end program (wheres the any key)
For anyone wondering 411 lines uncommented and even the ship is made in turing using the Draw commands and Pic.Rotate
|
|
|
|
|
|
The_Bean
|
Posted: Wed Mar 19, 2008 10:43 pm Post subject: Re: Geometry_Wars |
|
|
Ok this version has nothing new in it, but it works on my MadCatz controller so i hope it will work with most others and the ps2 one.
Controls:
relatively the same, but the triggers no longer do anything and the bombs have been put on button 1 (usually A on xbox and i think X on ps )
this is because of the values that it sends with the different setup.
Enjoy
Description: |
|
Download |
Filename: |
Geometry_Wars_Other_Game_Pad.rar |
Filesize: |
237.87 KB |
Downloaded: |
180 Time(s) |
|
|
|
|
|
|
fishtastic
|
Posted: Wed Mar 19, 2008 10:53 pm Post subject: RE:Geometry_Wars |
|
|
Hello.
Do you mind post the source code or change the control a bit so people like me who are too poor to buy joysticks can play it with my keyboard?
|
|
|
|
|
|
A.J
|
Posted: Wed Mar 19, 2008 11:38 pm Post subject: Re: Geometry_Wars |
|
|
AMEN to that fishtastic
|
|
|
|
|
|
The_Bean
|
Posted: Thu Mar 20, 2008 4:39 pm Post subject: Re: Geometry_Wars |
|
|
Ok for all of those complainers out there who don't have a gamepad and would prefer the same old keyboard and mouse here it is.
Controls:
WASD=movement
Mouse Left Click=shoot in direction of mouse compared to ship
Mouse Right Click= use bomb
ESC= exit
really didn't want to have to do it but i guess not enough people can play it the other way.
Description: |
|
Download |
Filename: |
Geometry_Wars_Keyboard.rar |
Filesize: |
236.98 KB |
Downloaded: |
179 Time(s) |
|
|
|
|
|
|
|