-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructures.h
More file actions
46 lines (32 loc) · 723 Bytes
/
structures.h
File metadata and controls
46 lines (32 loc) · 723 Bytes
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
/*
Author: Esmit Perez (@esmitperez)
Fecha: Jul 10 2013
Inspirado en http://playground.arduino.cc/Code/StopWatchClass y http://arduino.cc/en/Hacking/LibraryTutorial
*/
#if ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
typedef struct AnimationS {
String name;
int numFrames;
int direction; // -1 left, 0 static, +1 right
unsigned char* frames[30];
int animationPause;
bool makeSound;
int melodySize;
int melody[10];
int melodySpeed;
int melodyDelay;
} ;
typedef struct ActorS {
String name;
int pos_curr_x;
int pos_curr_y;
int pos_prev_x;
int pos_prev_y;
int bubble_x;
int bubble_y;
int bubble_size;
};