-
Notifications
You must be signed in to change notification settings - Fork 1
/
info.txt
165 lines (123 loc) · 3.56 KB
/
info.txt
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
>> send to server
<< send to client
$ server internal
* client internal
Login protocol:
*PAGE OPEN
*ON PAGE LOADED
>> PING SERVER (Establishing connection...)
<< Ok / Timeout
* Login / Play as Guest / New User
>> Send login info / New User Info
Check info
Y: Return playerdata, Session ID, login player serverside
N: Return No
>> Guest
Clone and return guestdata, Session ID
Obtained Info?
<< Server / Room listing with internal IDs
Obtained Info?
Choose Server / Room
Rooms contain {
Array of Actors [
Actor {
type = player
Player (cloned) {
Session ID (socket.id)
Name
Color / Skin
# Score Data
}
3-Vector
QE
Velocity
Item
Status (Jailed or not)
}
]
Array of Obstacles [
Obstacle {
Vertices [
3vecs (relative to center)
]
3-Vector
QE
Velocity
}
]
Array of Items [
3-Vector
QE
]
Chat [
Message {
Text
Timestamp
Originating Playername
}
]
Determining function for jail areas, player areas, etc.
Room ID
}
Physics object:
Collision calculations
Project position
Determine Clip (if no clip, that's good, end it)
IF CLIP
BOUNCE
Identify point of collision
Move to point of collision, and determine leftover vel-mag (LVM)
Recalculate velocity
Project position with LVM
Rules Easier Edition:
(Mutually exclusive - video isn't sound, video isn't text.)
1: Text bird
2: Image bird
3: Video of bird
4: Description of bird (include as text, doesn't need to have a bird word in it)
5: Sound of bird
ffmpeg -i "https://video.twimg.com/ext_tw_video/751805219642548224/pu/pl/CslKiIMv0z7xpbtV.m3u8" -c copy CslKiIMv0z7xpbtV.m3u8
ffmpeg -i "https://video.twimg.com/ext_tw_video/751805219642548224/pu/pl/CslKiIMv0z7xpbtV.m3u8" -c h264_qsv target.mkv
[img]https://i.gyazo.com/dd5be0b951d95876f94425e41f4b7898.png[/img][img]https://i.gyazo.com/bc15b1df9fbb2d1f6c0f53029a9031ab.png[/img][img]https://i.gyazo.com/02d67ca5f31134f82943d9955dbce795.png[/img]
[img]https://i.gyazo.com/c289f86170d6ef036612b00c53b11af6.png[/img][img]https://i.gyazo.com/eea0cace3429b6363ec9cdf8913eede5.png[/img][img]https://i.gyazo.com/d9bb4c7421e3aebbb616c4705cf9a9ec.png[/img][img]https://gyazo.com/fc3ca87897526949af3f85440dfe7e56.png[/img][img]https://gyazo.com/b2564e0681123b65e7dd51268cb93bb3.png[/img][img]https://i.gyazo.com/e8059daf512a9ce2d217353b5bf86608.png[/img]
[img]https://i.gyazo.com/5305f1b620efe6f084f2a68a680a76b0.png[/img][img]https://gyazo.com/da1ae52667e0f113291ad8b1c358021e.png[/img][img]https://i.gyazo.com/410afb8dd0e3b5ce27e95c551e05c1cd.png[/img][img]https://gyazo.com/f29b871ff695f558fbeff64e8f3682e3.png[/img]
Hey, what are these objects again anyway?
pinfo
id - socket id
name - player name string
color - rgb color
skin - TODO
player
info{TYPE:PINFO}
body - cannon body
item - int enum item
jailed - bool
team - -1 unassigned, positive is teams (0, 1)
room{TYPE:ROOM}
room
id - int
players[] - player object array
world - cannon world
chat[] - dunno
excise(player) - remove player
getset(this, time) - prep for init
start() - start room
stop() - stop room
item
type - int enum item
body - cannon body
# SENT OBJECTS - not real objects.
"optimized" for low size.
shell
name - THIS IS A SHELL
radius - cfg radius
mass - 0
position - center
player
name - WHAT KIND OF THING IS THIS
info{TYPE:PINFO}
team - team int, from player
id - socket id. used for identifying self
radius - cfg radius
mass - cfg mass
position - where this player will spawn. [x, y, z] ints