forked from zhikangxie107/g00se-pet-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
67 lines (49 loc) · 1.59 KB
/
main.py
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
import bottle
import json
@bottle.route("/")
def serve_html():
return bottle.static_file("start.html", root=".")
@bottle.route("/start.txt")
def serve_startTxt():
return bottle.static_file("start.txt", root=".")
@bottle.route("/gamepage.txt")
def serve_game():
return bottle.static_file("gamepage.txt", root=".")
@bottle.route("/start.js")
def serve_js():
return bottle.static_file("start.js", root=".")
@bottle.route("/gamepage.css")
def serve_gameplaycss():
return bottle.static_file("gamepage.css", root=".")
@bottle.route("/web.js")
def webJS():
return bottle.static_file("web.js", root=".")
@bottle.route("/style.css")
def serve_cssFile():
return bottle.static_file("style.css", root=".")
@bottle.route("/ajax.js")
def serve_ajaxFile():
return bottle.static_file("ajax.js", root=".")
#put all sprites after this comment
@bottle.route("/goose_medium.png")
def OJ_Simpson():
return bottle.static_file("goose_medium.png", root=".")
@bottle.route("/goose_high.png")
def goose_high():
return bottle.static_file("goose_high.png", root=".")
@bottle.route("/goose_low.png")
def goose_low():
return bottle.static_file("goose_low.png", root=".")
@bottle.route("/goose_poof.png")
def goose_poof():
return bottle.static_file("goose_poof.png", root=".")
@bottle.route("/Grass1.png")
def serve_grass():
return bottle.static_file("Grass1.png", root=".")
@bottle.route("/honk-sound.mp3")
def honk_sound():
return bottle.static_file("honk-sound.mp3", root=".")
@bottle.route("/egg.png")
def serve_Egg():
return bottle.static_file("egg.png", root=".")
bottle.run(host='0.0.0.0',port=8080)