A pong clone, but with a twist!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 4 година
пре 3 година
пре 4 година
пре 3 година
пре 4 година
12345678910111213141516171819202122
  1. button = Class{}
  2. function button:init(x, y, width, height, color, skipAnim)
  3. self.x = x
  4. self.y = y
  5. self.w = width
  6. self.h = height
  7. self.color = color
  8. self.skipAnim = skipAnim
  9. end
  10. function button:update(dt)
  11. end
  12. function button:render()
  13. love.graphics.setColor(unpack(color))
  14. love.graphics.rectangle("fill", self.x,self.y, self.w, self.h)
  15. love.graphics.setColor(0, 0, 0, 255)
  16. end