Creators – Covering the Basics

PhysicsTest

We’ve been busy the last two weeks covering the basics of Unity. Among the topics we’ve touched on are:

  • Customising the Unity layout
  • Explaining what the main Unity windows (Scene, Game, Hierarchy, Project and Inspector) are each for
  • Talked about 3D space and vectors and talked about the difference between local and global axes (child objects)
  • Shown how to place objects in the scene and how to position, rotate and scale them
  • Shown how to “fly” around the scene view
  • Explained how the physics engine works (Physics clock monitoring and moving rigidbodies and tracking collisions and other interactions)
  • Built a simple physics-based scene which had a ball fall, hit a ramp and roll into a bunch of stacked block
  • Wrote a script to have the camera follow the ball as it moves

 

Additionally Mike kindly filled in and talked about the basics of object oriented programming, classes and class diagrams. There is a post from last year that covers this well for those who’d like to read it.

Additionally, the basics of the C# language that we discussed are covered in both that post which we have already linked to above and another which can be found here. The topics we touched on were:

  • Curly braces as “containers” and the requirement that they occur in pairs.
  • How semicolons (;) mark the end of statements
  • Using directives and namespaces.
  • A basic class declaration
  • Properties, both public and private
  • Methods, both public and private
  • How Unity automatically calls certain methods at certain times, and some specific examples of this:
    • Start() called when we start the game
    • Update() called every time the scene is drawn

 

The up-to-date project file can be found here. Please note it will require Unity 4.5.1 or later.

ModderDojo Topic 7: Planning and Building a Complex Structure Mod in Minecraft

PyrimidInside

This topic continues from ModderDojo Topic 6: JavaScript Operators and ScriptCraftJS Drone Functions.

Sharing a Server:

In previous weeks before we stopped for Christmas, some people struggled to make progress through no fault of their own: they were hampered by CanaryMod crashing a lot on some people’s computers.

To work around this, everyone can connect to my computer as the Minecraft server, and I will also create a shared folder on the computer so you can drop your mods into it.

Please review these notes from several weeks ago: Topic 2: Connecting to Each Other’s Servers.

This Week’s Challenge:

This week (and for the next week or two), your challenge is build a substantial mod in ScriptCraft that, when you run it, will create an impressive-looking structure!

A key step to success here is planning and design: as I have said before, a  programmer’s most important tools are paper and pencils, for figuring out what you want to create before you write code for it.

You should review the following:

 

Tunnel1

 

ModderDojo Topic 5: Time to Get Constructive!

2013-12-07_12.25.59

This week builds on ModderDojo Topic 4, when we learned a bit about the basics of ScriptCraft and saw how it handles loops, decisions and variables compared to Scratch: https://cdathenry.wordpress.com/2015/11/11/modderdojo-topic-4-moving-from-scratch-to-javascript/

This week, our goal is to build a first structure mod in ScriptCraft. Ideally you should work in pairs. This to achieve this goal will involve:

During the session, I will ask people to load their mods onto my computer, demo them to the group, and explain how their code works. To get things started, at we can take a look at some mods from last year and how they work: https://cdathenry.wordpress.com/2013/11/10/modderdojo-athenry-our-scriptcraftjs-minecraft-mods/

Practical notes:

  • Read the ScriptCraftJS API reference to see what commands you can use for your structures: https://github.com/walterhiggins/ScriptCraft/blob/master/docs/YoungPersonsGuideToProgrammingMinecraft.md#building-stuff-in-minecraft
  • During development and testing, you can end up with lots of incomplete structures that slow down your CanaryMod server. A simple fix is to delete your world:
    • Stop your CanaryMod server
    • Open the CanaryMod folder on your computer: in it you will see a folder called worlds, and inside it one called default, and inside that default_NORMAL.  Delete default_NORMAL and all of its contents.
    • While you are at it, edit your world’s properties for when it is re-created: you can do this by opening canarymod – config – worlds – default – default_NORMAL.cfg. To make your new world superflat, write world-type=FLAT and you could also change other properties such as spawn-monsters=false
    • Restart CanaryMod to create a new, empty world
    • Re-run your scripts to recreate structures that you want

Week 3 – Scratch Beginners – Ghostcatcher

Hello Everyone

Great to see so many of you there on Saturday, 85 Ninjas!. Hope you had a good time. And a special welcome to our new Ninjas.

This week we created a Ghostcatcher game. We used the paint editor in Scratch for the first time. As I said on Saturday, It makes things easier if you think in shapes.

PACMAN

Using the code we have learned so far, we moved the Ghostcatcher with the mouse and the Ghosts randomly. We also added sounded and score.

PACMAN2

For those of you who would like to add more complexity, I have a couple of ideas at the end of the notes. Give it a go and if you need any help, just ask one of the mentors at the beginning of the next session.

From next week the Scratch Beginners Group will be given by Julie. I won’t be too far away, so you will see me around! We have a new session this year called Unity. It is a games platform and we expect a large number of the kids will take it so I am going to help out in that room with Kieran.

A big THANK YOU to Julie for taking over for me.

Here are this weeks notes in PDF. CDA-S5-Week_03-Ghostcatcher.pdf

Week 3 – Scratch Beginners – Ghostcatcher

Hello Everyone

Hope you are enjoying the Halloween break.

Great to see so many of you there on Saturday, especially since it was a bank holiday weekend.

This week we created a Ghostcatcher game. We used the paint editor in Scratch for the first time. As I said on Saturday, It makes things easier if you think in shapes.

PACMAN

Using the code we have learnt so far, we moved the Ghostcatcher with the mouse and the Ghosts randomly. We also added sounded and score.

PACMAN2

For those of you who would like to add more complexity, I have a couple of ideas at the end of the notes. Give it a go and if you need any help, just ask myself or one of the mentors at the beginning of the next session.

P.S. No session next week, hope you have fun over the Halloween and we will see you back on the 8th.

 

Here are this weeks notes in PDF. CDA-S4-Week_03-Ghostcatcher.pdf

Topic 4: Planning and Building a Complex Structure Mod in Minecraft

PyrimidInside This week we have one main goal: build a substantial mod in ScriptCraft that, when you run it, will create an impressive-looking structure! This will include:

You might find it helpful to work in pairs on designing and coding your mods. During the session, I will ask people to load their mods onto my computer, demo them to the group, and explain how their code works. To get things started, at the top and bottom of this post are pictures of mods created by Ruaidhri and Luke. We will take a look at how they work.

Tunnel1

Practical notes:

  • During development and testing, you can end up with lots of incomplete structures that slow down your CraftBukkit server. A simple fix is to delete your world:
    • Stop your CraftBukkit server
    • Open the CraftBukkit folder on your computer: in it you will see folders called world and possibly world_nether and world_the_end delete them all
    • While you are at it, edit server.properties in the CraftBukkit folder to make your new world superflat, write level-type=flat and you could also change other properties such as spawn-monsters=false
    • Restart your CraftBukkit folder to create a new, empty world
    • Re-run your scripts to recreate structures that you want
  • Read the ScriptCraftJS API reference to see what commands you can use for your structures: https://github.com/walterhiggins/ScriptCraft/blob/master/docs/api.md

Scratch Beginners – Ghostcatcher Game

Hi everyone,

Thanks to everyone that showed up today. Again, a big thank you to Julie for taking the session last week.

This week, we built a new game which we were calling “Ghostcatcher” We used code that we have learnt over the last two weeks and again used variables. We will continue to do this over the next couple of weeks, we will make new games but will continue to go over the basic programming concepts each week.

This was our first time creating our own Sprite rather than using one from the library. The paint editor can be great fun and you should experiment with it, creating lots of new Sprites.

Remember ! think in shapes, like we did with the ghost.

painteditor

A pdf version of the full notes from todays session can be found here: CDA-S3-Challenge03-GhostCatcher.pdf

Try adding your own variables, the code is there for you to look at but why not have a go at it yourself first.

No Coderdojo Athenry next week but hope to see you all back the following Saturday the 27th.

Enjoy the Halloween break!

ghost

 

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.