Advertisement
Guest User

Untitled

a guest
Dec 30th, 2013
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. placesquare = function (spot)
  2.  
  3. if spot_availability[spot] >= "0" and spot_availability[spot] <= "4" then
  4. spot[spot] = display.newImageRect( "spotsquare.png",25,25)
  5. elseif spot_availability[spot] == "6" then
  6. spot[spot] = display.newImageRect("nothing_spot.png",25,25)
  7. elseif spot_availability[spot] == "7" then
  8. spot[spot] = display.newImageRect("1_coin_spot_blue.png",25,25)
  9. elseif spot_availability[spot] == "8" then
  10. spot[spot] = display.newImageRect("2_coin_spot_red.png",25,25)
  11. end
  12. return 0
  13. end
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. --if spot_availability[6] >= "0" and spot_availability[6] <= "4" then
  21. -- spot[6] = display.newImageRect( "spotsquare.png",25,25)
  22. --elseif spot_availability[6] == "6" then
  23. -- spot[6] = display.newImageRect("nothing_spot.png",25,25)
  24. --elseif spot_availability[6] == "7" then
  25. -- spot[6] = display.newImageRect("1_coin_spot_blue.png",25,25)
  26. --elseif spot_availability[6] == "8" then
  27. -- spot[6] = display.newImageRect("2_coin_spot_red.png",25,25)
  28. --end
  29. placesquare(spot[6])
  30. spot[6].anchorX=0
  31. spot[6].anchorY=0
  32. spot[6].x=125
  33. spot[6].y=10
  34. spot[6].alpha=0.4
  35. group:insert(spot[6])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement