Discord
Login
Community
DARK THEME

alguien sabe como dibujar maas en el codigo?

si en screen.drawsprite ( "example" )

dibuja el sprite como funciona si dice

screen.drawmap ( "level1" )

o para mostrar un nivel que se deberia escribir?

(si alguien sabe como mostrar mejor el codigo tambien sirve)

init = function()
   demo_sprite = object 
      x = 0
      y = 0
      r = 100
      name = "icon"
      draw = function()
         screen.drawSprite( this.name, this.x + r * sin( system.time() / 1234 ) , this.y + this.r * sin( system.time() / 2345 ))
      end
   end
end

draw = function()
  screen.clear()
  demo_sprite.draw()
end

Thanks

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community