Python Beginners – Week 3: Functions

This week the Python group looked at Functions, Escape Characters and Boolean Operators. We also started to rewrite the Dragon’s Realm game which we will continue with after the break. Don’t forget to look at chapters 5 and 6 of “Invent Your Own Computer Games with Python” http://inventwithpython.com/chapter5.html . Here are my slides from today- python session3

Beginners Scratch – Challenge 3 – Have Fun With Animation

This week, the lead mentor was Eamonn Hannon, who did a great job.

The challenge this week was to work on animation projects. The basis for this week’s challenge were examples in Scratch Example Animations folder: Playground and Fun with Animation.

Coding concepts that we discussed included:

  1. Animation
  2. Loops
  3. Creativity, planning and drawing

Here are the notes from the day (PDF): CDA-S2-Challenge03-Animation.pdf

If you would like us to send you the PowerPoint slides of my notes, get in touch via twitter or by leaving a comment.

Advanced Scratch – Week 3 – More Crazy Images.

We are going to be in a seperate room this Satruday, next to the main room. This will give us a chance to complete what we started last week and go on to some more Art, using the Stamp Tool.

What we are going to learn this week…

  • Stamping!
  • Random Numbers
  • Truchet Tiling – these are cool…:)
  • Saving Images created in Scratch to Picture files on your Computer.

I have updated the Week 2 page with all Code from my Project to create the Spirals.

Stamping.

This is when you get really angry… Or in Scratch it’s when you copy the Sprite to the Background.

Here is a simple example, using the cat and some spiraling code…

And the same code with a Bat…

And here is the code that makes the pictures above. Can you spot anything that might be better as a variable or a Slider?

Random Numbers.

We are going to use a random number in the Truchet pattern that we are going to draw, this will make the pattern generated different every time.

Truchet Tiling.

From Wikipeadia:

One particular pattern that he studied involved square tiles split by a diagonal line into two triangles, decorated in contrasting colors. By placing these tiles in different orientations with respect to each other, as part of a square tiling, Truchet observed that many different patterns could be formed.”

And here are a couple of samples of what they end up looking like…

Saving Images created in Scratch to Picture files on your Computer.