It looks like you're new here. If you want to get involved, click one of these buttons!
-- Tutorial #1
--
-- Use this function to perform your initial setup
function setup() -- The beginning of a specific "job" that Codea does
print("Hello World!") -- Edit between the ".." to change the text
end -- This ends that "job"
-- This function gets called once every frame
function draw()--This draws all the things that are constantly renewed in the game/Simulation.
-- This sets a dark background color
background(40, 40, 50)-- Sets the background shade
-- This sets the line thickness
strokeWidth(5) -- if you have circles and have hasStroke toggled to true, this sets the width of the stroke
-- Do your drawing here
pushStyle()-- adds current copy to "stack" of drawn images
fill(180,10,30)-- sets the circles color
ellipse(300,500,177,168)--Sets the sizeof the Ellipse/Circle
popStyle()-- "Pops" current draw off of the "stack"
end
-- what this draws is Codea's Classic red circle with white outline.
-- This is just a preview of Issue #1, Full Edition Out soon.
Comments
Awesome, seems simple and nicely explained, though pop sytyle and push style werent explained too well. Other than that Excellent
Im explaining them better in the full thing, i just published this to give people a taste of the quality of my tutorials
You might consider an opening paragraph explains what you are about to explain, and a closing one saying what it was you explained.
Good idea @aciolino,
I would give an overview before diving into the detail, ie
I wouldn't put pushstyle and popstyle in the first tutorial at all, just keep it really really simple.
Thanks for the feedback, ill make the changes
I've just posted an example for the topic called Gravity, that might be useful in a tutorial. It demonstrates simple gravity and has a lot of explanations.
I know when I was starting out just a few weeks ago, I didn't understand that
I saw that earlier and it was quite good
I am adding a small introduction of gravity in the full tut
I would keep each tutorial quite small, ie don't try to do too much, and explain as much as possible. Also, I think it works quite well to keep extending the same example from one tutorial to the next, so people can just keep working with a familiar example.
That was my plan, i want it to be like the for kids tutorial
NICE!
awesome, nicely done
Dont forget, you can PM me at codeanoob@icloud.com to give me requests for whats come next
recommendation: lua stuff, loops, tables, maybe math stuff etc?
Just learning it now, shiuld be in the next tut