Skip to content

robhurring/thunder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thunder USB Missile Launcher (Dream Cheeky)

A pretty small jruby swing app to put a UI on the Dream Cheeky Thunder USB Missile Launcher (Since their drivers are windows only -- and 50MB+!)

UI

Requirements

  • JRuby
  • libusb

To run, clone the repo and run bundle install to get the dependencies.

GUI Usage

The UI also responds to the arrow keys for movement as well as the ENTER key to fire the missile.

jruby app.rb

Other Usage

require 'libusb'
require './lib/launcher'

begin
  l = Launcher.connect
  l.right 0.5   # move right 0.5 seconds
  l.up 0.2      # move up 0.2 seconds
  l.fire!(2)    # fire 2 missiles
rescue Launcher::DeviceNotFoundError
  puts "Your launcher could not be found."
  puts "Make sure your launcher is connected!"
  exit 1
end

Credits

The actual launcher code is in lib/launcher.rb and was a rewrite of the numberous other launcher apps out there. So all credit to those who originally found out the codes to send to the launcher to make it do its thing (Not sure who the original author is.)

Also another big thanks to profligacy LEL for making swing much less painful to type :)

About

Dream cheeky thunder (usb missile launcher) UI in jruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages