-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinformations.txt
52 lines (41 loc) · 1.69 KB
/
informations.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
backEndPlayers[socket.id] = {
x:playerX,
y:playerY,
color: playerColor,
radius: PLAYERRADIUS,
score: 0,
health: PLAYERHEALTH,
username,
inventory, // size 4
currentSlot: 1, // 1~4
mousePos: {x:0,y:0},
wearingarmorID: -1,
wearingscopeID: -1,
getinhouse: false,
speed:PLAYERSPEED, // not passed to frontend
ridingVehicleID:-1,
entityType:'player', // not passed to frontend
canvasHeight,
canvasWidth,
skin,
onBoard:false,
strikeID:-1, // not passed to frontend
};
backEndVehicles[vehicleId] = {
x,y,radius,velocity:0, myID:vehicleId, color, warningcolor, damage, health, speed, type,occupied:false,ridingPlayerID:-1
}
backEndEnemies[enemyId] = {
x,y,radius,velocity, myID, color, damage, health, homing, homingTargetId, speed, wearingarmorID, entityType: 'enemy'
}
if (startDistance>0){
backEndProjectiles[projectileId] = {
x:location.x + Math.cos(angle)*startDistance, y:location.y + Math.sin(angle)*startDistance,radius,velocity, speed:bulletSpeed, playerId: playerID, gunName:currentGun, travelDistance, projDamage,color
}
} else{
backEndProjectiles[projectileId] = {
x:location.x, y:location.y,radius,velocity, speed:bulletSpeed, playerId: playerID, gunName:currentGun, travelDistance, projDamage, color
}
}
backEndItems[itemsId] = {
itemtype, name, groundx, groundy, size, color, iteminfo, onground, myID: itemsId, deleteRequest:false
}