Hello everybody!
Let's enrich our first code drawing four colored squares.
Let me explain the new keywords used:
- line to draw a line between a point referenced with its coordinates (value in axis x,value in axis y) and an increment/decrement in pixels form this point -step(inc/dec in axis x,inc/dec in axis y) and two parameters separated by comma, the first is the color and the second is optional, if you used it you can put a b that means box or bf that means box filled.
Try changing color values from 0 (black or transparent) to 15 (white) and experiment with the parameters.
This is enough by now, in the next entry we will make great advance learning a change in the structure of the code because the famous game loop.
Contact me for any question, see you!
Go to the next entry
Go to the previous entry
Go to the first entry
Comments
Post a Comment