0 Members and 1 Guest are viewing this topic.
Does anyone have a copy of this? Tutorial Game - A game created by Peter Kelly which is great for those learning AGI. I tried to download the one of agisci.cjb.net but it's not there
// ****************************************************************************//// Logic 2: Item tutorial room//// ****************************************************************************#include "defines.txt"#define radio o1#define paper o2if (new_room) { load.pic(room_no); draw.pic(room_no); discard.pic(room_no); set.horizon(50); animate.obj(radio); load.view(2); set.view(radio,2); set.loop(radio,0); set.cel(radio,0); set.cel(radio,0); position(radio,43,104); set.priority(radio,11); ignore.objs(radio); stop.cycling(radio); v255 = 2; if (obj.in.room("portable radio",v255)) { draw(radio); } animate.obj(paper); load.view(5); set.view(paper,5); set.loop(paper,0); set.cel(paper,0); position(paper,49,118); set.priority(paper,11); ignore.objs(paper); stop.cycling(paper); draw(paper); // The next 6 lines need only be in the first room of the game if ((prev_room_no == 1 || // just come from intro screen prev_room_no == 0)) { // or just started game position(ego,120,140); status.line.on(); accept.input(); } if (prev_room_no == 3) { position(ego,150,114); } draw(ego); show.pic();}if (said("look")) { print("This is the room for the item tutorial.");}if (said("get","radio")) { v255 = 2; if (obj.in.room("portable radio",v255)) { if (posn(ego,37,111,51,124)) { print("Ok."); erase(radio); get("portable radio"); } else { print("You're not close enough."); } } else { reset(input_parsed); // let logic 90 take care of it }}if (said("look","radio")) { v255 = 2; if (obj.in.room("portable radio",v255)) { print("There is a portable radio sitting on the bench."); } else { reset(input_parsed); // let logic 90 take care of it }}if (said("take","paper")) { v250 = 2; if (obj.in.room("prep. papers",v250)) { if (posn(ego,37,111,51,124)) { print("Sure."); erase(paper); get("prep. papers"); } else { print("You're not close enough."); } } else { reset(input_parsed); // let logic 90 take care of it } }if (said("look","paper")) { v250 = 2; if (obj.in.room("Prep. Papers",v250)) { print("There is the Prep. Papers hung under the bench."); } else { reset(input_parsed); // let logic 90 take care of it }}if (ego_edge_code == left_edge) { // ego touching right edge of screen new.room(3);}return();
SMF 2.0.19 | SMF © 2021, Simple MachinesSimple Audio Video Embedder Page created in 0.048 seconds with 22 queries.