Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Team 2067 Swerve Drive Game (http://www.chiefdelphi.com/forums/showthread.php?t=129693)

cjl2625 05-06-2014 00:43

Team 2067 Swerve Drive Game
 
This year, our team used swerve drive. Our team uses LabVIEW, but I recently wrote a swerve simulator/game in Java using LibGDX.
I got the idea from Team Pwnage's game, which can be found here.

Here's the link for our game:
http://applepi.tk/swerve

Here are the controls:

The harvester has to be down before you can shoot.

The calculations have some improvements from the code we used on the actual robot, like the ability to rotate around any point, not just the center. (This is what I, J, K, L keys are for)
I didn't spend too much time on the ball physics, so they're a bit weird. I'm planning on refining them, and then adding more features, like other robots on the field and USB controller support.

Dunngeon 05-06-2014 02:41

Re: Team 2067 Swerve Drive Game
 
I can't get it to shoot with space. I'm using Chrome on Windows.

Also your rotation on the arrow keys feels really fast. It would work with a joystick, but with keyboard keys it really doesn't work that well IMO.


Otherwise, looks and runs great

EDIT: You have to shoot with the intake out

Kevin Sheridan 05-06-2014 02:46

Re: Team 2067 Swerve Drive Game
 
Quote:

Originally Posted by Dunngeon (Post 1388674)
I can't get it to shoot with space. I'm using Chrome on Windows.

Also your rotation on the arrow keys feels really fast. It would work with a joystick, but with keyboard keys it really doesn't work that well IMO.


Otherwise, looks and runs great

You need to deploy the intake in order to shoot. Took me a while to figure that out.

cjl2625 05-06-2014 08:33

Re: Team 2067 Swerve Drive Game
 
Oh yeah, should have mentioned that.
And the turning is really sensitive, and especially hard to control with the drift. Maybe I'll turn down the drift and the acceleration.

dmaciel10123 05-06-2014 11:41

Re: Team 2067 Swerve Drive Game
 
I'm having a lot of fun with this haha. Good job, and impressive system on the bot. You guys did great this year.

Orion.DeYoe 05-06-2014 12:12

Re: Team 2067 Swerve Drive Game
 
Great game! Joystick support would be nice.

Electronica1 05-06-2014 12:16

Re: Team 2067 Swerve Drive Game
 
My favorite part is doing bounce shots off the side rails into the high goal, (not sure if it is a feature or not, but still pretty cool).

cjl2625 06-06-2014 21:21

Re: Team 2067 Swerve Drive Game
 
I updated the game with controller support, timed matches, and an AI defensive bot that gets in your way. The robot interactions are rather buggy (weird things might happen if you get pinned), so there's a link to a version without enemies if you don't like it.
Clear the cache if you've played before.

Html5 with enemies:
http://applepi.tk/swerve

Html5 without enemies:
http://applepi.tk/swerve_noenemy

Desktop with enemies and controllers:
http://applepi.tk/swerve.jar

Controllers don't work in html, I haven't figured that out, so use the desktop version if you want to use a controller.
Tested on a Logitech Gamepad F310. Left stick for translation, right stick for rotation, LT and LB for harvester, RT for shoot, A for field centric, B for robot centric, D-pad for move rotation point, back for reset rotation point.

And it wont let me update the first post to add the links... There's no edit button

pimathbrainiac 06-06-2014 21:36

Re: Team 2067 Swerve Drive Game
 
You should github the source code. That way, more people can work on it and perhaps make it better!

Fanny Z 06-06-2014 22:57

Re: Team 2067 Swerve Drive Game
 
You can shoot over the truss as well !

Uniwersel 07-06-2014 04:36

Re: Team 2067 Swerve Drive Game
 
Quote:

Originally Posted by cjl2625 (Post 1388888)
I updated the game with controller support, timed matches, and an AI defensive bot that gets in your way. The robot interactions are rather buggy (weird things might happen if you get pinned), so there's a link to a version without enemies if you don't like it.
Clear the cache if you've played before.

Html5 with enemies:
http://applepi.tk/swerve

Html5 without enemies:
http://applepi.tk/swerve_noenemy

Desktop with enemies and controllers:
http://applepi.tk/swerve.jar

Controllers don't work in html, I haven't figured that out, so use the desktop version if you want to use a controller.
Tested on a Logitech Gamepad F310. Left stick for translation, right stick for rotation, LT and LB for harvester, RT for shoot, A for field centric, B for robot centric, D-pad for move rotation point, back for reset rotation point.

And it wont let me update the first post to add the links... There's no edit button

Is there any chance of getting a version without the 60 second timer? I liked the game a lot more without the timer.

asid61 07-06-2014 06:36

Re: Team 2067 Swerve Drive Game
 
Sweeeeeet. Would be nice if there were 2 blockers though.

Next step: 3D! lol

cjl2625 07-06-2014 07:11

Re: Team 2067 Swerve Drive Game
 
Quote:

Originally Posted by Uniwersel (Post 1388913)
Is there any chance of getting a version without the 60 second timer? I liked the game a lot more without the timer.

Yeah, I can do that. I'll add a settings menu

BrendanB 07-06-2014 11:34

Re: Team 2067 Swerve Drive Game
 
Cory, great work on this it is a really neat simulation!

One slight recommendation would be to have the score and timer in constant view and a little larger.

And 2067's swerve was pretty neat this year too! :cool:

Henrique Schmit 07-06-2014 13:34

Re: Team 2067 Swerve Drive Game
 
so, what are your high scores?


All times are GMT -5. The time now is 13:52.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi