Hi there,
I've this "small" idea in my mind and I'd like to transform it in something real. Web pages, usable also with mobile devices:
It is a sort of “old school MUD game”, but for fitness purpose. I live in this town with zillions of steps and dozens of asphalt road/trail connections. I want to create an interactive path generator for my friends and people of the town who wants a workout program.
How it works? You choose a starting point then you move through "rooms" via http links, every room represent a piece of the town, precisely a stair, a road, a path and so on. Every room have it's own specs and these specs will be added to the "User workout stats".
These specs($variables) are:
.$ID [the room unique ID, for linking, ex: "CN001" "CN002" "SG001"]
.$TITLE [a title for the room, ex: "Church St part 1 of 5"]
.$DESCRIPTION [ex: "you are at the bottom of Church St...."]
.$STEPS [number of steps on that room (up to next room), ex: "230"]
.$ROAD [meters of road in that room (up to next room), ex: "500"]
.$PATH [meters of path/trail in that room (up to next room), ex: "1200"] .$LENGHT [meters of workout in that room (up to next room), ex: "1100"] .$DROPUP [ + diff in height of the room (up to next room), ex: "13"]
.$DROPDW [ - diff in height of the room (up to next room), ex: “-13”]
.$LOCHEIGHT [height of the room (up to next room), ex: "162"]
.$GEOLOC [GPS Position of the room, used only for the 1st & last room]
-$variables for user stats-
.$TOTSTEPS [total number of steps done in the "workout", ex: "12230"]
.$TOTROAD [total meters of road done in the "workout", ex: "1500"]
.$TOTPATH [total meters of path done in the "workout", ex: "1700"]
.$TOTLENGHT [total meters of "workout", ex: "18000"]
.$TOTDROPUP [total + difference in heights of “workout”, ex: “1550”] .$TOTDROPDW [total - difference in heights of “workout”, ex: “-550”]
.$LOCHEIGHTSTART [height level start point of the workout]
.$LOCHEIGHTEND [height level start point of the workout]
A direct example:
==home page== [$ID=HOME]
the user have to insert some data (for profiling purpose: name, email…) and then choose the starting point (a simple menu or a simple map should be ok for this purpose)
==chosen starting point== [$ID=CN001]
-get variables of the room-
.$ID=CN001 [get from DB or text file]
.$TITLE=Church plaza [get from DB or text file]
.$DESCRIPTION=Center of church plaza [get from DB or text file]
.$STEPS=0 [get 0 because is the start point]
.$ROAD=0 [get 0 because is the start point]
.$PATH=0 [get 0 because is the start point]
.$DROPUP=0 [get 0 because is the start point]
.$DROPDW=0 [get 0 because is the start point]
.$LOCHEIGHT=150
.$GEOLOC=42.12.12
-set variables for user stats-
.$TOTSTEPS=0 [set 0 because is the start point]
.$TOTROAD=0 [set 0 because is the start point]
.$TOTPATH=0 [set 0 because is the start point]
.$TOTDROP=0 [set 0 because is the start point]
.$TOTDROPUP=0 [set 0 because is the start point]
.$TOTDROPDW=0 [set 0 because is the start point]
.$TOTLENGHT=0 [set 0 because is the start point]
.$GEOLOCSTART=42.12.12
.$LOCHEIGHTSTART=150
-text of the room-
hi $user, this is your starting point: //the whole description about the place with some useful information// “1/2 town” neighbourhood, is the center of the town, choose your next step from the below choices:
-let the user choose next “room” of workout-
go to east [$ID=CN002], you’ll find many stairs along the asphalt road;
go to south [$ID=CN003], along the asphalt road, 1st crossroad after 1km;
go to west [$ID=CN004], along the asphalt road, 1st crossroad after 2km; go to north [$ID=CN005], 212 steps before next crossroad. Steepy stair, old turkish neighbourhood.
==the user choose to go north== [$ID=CN005]
-get variables of the room-
.$ID=CN005 [get from DB or text file]
.$TITLE=New Bond St - part 1 of 5 [get from DB or text file]
.$DESCRIPTION=Bottom of New Bond St [get from DB or text file]
.$STEPS=212 [get from DB or text file]
.$ROAD=0 [get from DB or text file]
.$PATH=0 [get from DB or text file]
.$DROPUP=18 [get from DB or text file]
.$DROPDW=0 [get from DB or text file]
.$LOCHEIGHT=168 [get from DB or text file]
.$LENGHT=10 [get from DB or text file]
.$GEOLOC=42.12.14 [get from DB or text file]
-set variables for user stats-
.$TOTSTEPS=212 [get $STEPS from above and add that value to $TOTSTEPS]
.$TOTROAD=0 [get $ROAD “ “ “ “ “ “ “ $TOTSTEPS]
.$TOTPATH=0 [get $PATH “ “ “ “ “ “ “ $TOTPATH]
.$TOTDROPUP=18 [get $DROPUP “ “ “ “ “ “ “ $TOTDROPUP]
.$TOTDROPDW=0 [get $DROPDW “ “ “ “ “ “ “ $TOTDROPDW]
.$TOTLENGHT=10 [get $LENGHT “ “ “ “ “ “ “ $TOTLENGHT] .$GEOLOCSTART=42.12.12 [get from 1st “room”]
.$LOCHEIGHTSTART=150 [get from 1st “room”]
-text of the room-
$user, you choose to go up to the hills //the whole description about the place with some useful information taken from $DESCRITPION of ID=$CN005//
-let the user choose next block of workout-
$user, where you'll go?
go to east [$ID=CN006], 200 steps before next cross road (BNC);
go to south [$ID=CN007], 300 steps BNC. Old turkish neighbourhood;
go to west [$ID=CN008], along the asphalt road, 1km BNC;
go to north [$ID=CN009], 400 steps BNC. Steepy stair, old turkish neighbourhood
Finish workout [$ID=XXXXX] finish here your workout
==the user choose to go west== [$ID=CN008]
-get variables of the room- [get all these from DB or text file]
.$ID=CN008
.$TITLE=Along the asphalt road
.$DESCRIPTION=Beginning of Asphalt Rd. there are… blah blah blah
.$STEPS=0
.$ROAD=1150
.$PATH=0
.$DROPUP=0
.$DROPDW=22
.$LOCHEIGHT=146
.$LENGHT=1150
.$GEOLOC=42.12.18
-set the $var for user stats- [get $VAR from room stats, add to $TOTVAR]
.$TOTSTEPS=212 [212+0]
.$TOTROAD=1150 [1150+0]
.$TOTPATH=0 [0+0]
.$TOTDROPUP=18 [18+0]
.$TOTDROPDW=22 [0+22]
.$TOTLENGHT=1160 [10+1150]
.$GEOLOCSTART=42.12.12 [get from 1st “room”]
.$LOCHEIGHTSTART=150 [get from 1st “room”]
-text of the room-
$user, you choose to go along the asphalt road //the whole description about the place with some useful information taken from $DESCRITPION of ID=$CN008// yadda yadda blah blah
-let the user choose next “room” of workout-
$user, where you'll go?
go to east [$ID=CN010], 200 steps BNC. Steepy stair;
go to south [$ID=CN011], 300 steps BNC. Steepy stair;
go to west [$ID=SP008], along the asphalt road, 12km BNC;
go to north [$ID=LQ009], 400 steps BNC. Old turkish neighbourhood.
Finish workout [$ID=XXXXX] finish here your workout
==the user choose to go north== [$ID=LQ009]
-get variables of the room- [get all these from DB or text file]
.$ID=LQ009
.$TITLE=Along Uncle Tom Stair
.$DESCRIPTION=You just did the first 400 steps of Uncle Tom Stair. .$STEPS=400
.$ROAD=0
.$PATH=0
.$DROPUP=111
.$DROPDW=0
.$LOCHEIGHT=257
.$LENGHT=800
.$GEOLOC=42.12.22
-set the $var for user stats- [get $VAR from room stats, add to $TOTVAR]
.$TOTSTEPS=612 [212+400] (get 212 from previous $TOTSTEPS)
.$TOTROAD=1150 [1150+0] (“)
.$TOTPATH=0 [0+0] (“)
.$TOTDROPUP=129 [18+111] (“)
.$TOTDROPDW=22 [22+0] (“)
.$TOTLENGHT=1960 [1160+800] (“)
.$GEOLOCSTART=42.12.12 [get from 1st “room”]
.$LOCHEIGHTSTART=150 [get from 1st “room”]
-text of the room-
$user, you choose to go up along the steepy stair of Uncle Tom Stairs //the whole description about the place with some useful information taken from $DESCRITPION of ID=$LQ009//
-let the user choose next “room” of workout-
$user, where you'll go?
go to east [$ID=FQ010], 100 steps BNC. Steepy stair, market district;
go to south [$ID=GQ011], 450 steps BNC. Old turkish neighbourhood;
go to west [$ID=SS008], along the asphalt road, 1km BNC;
go to north [$ID=LQ010], 600 steps BNC. Steepy stair.
Finish workout [$ID=XXXXX] finish here your workout
==the user choose to finish here== [$ID=XXXXX]
-get variables of the room- [get all these from DB or text file]
.$ID=XXXXX
.$TITLE=Finished workout
.$DESCRIPTION=You just finished your workout. Compliments.
-set the $var for user stats- [get $VAR from room stats, add to $TOTVAR]
.$TOTSTEPS=612 [612+0] (get 212 from previous $TOTSTEPS)
.$TOTROAD=1150 [1150+0] (“)
.$TOTPATH=0 [0+0] (“)
.$TOTDROPUP=129 [129+0] (“)
.$TOTDROPUP=22 [22+0] (“)
.$TOTLENGHT=1960 [1960+0] (“)
.$GEOLOCSTART=42.12.12 [get from 1st “room”]
.$GEOLOCEND=42.12.22 [get from last “room”]
.$LOCHEIGHTSTART=150 [get from 1st “room”]
.$LOCHEIGHTEND=257 [get from last “room”]
-text of the room-
$user, you finish your workout here //the whole description about the place with some useful information taken from $DESCRITPION of ID=$LQ009 & ID=$XXXXX//
-A page should appear with the stats, all the descriptions of all the rooms the user went through. Ready to be printed. Ex.:
$user, your workout content is 1960m long with a positive drop of 129m and a negative of 22. Your start point is at 150m above mean sea level and you’ll finish at 257m. 612 steps, 1150m of asphalt road and 0m of trail are included. Enjoy it.
Your trailbook:
1st room description
2nd room description
3rd room description
last room description