Advertisement
Guest User

Ghost Script

a guest
Feb 19th, 2016
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. ghost = {
  2.     GraphicsComponent = {
  3.         filename = "ghost.png"
  4.     },
  5.     NpcComponent = {
  6.         phrase = "I'M A SCARY GHOST!!!"
  7.     },
  8.     CollisionComponent = {
  9.         boundingBox = {0, 0, 64, 64},
  10.         collide = function(this, second)
  11.             this:say("Boo!")
  12.         end
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement