Code: Select all
screen planets: #Preparing the imagemap
imagemap:
ground "planets.jpg"
hover "planets-hover.png"
hotspot (62, 399, 90, 91) clicked Jump("mercury")
hotspot (227, 302, 141, 137) clicked Jump("venus")
hotspot (405, 218, 164, 118) clicked Jump("earth")
hotspot (591, 78, 123, 111) clicked Jump("mars")
# The game starts here.
label start:
"This is an imagemap tutorial."
jump solar_system
label solar_system:
call screen planets #Displaying the imagemap
label mercury:
"It is Mercury."
jump solar_system
label venus:
"It is Venus."
jump solar_system
label earth:
"It is Earth."
jump solar_system
label mars:
"It is Mars."
jump solar_system
Code: Select all
label selection:
scene selection
screen selection:
imagemap:
ground "selection_00.png"
hover "selection_hover.png"
hotspot (273, 359, 450, 542) $ gender = "Male"
hotspot (273, 710, 450, 880) $ gender = "Female"
jump nameselection
label nameselection:
Code: Select all
## menu:
## 'Male':
## $ gender = "Male"
## 'Female':
## $ gender = "Female"
## jump nameselection
So what am I doing wrong, or is the code out of date or something similar?