AINE: Accelerated Interactive Narrator Engine
  • Download
  • References
  • Games
  • Wiki
  • Facebook Twitter
  • Name

    endGame()

  • Examples

    Room: trapRoom {

    Event: Enter_Room {
    // Rolls a number from 1 to 6, and if the roll is below 3 the game ends with a text and image displayed

    if (rand(1,6) < 3){
    display("You step into the room and hear a line snap!")
    endGame("You have died to a trap.","img_ending3")
    }
    }

    }
  • Description

    endGame() ends the game and prompt the player to load a saved game or start a new game. Anything which should be displayed in relation to the ending should be done so before endGame() is called.

    Additionally endGame() is an alternate form of display() and it can take the same parameters as display(). Parsing an image to this function will cause the image to remain as the background after the game ends, while parsing text or a sequence of text will cause the last displayed text to remain after the game ends. This allows for more interesting and informing ending scenes.

    See the display() reference for more detail on how to parse images and text to this function.
  • Syntax

    • endGame()
    • endGame(text)
    • endGame(text, image)
    • display(text, image, asBackground)
  • Related

    • <Image>

    • display()

    • displayImage()

  • Contact
  • Terms of Use
  • GitHub
  • Drakkashi.com

The copyright of all images rendered by me goes to their respective owners.
© 2008 Daniel Svejstrup Christensen