1 / 7

Candy Run

Candy Run. A Prolog Adventure Game Dustin Fannings LaShonda Huggins Michael Hynson. The Game. The objective of the game is to bring candy home to your little brother, Junior, after school. At the start of the game, the player begins at the school.

konane
Download Presentation

Candy Run

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Candy Run A Prolog Adventure Game Dustin Fannings LaShonda Huggins Michael Hynson

  2. The Game • The objective of the game is to bring candy home to your little brother, Junior, after school. • At the start of the game, the player begins at the school. • Also, the player finds money on the floor at the school. • As the player, you must go to the store and buy some candy, but beware of the neighborhood bully.

  3. Game Layout

  4. Transcript of Candy Run 1 ?- compile('candy run.pl'). % candy run.pl compiled 0.00 sec, 14,632 bytes Yes 2 ?- start. Enter commands using standard Prolog syntax. Available commands are: start. -- to start the game. n. s. e. w. -- to go in that direction. grab(Object). -- to grab an object. give(Object). -- to give an object. use(Object). -- to use an object. spend(money). -- to spend the money. fight. -- to fight an enemy. shoot(slingshot). -- to shoot the slingshot. lookaround. -- to look around. instructions. -- to see this message again. halt. -- to end the game. The day is finally over at Lakeside Elementary. It is time to go home. BUT WAIT! Don't forget about Junior. Your lil brother bitched you into buying him some candy before school. Go to the store and buy him something. The STREET is to the south. Your YARD is to the north. I think he likes Skittles Objects present: money Yes 3 ?- grab(money). OK.

  5. Transcript of Candy Run cont’d 4 ?- n. Nah homie! Don't step into the yard without Junior's candy! Go to the Corner Store! Head south past the school and make that left. Watch out for the neighborhood bully. Nah homie... wrong way. Yes 5 ?- s. You're in the street. The STORE is to the EAST. LAKESIDE is NORTH. Yes 6 ?- s. Nah homie... wrong way. Yes 7 ?- w. Nah homie... wrong way. Yes 8 ?- e. Amongst the plastic wrapped porno mags and cheap toys, you see all types of candy. Get Junior's candy and be out. The STREET is to the WEST. Do not forget about the bully. On the way out you shoot the storekeeper a bird. Objects present: candy Objects present: slingshot Yes

  6. Transcript of Candy Run cont’d 9 ?- spend(money). You take a slingshot and candy to the register to check out, you pull your money from your pocket and hand it to the clerk. You are ready to walk out with your candy and slingshot. Yes 10 ?- w. You're in the street, and the bully sees you. Man up! You can't go around him, so go through him Remember that the school is NORTH and the store is east Yes 11 ?- e. Remembering you from before, the storekeeper threatens to pull his belt off. Run... Yes 12 ?- s. Nah homie... wrong way. Yes 13 ?- e. Nah homie... wrong way. Yes 14 ?- w. You're in the street, and the bully sees you. Man up! You can't go around him, so go through him Remember that the school is NORTH and the store is east

  7. Transcript of Candy Run cont’d 15 ?- fight. Strolling with a gangsta lean, you roll on a bully, tool in hand, and you start letting off shots. You hit him with a shot to the head, and sneak a couple of punches to the gut. Before he gets up, you run away... Yes 16 ?- n. You are back at Lakeside. You're almost home. To the south is a street.To the north is the yard. Yes 17 ?- n. You are your momma's the yard. Home is to the east. She's probably home by now so don't try to attack Junior with the slingshot. Yes 19 ?-n. You are back at Lakeside. You're almost home. To the south is a street.To the north is the yard. Yes 20 ?- n. You are your momma's the yard. Home is to the east. She's probably home by now so don't try to attack Junior with the slingshot. Yes 21 ?- e. Congratulations!! You have given Junior the candy and have won the game The game is over. Please enter the "halt." command. Yes

More Related