Skip to content

Commit c97e7a1

Browse files
committed
Added raylib game hosting
1 parent 4a2ece4 commit c97e7a1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22
venv
33
__pycache__
4+
game

app.py

+11
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,16 @@ def blog(path):
2222
else:
2323
return abort(404)
2424

25+
26+
@app.route('/game')
27+
@cross_origin()
28+
def game_index():
29+
return send_from_directory('game', 'spacebuddy.html')
30+
31+
@app.route('/game/<path:path>')
32+
@cross_origin()
33+
def serve_game_static(path):
34+
return send_from_directory('game', path)
35+
2536
if __name__ == "__main__":
2637
app.run(debug=True)

0 commit comments

Comments
 (0)