Wiki

Clone wiki

Core / kidstage

We just came from Something New so now we have this:

-- Use this function to perform your initial setup
function setup()
    print("Hello World!")
end

-- This function gets called once every frame
function draw()
    -- This sets the background color to black
    background(0, 0, 0)
    -- Do your drawing here
end

Now let us add a picture...

-- This function gets called once every frame
function draw()
    -- This sets the background color to black
    background(0, 0, 0)
    -- Do your drawing here
sprite("SpaceCute:Background")
end

Do not take out the first setup bit.

I just did not show it this time.

When you play this, it will add a picture.

But, it will not look quite right.

So add this part to it:

sprite("SpaceCute:Background",374,374)

Now try it.

It should fill the whole screen except for the tippy top.

We can now Introduce Spritey

Updated