Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##
- # Press A within the first 20 frames
- # Press L + R between frame 20 inclusive and frame 40 exclusive
- # Press C between frame 40 inclusive and frame 60 exclusive
- # Release C between frame 70 inclusive and frame 90 exclusive
- # Press A + B between frame 90 inclusive and frame 90 exclusive
- #
- def self.test_combo_start
- kp_ab = Key_Press.new(Input::A, Input::B)
- kp_a = Key_Press.new(Input::A)
- kp_c = Key_Press.new(Input::C)
- kp_lr = Key_Press.new(Input::L, Input::R)
- true_condition = TrueCondition.new
- tka_a = Trigger_Key_Action.new(kp_a, true_condition, 20)
- tka_lr = Trigger_Key_Action.new(kp_lr, true_condition, 20)
- tka_c = Trigger_Key_Action.new(kp_c, true_condition, 20)
- rka_c = Release_Key_Action.new(kp_c, true_condition, 20, 10)
- tka_ab = Trigger_Key_Action.new(kp_ab, true_condition, 20)
- combo = Key_Combo.new
- combo.put(tka_a, 0)
- combo.put(tka_lr, 20)
- combo.put(tka_c, 40)
- combo.put(rka_c, 60)
- combo.put(tka_ab, 90)
- @@combo = combo
- @@counter = 0
- end
- def self.key_combo
- res = @@combo.update
- @@counter += 1
- if res.nil?
- return false
- end
- p res, @@counter
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement