Esempio n. 1
0
def bytes_map():
    w = request.args.get('w', '128')
    w = int(w)
    h = request.args.get('h', '128')
    h = int(h)
    bites = fetch_map(w, h, "binary_test")
    return send_file(bites,
                     attachment_filename="mapdata.oct",
                     mimetype="application/octet-stream")
Esempio n. 2
0
def dmg_map():
    w = request.args.get('w', '128')
    w = int(w)
    h = request.args.get('h', '128')
    h = int(h)
    e = request.args.get('e', 's')
    e = str(e)
    l = request.args.get('l', 1)
    l = int(l)
    return fetch_map(w, h, "default", {'entrance': e, 'level': l})
Esempio n. 3
0
def get_map():
    w = request.args.get('w', '128')
    w = int(w)
    h = request.args.get('h', '128')
    h = int(h)
    t = request.args.get('t', 'splash')
    t = str(t)
    e = request.args.get('e', 's')
    e = str(e)
    l = request.args.get('l', 1)
    l = int(l)
    return fetch_map(w, h, t)
Esempio n. 4
0
def default_room():
    w = request.args.get('w', '128')
    w = int(w)
    h = request.args.get('h', '128')
    h = int(h)
    return fetch_map(w, h, "splash")
Esempio n. 5
0
def big_room():
    w = request.args.get('w', '128')
    w = int(w)
    h = request.args.get('h', '128')
    h = int(h)
    return fetch_map(w, h, "big_room")
Esempio n. 6
0
def test():
    return fetch_map(256, 256)