map

map structre

value

as: |file|

atributes

  • * file [String] path to (*.str) file
  • mapType [{terain,jump}:terain] terain: basic terain / jump: player must jump
  • active [Boolean:true]

actions

  • onEnter
  • onExit

control

  • on() activate map
  • off() deactivate map

Examples

map("data/house/run.str", mapType:terain);
map("data/house/run.str", mapType:jump, onEnter:{
    println("enter ...");
});
mapa = map("data/house/run.str", mapType:jump, onExit:{
    mapa.off(); // player cannot enter this area again
}).control();