Explorers – Writing Commands to move sprites

Hi everyone,

We had a great crowd for our first session in our Explorers group. A big welcome to all our new Ninja’s and of course a special welcome back to our younger Ninja’s from last year, who are still with us.

Thank you all for coming and for your patience while we got everyone sorted out with downloading Scratch 2.

We started today with our first game, as well as learning how to write commands to move our sprites, we took a brief look at the interface for Scratch 2.

sprites

We also took a first look at some fundamental concepts that we will be using throughout the year. Today we looked at the X and Y axis as well as the number of degrees in a circle.

axixdegrees

 

 

 

 

 

 

Here are the presentation slides from the day, in PDF format: cda-s6-week_02-firstgame.pdf

I hope you all enjoyed today and hope to see you all again over the next couple of weeks!

 

Martha

Minecraft Modding Taster Session – Week 1

Slide1

This season at CoderDojo Athenry, the advanced groups are all starting with taster sessions of the various topics we will cover.

In Week 1, the topic we are covering is Minecraft Modding using JavaScript.

Here are the notes:

  1. Getting Started with ScriptCraft and JavaScript
  2. How to Connect to Each Other’s Servers
  3. Creating our First ScriptCraft Mods

Coming up next week: in introduction to Raspberry Pi and Electronics

Scratch Beginners – Week 1- Writing Commands to move sprites

Hello everyone,

We had a great crowd for our first session today in Scratch beginners. A big welcome to all our new Ninja’s and of course a special welcome back to our younger Ninja’s from last year, who are still with us.I forgot to take some pictures of the big crowd but we had up on 100 Ninja’s signed in to our Scratch Beginners session alone today.

Thank you all for coming and for your patience while we got everyone sorted out with downloading Scratch 2.

We started today with our first game, as well as learning how to write commands to move our sprites, we took a brief look at the interface for Scratch 2.

sprites

We also took a first look at some fundamental concepts that we will be using throughout the year. Today we looked at the X and Y axis as well as the number of degrees in a circle.

axixdegrees

 

 

 

 

 

 

Here are the presentation slides from the day, in PDF format: CDA-S5-Week_01-FirstGame.pdf

I hope you all enjoyed today and hope to see you all again over the next couple of weeks!

 

Martha

Week 1 2015 – Scratch Beginners

Hello everyone and a very Happy New Year to you all!

happynewyear

Thank you all for coming yesterday. To ease ourselves back in we worked on some code for storytelling/conversations. This can add another dimension to any game. It can set the scene or can help with interaction between characters. We used speech bubbles yesterday but you can just as easily record voices instead. It’s all about the timings, you need to get those correct so that each character gets to say their piece.

Storiestelling

Here are the notes from this weeks session in PDF: CDA-S4-Challenge08-Storiestelling.PDF

Next week we are going to take a look at the graphics package PAINT.net. It would be very helpful if most people had it downloaded and installed before next week. The website is http://www.getpaint.net.

Here is a link to download it Here

See you all next week!

 

Week 1 – Scratch Beginners- First Game

It was great to see so many of you there yesterday! Welcome back to anyone who was here last year and a big welcome to all our new Ninjas.

We were able to get down to work very quickly yesterday and that was all down to our mentors who got everyone up and running. Thank you, Neil, Julia, Ciara F, Dermot and welcome to our newest member Ciara D and thank you for giving your time.

One of the first things we did yesterday was to go through the Scratch interface and familiarise ourselves with the Menu

sprites

menus

Our first game had two sprites, one which moved by using the arrow keys and one which moved randomly. Now we could have taken the easy option here with this code but instead we looked at the idea of using the X and Y axis and degrees and rotation.

firstgame

As I said yesterday, these are hard concepts for the younger Ninjas to understand at first, but we will be using them week in and week out and they will soon grasp it.

Here are the notes from yesterdays session in PDF CDA-S4-Challenge01-FirstGame.pdf

Next week we will be building on this game and then the Ninjas will build their own game using the code we have learnt so far.

Looking forward to seeing you all back next week!

Python Games – Week 1: Our First Game

We covered a lot of ground today in the Python Games stream . We looked at variables including strings, math operators, inputs and outputs, while loops and if statements. The code from our number guessing game along with some of the code snippets from today are available here.
Ninjas can read the first few chapters of Invent Your Own Computer Games with Python as they deal with the same concepts.
Next week we will run through what we have covered so far, do more work on improving our number guessing game and if we have time, start working on a text based adventure game. Here are my slides fron today’s session python2014_session1.

ModderDojo Topic 1: Getting Started with ScriptCraft and JavaScript

Slide1Welcome to ModderDojo Athenry!

(Notes updated September 2015. Previously used the CraftBukkit server, now using Canarymod.)

This stream is aimed at older & more experienced ninjas, mainly in secondary school, who:

  • Know how to program in some language (e.g. a blue belt in Scratch)
  • Already use the PC edition of Minecraft
  • Know how to edit file and know your way around your computer’s filesystem
  • Ideally have already installed a mod yourself

Plan for today:

  1. Install a Canarymod server (a Minecraft server that is designed to be better to extend than a standard Minecraft server)
  2. Install ScrptCraft, a Mod for Minecraft (built with Canarymod) that allows you to write programs to build objects in Minecraft
  3. Try out some ScriptCraft commands
  4. Write our first mod or two in ScriptCraft

In future weeks, we’ll figure out more about the JavaScript language, which is a popular programming language that is often used in web programming.

Step 0: Prepare

Before you start, you’ll need a programmer’s editor and a zip program. I recommend:

You’ll also need to run Minecraft and the server on your own laptop or pair up with somebody.

Steps 1 and 2: Install Canarymod Server and ScriptCraft

Instructions here: https://github.com/walterhiggins/ScriptCraft/blob/master/README.md

I’ll have files pre-downloaded on a USB flash drive to save time.

We’ll edit the properties file to specify a flat world, creative mode, and give the world a name.

Either follow the instructions linked above to install everything from scratch, or these instructions ot use my pre-=built server:

  1. Download the Canarymod/ScriptCraft server (a single zip file) here:
    https://www.dropbox.com/s/d1af5njm7t732n0/ScriptCraft-Sep2015.zip?dl=0
  2. Create a folder, e.g. C:\ScriptCraft
  3. Move the downloaded zip file into the folder and unzip it
  4. Run canarymod.jar to start it
  5. If Java is not installed, you will need to download it from http://www.java.com

You should then be ready to try out ScriptCraft.

Step 3: Try out ScriptCraft

Run Canarymod (with ScriptCraft already installed).

Then start Minecraft. Important: you will have to run the Minecraft version that matches your version of Bukkit (e.g. 1.8.8)

Choose to directly connect to a server and enter localhost – if you’re connecting to a friend’s machine, you’ll need to connect to their IP address.

To run ScriptCraft commands, you have to be an op. In Canarymod window, type op <username> to op yourself.

In Minecraft, type /js echo(“hello world”) and check that it displays the message: if so, you have it installed correctly.

Next Steps …

Python Beginners-Week 1

We had a slow start to the Python session due to Wi-Fi and installation issues. However once we got moving we managed to cover variables including strings, math operators and inputs and outputs.
Ninjas are encouraged to read the first three chapters of Invent Your Own Computer Games with Python by Al Sweigart, which is available at http://inventwithpython.com/chapters/ .
Next week we will be looking at loops and decisions in a number guessing game and comparing it to a similar scratch program.
guess

Here are my slides from Week-1
session1slides

Scratch Beginners – Week 1- First Game “Jaws”

We had a great crowd for our first session today in Scratch beginners. Thank you all for coming and for your patience while we got everyone sorted out with downloading Scratch 2.

We started today with our first game”Jaws”, as well as learning how to write commands to move our sprites, we took a brief look at the interface for Scratch 2.

Jaws

We also took a first look at some fundamental concepts that we will be using throughout the year. Today we looked at the X and Y axis as well as the number of degrees in a circle.

axixdegrees

 

 

 

 

 

 

Here are the presentation slides from the day, in PDF format: CDA-S3-Challenge01-FirstGame-Part1.pdf

I hope you all enjoyed today and hope to see you all again over the next couple of weeks!

Scratch Advanced – Week 1 – Calculator.

Hi all and welcome back to what we hope will be an exciting year in Coder Dojo Athenry.

We will be using Scratch 2 this year. So the first thing that we need to do is install it.

There are two Applications that you need to install:

1. AdobeAir

2. Scratch2

I will have all the Versions that I can find on USB, which should cover both Windows and Mac. I have installed the Windows version, so I know that one works. I won’t have tested the Mac version though.

Scratch2 introduces the idea of making your own Blocks of code that you can then use in your programs. So for the first week we are going to try these out and see how they can help us write Code once but use it many times.

And for that we need a project to work on – A Calculator.

  • We will learn about Functions (Code Blocks in Scratch2)
  • We will learn about passing information into Functions

We are going to design and build a fully functioning Calculator that can Add, Subtract, Multiply and Divide. If you get really adventurous you can add some other functions as well – percentages maybe?

Like you I haven’t written it yet, so it going to be a bit scary tomorrow as we have to make it all up as we go along, but hey, you’re the advanced crowd, and should be able to handle that!

Once we have a fully working version I will update this blog with the full details of how and why we did what we did.

If we can get anything like the following picture, I think we are definitely Advanced…

Calculator

Everything that you see on this calculator is perfectly possible in Scratch2, we will start with the four basic options of Addition, Subtraction, Multiplication and Division.