pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

pastebin private pastebin - collaborative debugging tool What's a private pastebin?

Posted by Mermersk on Sun 24th Jun 02:51
download | new post

  1. --Hangman
  2.  
  3. function love.load()
  4.     love.graphics.setMode(250, 330, false, false, 2)
  5.         love.graphics.setBackgroundColor(189, 183, 107)
  6.         lina = love.graphics.newImage("lina.png")
  7.         bla = love.graphics.newImage("bla.png")
  8.         hilla = love.graphics.newImage("hilla.png")
  9.         lina2 = love.graphics.newImage("lina2.png")
  10.        
  11. end
  12.  
  13.  
  14. stafur = ""
  15. input = ""
  16. function love.keypressed(key) 
  17.     stafur = key
  18. end
  19.  
  20.  
  21. function love.draw()
  22.     love.graphics.draw(lina, 0, 220)
  23.         love.graphics.draw(bla, 0, 225)
  24.     love.graphics.print("Hello, Welcome to a game of Hangman!", 1, 240)
  25.         love.graphics.print("Choose a letter: ", 1, 260)
  26.         love.graphics.print(stafur, 110, 260)
  27.         love.graphics.print("Hint: noun, cluster of humans.", 1, 285)
  28.         love.graphics.draw(hilla, 90, 210)
  29.         love.graphics.draw(hilla, 110, 210)
  30.         love.graphics.draw(hilla, 130, 210)
  31.         love.graphics.draw(hilla, 150, 210)
  32.         love.graphics.draw(lina2, 220, -175)
  33.        
  34.         if stafur == "c"
  35.             then love.graphics.print("C", 90, 195)
  36.         end
  37. end

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Use syntax highlighting

To highlight particular lines, prefix each line with @@


Remember my settings