-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_game.dm
54 lines (49 loc) · 1.53 KB
/
_game.dm
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
#define TICK_LAG (1/60)*10
#define HUD_PLANE 100
#define LIGHTING_PLANE 40
#define WATER_PLANE -100
#define DEBUG
#define CHECK_TICK if(world.tick_usage > 80) sleep(world.tick_lag)
#define MELEE 1
#define RANGED 2
var/list/clients = list()
var/webhook_url = "https://discordapp.com/api/webhooks/503242600845803540/ZjBKV7th3sQV-k9lMDcvseX6HDmJ4vTysU5kdZ3QhXDjjI0pjMZLcRfPabzzVntGz_xP"
world
tick_lag = TICK_LAG // 25 frames per second
icon_size = 64 // 32x32 icon size by default
name = "Dabber Survival Game"
view = "19x15" // show up to 6 tiles outward from center (13x13 view)
turf = /turf/dirt
mob = /mob/human
New()
..()
spawn(10)
discord_relay("gamers... server up....... byond://[internet_address]:[port]")
Del()
discord_relay("im dead")
..()
obj
step_size = 2
atom
appearance_flags = PIXEL_SCALE
client
New()
..()
src << {"<font color='#00e5e5'>Welcome to <b>Dabber Survival Game</b>!!
Controls:<b>
WASD - Move Camera
Shift - Faster Camera Speed
B - Build Menu (press cancel to stop building)
T - Chat
Left Click - Attack Someone
Double Left Click - Select Object
Right Click with player selected - Walk To
Right Click - Interact"}
proc/distance(atom/movable/A, atom/B)
return sqrt((B.x-A.x+(A.step_x/64))**2 + (B.y-A.y+(A.step_y/64))**2)
proc/atomdistance(atom/A, atom/B)
return sqrt((B.x-A.x)**2 + (B.y-A.y)**2)
/proc/discord_relay(var/content)
if(world.port != 0)
spawn()
call("ByondPOST.dll", "send_post_request")("[webhook_url]", " { \"content\" : \"[content]\" } ", "Content-Type: application/json")