Browse Source

Let's See here

marches
Anthony Rinaldo 4 years ago
parent
commit
8ee916b90c
  1. 3
      Worlds/Test1/log.json
  2. 1
      Worlds/Test1/log.txt
  3. 2
      Worlds/Test1/map.json
  4. 8
      app/routes.py

3
Worlds/Test1/log.json

@ -0,0 +1,3 @@
{
"Raiding Cosi":"1.txt",
}

1
Worlds/Test1/log.txt

@ -1 +0,0 @@
1.txt

2
Worlds/Test1/map.json

@ -1,3 +1,3 @@
{
"places": [ { "name":"Temple_Of_Constant_Explosions", "x":"0","y":"0", "r":"30"} ]
"places": [ { "name":"Deep Gnome Workshop", "x":"0","y":"0", "r":"30"} ]
}

8
app/routes.py

@ -69,7 +69,10 @@ def marches():
@app.route("/marches/maps/<world>")
def marchMap(world):
image_map = [("Temple of Constant Explosions",10,20,35),("Deep Gnome Workshop",50,40,20)] #(place,x,y,r)
#image_map = [("Temple of Constant Explosions",10,20,35),("Deep Gnome Workshop",50,40,20)] #(place,x,y,r)
mfile = open("../Worlds/"+ world + "/map.json",'r')
mData = mfile.read()
image_map = [ (x['name'],x['x'],x['y'],x['r']) for x in json.loads(mData)['places']]
return render_template("marchMap.html",worldname=world,imap=image_map)
@ -85,9 +88,6 @@ def marchWorld(world):
player_list = [ x for x in pData if not empty.match(x)]
pfile.close()
#image_map = [(10,20,35),(50,40,20)] #("place name",x,y,r)
mfile = open(worldDir + "map.json",'r')
mData = mfile.read()
image_map = [ (x['name'],x['x'],x['y'],x['r']) for x in json.loads(mData)['places']]
#image_map = [("Temple of Constant Explosions",10,20,35),("Deep Gnome Workshop",50,40,20)] #(place,x,y,r)
log_list = [("5/3/19",[("Josh Gordon","bottom text"),("Anthony Rinaldo","lorem ipsum")])] # :: [(Date,[(CharacterName,String)])]
return render_template("marchWorld.html",worldname=world,players=player_list,logs=log_list)

Loading…
Cancel
Save