Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var font1, font2, font3, font4, font5 : int
- var x, y, button, btnNumber, btnUpDown, buttonnumber, buttonupdown, buttons : int
- var winID : int
- var slimechance, getoutchance : int
- var ch : string (1)
- winID := Window.Open ("graphics:1550;750")
- % process DoMusic
- % loop
- % Music.PlayFile ("traveller.mp3")
- % end loop
- % end DoMusic
- % fork DoMusic
- %Fonts
- font1 := Font.New ("forte:20")
- assert font1 > 0
- font2 := Font.New ("sans serif:30:bold")
- assert font2 > 0
- font3 := Font.New ("forte:120:underline,italic")
- assert font3 > 0
- font4 := Font.New ("forte:60:underline")
- assert font4 > 0
- font5 := Font.New ("Impact:40")
- assert font5 > 0
- colourback (11)
- cls
- %Loading Screen
- Font.Draw ("MA", 670, 375, font3, 12)
- delay (500)
- cls
- Font.Draw ("KEN", 660, 375, font3, 12)
- delay (500)
- cls
- Font.Draw ("KEPLAR", 570, 375, font3, 12)
- delay (700)
- cls
- colourback (11)
- cls
- %Drawbox behind menu selections
- drawfillbox (30, 80, 195, 145, 10)
- drawfillbox (330, 80, 495, 145, 68)
- drawfillbox (630, 80, 795, 145, 43)
- drawfillbox (930, 80, 1095, 145, 68)
- drawfillbox (1230, 80, 1395, 145, 10)
- drawbox (25, 75, 200, 150, 12)
- drawbox (325, 75, 500, 150, 12)
- drawbox (625, 75, 800, 150, 12)
- drawbox (925, 75, 1100, 150, 12)
- drawbox (1225, 75, 1400, 150, 12)
- %Menu selection options
- Font.Draw ("PLAY", 75, 100, font1, red)
- Font.Draw ("SETTINGS", 350, 100, font1, red)
- Font.Draw ("LOBBY", 650, 100, font1, red)
- Font.Draw ("ABOUT", 965, 100, font1, red)
- Font.Draw ("QUIT", 1275, 100, font1, red)
- Font.Draw ("Ma-ken Keplar", 500, 500, font4, 12)
- %Main Program
- loop
- %Mouse
- mousewhere (x, y, button)
- locate (1, 1)
- randint (slimechance, 1, 1)
- randint (getoutchance, 1, 10)
- %This is the Play Button
- if x >= 30 and x <= 195 and y >= 80 and y <= 145 and button = 1 then
- cls
- View.Update
- drawfillbox (30, 80, 195, 145, 10)
- drawfillbox (330, 80, 495, 145, 68)
- drawfillbox (630, 80, 795, 145, 43)
- drawfillbox (930, 80, 1095, 145, 68)
- drawfillbox (1230, 80, 1395, 145, 10)
- drawbox (25, 75, 200, 150, 12)
- drawbox (325, 75, 500, 150, 12)
- drawbox (625, 75, 800, 150, 12)
- drawbox (925, 75, 1100, 150, 12)
- drawbox (1225, 75, 1400, 150, 12)
- Font.Draw ("PLAY", 75, 100, font1, red)
- Font.Draw ("SETTINGS", 350, 100, font1, red)
- Font.Draw ("LOBBY", 650, 100, font1, red)
- Font.Draw ("ABOUT", 965, 100, font1, red)
- Font.Draw ("QUIT", 1275, 100, font1, red)
- Font.Draw ("Long long ago, there lived a Man that could slay all Demons,", 120, 600, font5, blue)
- Font.Draw ("Mythical Creatures, Dragons, but there was one Man/Women", 100, 500, font5, blue)
- Font.Draw ("could not slay.", 600, 400, font5, blue)
- delay (6000)
- cls
- Font.Draw ("That Man/Women is you!", 530, 600, font5, blue)
- delay (2000)
- cls
- drawfillbox (450, 500, 560, 435, blue)
- drawfillbox (1000, 500, 1100, 435, red)
- drawfillbox (30, 80, 195, 145, 10)
- drawfillbox (330, 80, 495, 145, 68)
- drawfillbox (630, 80, 795, 145, 43)
- drawfillbox (930, 80, 1095, 145, 68)
- drawfillbox (1230, 80, 1395, 145, 10)
- drawbox (25, 75, 200, 150, 12)
- drawbox (325, 75, 500, 150, 12)
- drawbox (625, 75, 800, 150, 12)
- drawbox (925, 75, 1100, 150, 12)
- drawbox (1225, 75, 1400, 150, 12)
- Font.Draw ("PLAY", 75, 100, font1, red)
- Font.Draw ("SETTINGS", 350, 100, font1, red)
- Font.Draw ("LOBBY", 650, 100, font1, red)
- Font.Draw ("ABOUT", 965, 100, font1, red)
- Font.Draw ("QUIT", 1275, 100, font1, red)
- Font.Draw ("Press 'b' if you are a MAN or 'g' if you are a WOMEN", 350, 700, font2, red)
- getch (ch)
- if ch = "g" then
- Font.Draw ("You are a WOMEN!", 720, 600, font5, red)
- delay (2000)
- cls
- Font.Draw ("Heyo Female Traveller! my names David Elrious Vinchen Ischen Locken ", 200, 500, font2, 43)
- Font.Draw ("you can call me David, I need the Slime", 200, 400, font2, 43)
- Font.Draw ("they are in Madouls Forest can you get it for me?", 200, 300, font2, 43)
- Font.Draw ("Press 'y' to accept the quest or Press 'n' to decline", 200, 200, font2, 43)
- elsif ch = "b" then
- Font.Draw ("You are a MAN!", 450, 600, font5, blue)
- delay (2000)
- cls
- Font.Draw ("Heyo Male Traveller! my names David Elrious Vinchen Ischen Locken ", 200, 500, font2, 43)
- Font.Draw ("you can call me David, I need the Slime", 200, 400, font2, 43)
- Font.Draw ("they are in Madouls Forest can you get it for me?", 200, 300, font2, 43)
- Font.Draw ("Press 'y' to accept the quest or Press 'n' to decline", 200, 200, font2, 43)
- end if
- getch (ch)
- if ch = "y" then
- cls
- delay (200)
- Font.Draw ("Loading", 200, 600, font2, 43)
- delay (200)
- Font.Draw ("Loading.", 200, 600, font2, 43)
- delay (200)
- Font.Draw ("Loading..", 200, 600, font2, 43)
- delay (200)
- Font.Draw ("Loading...", 200, 600, font2, 43)
- cls
- elsif ch = "n" then
- Window.Close (winID)
- end if
- Font.Draw ("A Slime appears in front of you", 200, 600, font2, 43)
- Font.Draw ("Press 'g' to fight or 'f' to flee from the battle", 200, 500, font2, 43)
- getch (ch)
- if ch = "g" and slimechance = 1 then
- Font.Draw ("You won this battle and got a piece of ... Slime?", 200, 400, font2, 43)
- delay (3000)
- cls
- elsif ch = "f" then
- Font.Draw ("Traveller, you flee'd... from a Slime think about it...", 200, 300, font2, 43)
- delay (5000)
- Window.Close (winID)
- end if
- Font.Draw ("Traveller, Thank you for bringing me this useless slime", 200, 600, font2, 43)
- Font.Draw ("bought me a little more time to capture you", 200, 500, font2, 43)
- Font.Draw ("You are being sucked into David's miniture dungeon", 200, 400, font2, 43)
- Font.Draw ("You have a 2/10 chance of getting out will you take this chance?", 200, 300, font2, 43)
- Font.Draw ("Press 'f' to try and flee from David Press 'g' to give in", 200, 200, font2, 43)
- getch (ch)
- if ch = "f" and getoutchance >= 8 then
- cls
- Font.Draw ("You successfully got out of this 'sucky' situation", 200, 300, font2, 43)
- elsif ch = "f" and getoutchance <= 8 then
- colourback (black)
- cls
- Font.Draw ("You died.", 300, 400, font3, white)
- delay (3000)
- cls
- Font.Draw ("Game Over", 300, 400, font3, white)
- delay (3000)
- Window.Close (winID)
- elsif ch = "g" then
- delay (2000)
- colourback (black)
- cls
- Font.Draw ("All you see is black, you are now one of David's", 200, 400, font2, white)
- Font.Draw ("or D.E.V.I.L's power source", 200, 300, font2, 43)
- delay (3000)
- cls
- Font.Draw ("Game Over", 300, 400, font3, white)
- delay (3000)
- Window.Close (winID)
- end if
- drawfillbox (30, 80, 195, 145, 10)
- drawfillbox (330, 80, 495, 145, 68)
- drawfillbox (630, 80, 795, 145, 43)
- drawfillbox (930, 80, 1095, 145, 68)
- drawfillbox (1230, 80, 1395, 145, 10)
- drawbox (25, 75, 200, 150, 12)
- drawbox (325, 75, 500, 150, 12)
- drawbox (625, 75, 800, 150, 12)
- drawbox (925, 75, 1100, 150, 12)
- drawbox (1225, 75, 1400, 150, 12)
- Font.Draw ("PLAY", 75, 100, font1, red)
- Font.Draw ("SETTINGS", 350, 100, font1, red)
- Font.Draw ("LOBBY", 650, 100, font1, red)
- Font.Draw ("ABOUT", 965, 100, font1, red)
- Font.Draw ("QUIT", 1275, 100, font1, red)
- end if
- %This is the Settings Button
- if x >= 330 and x <= 495 and y >= 80 and y <= 145 and button = 1 then
- cls
- View.Update
- Font.Draw ("Graphics <| 1920 x 1080 |>", 100, 600, font5, red)
- Font.Draw ("Brightness <| 50 |>", 100, 500, font5, red)
- Font.Draw ("Motion Blur <| ON |>", 100, 400, font5, red)
- Font.Draw ("Quality <| Ultra |>", 100, 300, font5, red)
- Font.Draw ("VSync <| OFF |>", 100, 200, font5, red)
- Font.Draw ("Shadows <| Ultra |>", 1000, 600, font5, red)
- drawfillbox (30, 80, 195, 145, 10)
- drawfillbox (330, 80, 495, 145, 68)
- drawfillbox (630, 80, 795, 145, 43)
- drawfillbox (930, 80, 1095, 145, 68)
- drawfillbox (1230, 80, 1395, 145, 10)
- drawbox (25, 75, 200, 150, 12)
- drawbox (325, 75, 500, 150, 12)
- drawbox (625, 75, 800, 150, 12)
- drawbox (925, 75, 1100, 150, 12)
- drawbox (1225, 75, 1400, 150, 12)
- Font.Draw ("PLAY", 75, 100, font1, red)
- Font.Draw ("SETTINGS", 350, 100, font1, red)
- Font.Draw ("LOBBY", 650, 100, font1, red)
- Font.Draw ("ABOUT", 965, 100, font1, red)
- Font.Draw ("QUIT", 1275, 100, font1, red)
- end if
- %This is the Lobby/Main Menu Button
- if x >= 630 and x <= 795 and y >= 80 and y <= 145 and button = 1 then
- cls
- View.Update
- drawfillbox (30, 80, 195, 145, 10)
- drawfillbox (330, 80, 495, 145, 68)
- drawfillbox (630, 80, 795, 145, 43)
- drawfillbox (930, 80, 1095, 145, 68)
- drawfillbox (1230, 80, 1395, 145, 10)
- drawbox (25, 75, 200, 150, 12)
- drawbox (325, 75, 500, 150, 12)
- drawbox (625, 75, 800, 150, 12)
- drawbox (925, 75, 1100, 150, 12)
- drawbox (1225, 75, 1400, 150, 12)
- Font.Draw ("PLAY", 75, 100, font1, red)
- Font.Draw ("SETTINGS", 350, 100, font1, red)
- Font.Draw ("LOBBY", 650, 100, font1, red)
- Font.Draw ("ABOUT", 965, 100, font1, red)
- Font.Draw ("QUIT", 1275, 100, font1, red)
- Font.Draw ("Ma-ken Keplar", 500, 500, font4, 12)
- end if
- %This is the About Button
- if x >= 930 and x <= 1095 and y >= 80 and y <= 145 and button = 1 then
- cls
- View.Update
- drawfillbox (30, 80, 195, 145, 10)
- drawfillbox (330, 80, 495, 145, 68)
- drawfillbox (630, 80, 795, 145, 43)
- drawfillbox (930, 80, 1095, 145, 68)
- drawfillbox (1230, 80, 1395, 145, 10)
- drawbox (25, 75, 200, 150, 12)
- drawbox (325, 75, 500, 150, 12)
- drawbox (625, 75, 800, 150, 12)
- drawbox (925, 75, 1100, 150, 12)
- drawbox (1225, 75, 1400, 150, 12)
- Font.Draw ("PLAY", 75, 100, font1, red)
- Font.Draw ("SETTINGS", 350, 100, font1, red)
- Font.Draw ("LOBBY", 650, 100, font1, red)
- Font.Draw ("ABOUT", 965, 100, font1, red)
- Font.Draw ("QUIT", 1275, 100, font1, red)
- Font.Draw ("Well, I see you've come to seek knowledge of this 'Game'", 200, 600, font2, red)
- end if
- %This is the Quit Button
- if x >= 1230 and x <= 1395 and y >= 80 and y <= 145 and button = 1 then
- Window.Close (winID)
- end if
- end loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement