-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprogram.h
More file actions
84 lines (67 loc) · 1.32 KB
/
program.h
File metadata and controls
84 lines (67 loc) · 1.32 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#ifndef _PROGRAM_H_
#define _PROGRAM_H_
#include "nintendo.h"
typedef enum {
X ='a',
Y,//b
A,//c
B,//d
L,//e
R,//f
MINUS,//g
PLUS,//h
UP,//i
DOWN,//j
LEFT,//k
RIGHT,//l
UP_RIGHT,//m
UP_LEFT,//n
DOWN_RIGHT,//o
DOWN_LEFT,//p
THROW,//q
TRIGGERS,//r
NOTHING,//s
} Buttons_t;
typedef struct {
Buttons_t button;
uint16_t duration;
} command;
static const command SetupStep[] = {
// Setup controller
{ NOTHING, 100 },
{ TRIGGERS, 5 },
{ NOTHING, 50 },
{ TRIGGERS, 5 },
{ NOTHING, 50 },
{ A, 10 },
{ NOTHING, 50 },
};
static int SetupStepStepSize = (int)( sizeof(SetupStep) / sizeof(SetupStep[0]));
//Frog Coine Farming
static const command FrogCoinestep[] = {
// Find Coin Froge
{ NOTHING, 10 },
{ DOWN, 20 }, // Start Down the hall
{ NOTHING, 10 },
{ R, 5 },
{ NOTHING, 20 },
{ UP, 110 },
{ LEFT, 15 },
{ NOTHING, 10 },
{ UP, 180},
{ LEFT, 10 },
// Capture Coin Froge
{ Y, 20 },
{ NOTHING, 180 },
//Return to WayPoint
{ MINUS, 5 },//Eding
{ NOTHING, 40 },
{ UP, 5 },
{ NOTHING, 20 },
{ A, 5 },
{ NOTHING, 250 },
{ NOTHING, 250 },
{ NOTHING, 50 },
};
static int FrogCoinestepSize = (int)( sizeof(FrogCoinestep) / sizeof(FrogCoinestep[0]));
#endif