-
Notifications
You must be signed in to change notification settings - Fork 0
/
mode_3_jets.ino
62 lines (55 loc) · 2.76 KB
/
mode_3_jets.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// ####################################################################################################
// # Flight 3000 written by Mark Sunnucks (Snux) Copyright 2016 #
// # #
// # Based on and expanded from example code supplied with the myPinballs Custom Controller Boardset #
// # #
// # This code will not compile or run on its own. It requires the myPinballs Custom Controller #
// # Boardset hardware and frameworks, which are available here: #
// # http://mypinballs.co.uk/electronics/store.jsp #
// # #
// # Boardset, All Frameworks & Code Structure/Design are Copyright Orange Cloud Software Ltd #
// ####################################################################################################
//
// This file is part of Flight 3000.
//
// Flight 3000 is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
// Flight 3000 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// _ _ ___
// _ | |___| |_ | _ )_ _ _ __ _ __ ___ _ _ ___
// | || / -_) _| | _ \ || | ' \| '_ \/ -_) '_(_-<
// \__/\___|\__| |___/\_,_|_|_|_| .__/\___|_| /__/
// |_|
//
// In the standard game, the jet bumpers don't do anything
// more than kick the ball and score 1000 points.
//----------------------------------------
//define includes
//----------------------------------------
//----------------------------------------
//----------------------------------------
//define global variables
//----------------------------------------
//----------------------------------------
//methods
//----------------------------------------
//TO-DO - play around with some random sounds.
void bottom_jet()
{
if (game_started)
{
update_score(active_player_id, 1000);
sound_channel1.play(7);
bottom_jet_coil.pulse(50);
}
}
void top_jet()
{
if (game_started)
{
update_score(active_player_id, 1000);
sound_channel1.play(7);
top_jet_coil.pulse(50);
}
}