-
-
Notifications
You must be signed in to change notification settings - Fork 384
Expand file tree
/
Copy pathBigStar.qtn
More file actions
43 lines (35 loc) · 748 Bytes
/
Copy pathBigStar.qtn
File metadata and controls
43 lines (35 loc) · 748 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
43
#define _8_50 8.5
#define MaxStarSpawns 64
global {
ushort BigStarSpawnTimer;
EntityRef MainBigStar;
bitset[MaxStarSpawns] UsedStarSpawns;
}
component BigStar {
bool IsStationary;
ushort Lifetime;
byte UncollectableFrames;
FP Speed;
FP BounceForce;
[ExcludeFromPrototype] bool FacingRight;
}
signal OnMarioPlayerCollectedStar(EntityRef entity);
synced event MarioPlayerCollectedStar {
EntityRef Entity;
FPVector2 Position;
EntityRef StarEntity;
}
synced event MarioPlayerDroppedStar {
EntityRef Entity;
}
event CollectableDespawned {
EntityRef Entity;
nothashed FPVector2 Position;
bool Collected;
}
synced event BigCollectableAttemptedSpawn {
int PositionIndex;
FPVector2 Position;
int UsedSpawnpoints;
bool Success;
}