This week we did a little code to finish our engine and spent the rest of the time working on our own platformer games using it. The code changes we made to last week’s game engine were:
Fixed the platformer so that our character doesn’t get snagged on edges by its whiskers. This we did by learning about hitboxes. The hitbox is just a costume which is rectangular in shape. Before we do our animation, we switch to the hitbox costume and after we switch back to the costume we want.
Fixed the platformer so that we can bump our heads against the platforms without popping up. This was by adding a couple of lines to the “stay above ground block” sprite to move down if we are touching the ground while moving upwards.
The entire code for the platformer is below:
DOWNLOAD THE FULL PLATFORM ENGINE CODE HERE!!!
Example Game: Mentor Dash
Finally Mark showed an example game pulling all the elements in together – “Mentor Dash”. It has the same code as we covered, but adds a bit of animation, level changes, sound and some sillyness.
DOWNLOAD MENTOR DASH HERE
There were lots of brilliant ideas from the ninjas on their own games .. looking forward to seeing what you can do!
This week, in a fun and pretty free-form session, we looked at the Unity standard assets packs to get an appreciations of the wealth of valuable content they contain.
We looked first at the Characters asset pack and tried the first-person, third-person and car controllers.
We also used the Prototyping pack to place some basic house shapes and other basic level layout in our scene.
Finally we played around with some of the effects in the Particles pack to see what was available there.
Next week we will continue with another a session in a similar vein and explore the Environment assets pack and the creation of terrains to model exterior spaces.
All ninjas are encouraged this week to play around with the standard assets, time permitting, and we may look next week at anything you’ve managed to create.
Welcome back everyone and Happy New Year
We had a great day in Coder Dojo on Saturday! We did a huge amount of work developing a maths game in the Explorers group.
- The player picks a level of difficulty and the computer chooses 2 random numbers to add (subtract or multiply- whichever you choose!) together and show the numbers to the player. For this we needed 2 SPRITES and 4 VARIABLES called SCORE, LEVEL, NUMBER1 and NUMBER2 as well as 2 BACKDROPS.
- The player then has to enter an answer to the equation and the computer tells them whether they are wrong or right.
- We repeated the ask/answer questions 5 or 10 times.
We didn’t get to finish our game but we will next before we start learning Paint.net
See can you figure it out for yourself:
We will have a second sprite who reacted positively to correct answers BROADCAST and negatively to wrong answers BROADCAST. You can use whatever sprites you like and change their look whatever way you like.After all the questions were asked we will have the 1st Sprite SAY – Game Over! and BROADCAST Game over so that the backdrop changed and music played. There are two ways to change the backdrop- see below! Can you improve our game??! Can you figure out how to subtract or multiply instead of add? Can you get the computer to add three numbers together or give the user 3 level options like: easy, medium or hard?
The notes for the Maths Game are here: cda-s6-week_1_17-mathsgame.pdf
See you all next week and don’t forget to Download Paint.net at WWW.GETPAINT.NET
This week was quite busy in the Advancers group.
Talk on Coolest Projects
- Oliver gave a talk on the “Coolest projects” and many of us are planning on targetting it this year –
- the deadlines are Mid-March for submission of ideas and Mid-June to attend the event itself!
- Mark and Oliver are going to dedicate the last 30 min of each week to helping people with their projects.
We started a platform Engine and got most of the code done – next week we’ll finish up the engine (not much code, honest!) and see what it would take to make it into games. A Platform Engine is something that’s useful in lots of types of games or interactive adventures – be they mario-style or escape-room style, etc. Once we have this platform engine done, we can easily apply it to other cases. Think about ideas for platformers for your coolest project!
Things we got working:
- Gravity so the player falls
- Stopping when we hit the ground
- Not falling “into” the ground
- Walking along bumpy ground
- Not walking over bumps that are too high (like walls)
Things we didn’t get working (yet):
- “popping” up over walls
- Animating our walk
- Snagging on edges
- Scores, lives, etc.
Next week we can look at the above to see how we might do it, and also what it might take to make it look pretty, add a loading screen, etc.
The full code for today is below (click to view large):
Code from Week 1
We will finish this next week and make a game out of it! You can download the project from here
This week we finished coding our Reaction Game. We then had Reaction Game tournament congratulations to Darragh our winner. I have a few slides from today which are available here reaction and you can also check out our code on Dropbox here.
For the next few weeks we will be building an Attendance/Clock In machine using our Laptops. You will need a version of Python 3, if you don’t have it installed you can download it from here.
See you all next week.
Huge congratulations to members of CoderDojo Athenry who participated in the BT Young Scientists Exhibition 2017 recently!
Alaidh Fox, a junior mentor at CoderDojo Athenry, and her friend Deirdre Hughes entered The Hox Project – Using RFID technology to advance medicine, which supports elderly and visually impaired people to take medication safely, with an audio device that can read labels and a separate wristband containing a patient’s entire medical history.
Roy Flaherty from CoderDojo Athenry, with his friend Gavin McGinley, entered the Arcade Cabinet project that brings new life to classic video games through the use of the Raspberry Pi and an Arduino-driven joystick.
If anybody else was also there, please let us know and send me a photo so we can post it.
These two teams did exceptionally well:
- Roy and Gavin won First Place in the Junior Technology category
- Alaidh and Deirdre won First Place place Intermediate Technology category and also won of the HPRA (Health Products Regulatory Authority) Award
Well done! We are all very proud of you at CoderDojo Athenry!
Happy New Year 2017 from the CoderDojo Athenry mentors!
CoderDojo Athenry resumes on 21 January 2017 (1 week later than usual). We have lots of great tech and coding projects activities planned for 2017.
New members are always welcome, so feel free to bring a friend along. And we have some laptops for loan, so you don’t need to one to join in.
As always, we will be based in Clarin College Athenry from 12:00 to 2pm on Saturdays. More information here: https://coderdojoathenry.org/about/