![]() |
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. |
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 |
Re: Team 2067 Swerve Drive Game
Quote:
|
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. |
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.
|
Re: Team 2067 Swerve Drive Game
Great game! Joystick support would be nice.
|
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).
|
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 |
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!
|
Re: Team 2067 Swerve Drive Game
You can shoot over the truss as well !
|
Re: Team 2067 Swerve Drive Game
Quote:
|
Re: Team 2067 Swerve Drive Game
Sweeeeeet. Would be nice if there were 2 blockers though.
Next step: 3D! lol |
Re: Team 2067 Swerve Drive Game
Quote:
|
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: |
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