Coding Lessons for Block 2

Coding can be one of the hardest and most intimidating things to learn when you first think about learning game development. But it can be learned one lesson at a time, and it’s just like any other skill – learn it and practice it, and you get better and better at it all the time.

In this block, we start with Virtual Coder to learn the basics and the terms and how they work, from functions and function arguments, to For Loops, to While loops, the basis of a lot of different coding blocks for video games.

After that, we looked at ideas for how to create Cutscenes in SwiftPlaygrounds and solve puzzles as well, to get the practice we need before we went into Codea, a coding and app development program for iPads.

And then we went straight into Codea to learn how to create a Cutscene, by bringing in elements and characters, animating the characters, importing sprites to add text bubbles and animating them, adding sound effects to our scene and then exporting the scene to work on later.

https://www.bitchute.com/video/1oEidu9QITHW/ – Exporting in Codea

This was a small lesson on how to export your coding and work out of Codea. It isn’t that much, because my current computer doesn’t have the capability of working with Xcode, but it gives the basics on how to do that. I may redo this lesson once I get my new computer, because both the new OS on my iPad and the new computer can do what we need.

https://www.bitchute.com/video/tbFyS2WvjF2s/ – Sound Effects in Codea.

While Codea doesn’t have the ability to add sound effects you create, which is why you will want to use Xcode, it does allow you to add theme music and sound effects to your scene in a variety of different ways, so lets look at them.

https://www.bitchute.com/video/Dv5FfgJOPpFL/ – Adding Sprites to Codea.

Codea allows you to import PNGs and other graphics into it, so lets add some dialogue graphics for our Turd Throwing Monkeys into our scene to give it more storytelling elements.

https://www.bitchute.com/video/9TGoKipDA8X8/ – Animating in Codea.

In this lesson, we look at how we code animation in Codea through tweening (a computer calculating movements between two spaces in time) and inputs.

https://www.bitchute.com/video/f6p7iqhdnoSc/ – Welcome to Codea.

This is the first part of the Codea series, where we setup our cutscene and we look at all the elements within Codea which will help us on our way to using Codea as a coding program.

https://www.bitchute.com/video/DpNdlURyDY0A/ – Programming and Puzzle Solving.

Using SwiftPlaygrounds, we look at how to create a good puzzle, so we can create similar puzzles in our video games.

https://www.bitchute.com/video/2NXYkCwPYjsX/ – Programming and Cutscenes.

Using SwiftPlaygrounds, we can look at ways of creating cutscenes, and interactive animations that will entertain our audience.

https://www.bitchute.com/video/p5pvlH1pPGpB/ – Virtual Coder – While Loops

While Loops are loops with a conditional on it – as long as X variable equals Y condition, than do this, else, do something else – so we learn how Virtual Coder handled those puzzle levels to start thinking about how to incorporate that into game development.

https://www.bitchute.com/video/goZVXqDDbL3Y/ – Virtual Coder – For Loops

For Loops are still loops with Conditionals, but the condition is i = number, meaning the number of iterations of those actions will continue until the interactions equals the number – like 4 or 5 iterations.

https://www.bitchute.com/video/PlXfbSNWCNpl/ – Virtual Coder – Functions and Function Arguments

Functions are the basis of programming. Self contained blocks of code that keep on doing something when they are called, so you only need to call one line, while defining the function.

Enjoy guys!

Advertisements

MGGA – Welcome to the ‘Second Semester’ – S2L1

Full Video –

https://www.bitchute.com/video/JCCRzpyUrcHf/

Blender Guru’s Blender Basics video series –

https://www.youtube.com/playlist?list=PLjEaoINr3zgHs8uzT3yqe4iHGfkCmMJ0P

Welcome back to Make Gaming Great Again.

Last ‘semester’ was a bit of an idea, to see if I could start a game development channel on YouTube and BitChute and see if people thought it was valuable. While YouTube certainly has me in some kind of algorithm wilderness, BitChute has over 2000 views and gets more popular every single week I check its stats.

The most important lessons of the first semester is – don’t be afraid of coding, just learn the definitions and practice. Don’t be afraid of art, just use tutorials and get better, then start characters and caricatures from scratch to further your skills.

The whole 10,000 hour rule is all about learning, practicing what you learn, and then trying things and experimenting. If anything, this is the most important thing I think I could have taught anybody in the 24 videos for ‘Semester’ 1 – learn, practice, share and experiment.

This ‘semester’, we will be learning some more advanced things for sure, but it still comes down with learning, practicing, sharing and experimenting.

First, we will learn the principles of animation – 12 things you need to learn to bring your creations to life, be it 2d or 3d animation.

Second, we will learn Blender by creating the solar system. I also recommend you learn Blender Guru’s blender basics tutorial group, because I will teach much of the same stuff he is teaching, but you will be doing something different from what I am doing – he shows you how to make some donuts and a cup on a table, and I’m showing you how to create the Solar System, with the exact same lessons – something called lateral learning.

Third, I will be teaching you coding again through a new coding game that I just learned about. It has 11 levels, each with a more involved coding solution – perfect for practicing and gaining skills.

Thanks for the support and welcome to my ‘second’ semester, making games great again!

Minds – https://www.minds.com/MakeGamesGreatAgain

Gab.ai – https://gab.ai/MakeGamesGA

Twitter – https://mobile.twitter.com/MakeGamesGA

Exclusively Games – https://www.exclusivelygames.com/forum/member/936-makegamesgreatagain

First Semester Playlist – https://www.youtube.com/playlist?list=PLbwCfY8NU5nlDJdA08vpcrysr8m5iq_K-

Coding Videos so far

Introduction to Coding –

https://youtu.be/t8w5YKOtoMQ

Coding is the first scary bottleneck for those who want to design video games. Unless you take time to understand the basics, everything can be so intimidating. But if you change your mind on programming, and see it as a honey do list for a computer, than coding becomes far less scary. You just need to learn how computers are instructed and start taking control over it.

For those who have iPads, feel free to download SwiftPlaygrounds and play around with Coding 1, I use them for all my coding lessons right now.

Swift Playgrounds by Apple

https://itunes.apple.com/ca/app/swift-playgrounds/id908519492?mt=8

Introduction to Functions –

https://youtu.be/xugrFZ_KBzU

Sources

InfoGraphic –

https://www.cs.utah.edu/~germain/PPS/Topics/functions.html

Swift Playgrounds –

https://itunes.apple.com/ca/app/swift-playgrounds/id908519492?mt=8

Functions allow programmers to group lines of code to be called in later parts of code, to help reduce the amount of coding you have to do to accomplish a task. You can also use functions within other functions to eliminate as much coding as possible.

As coders, we want to reduce the amount of work we do, and functions allows us to do that very thing.

Thanks for watching and Making Gaming Great Again!

Introduction to For Loops –

https://youtu.be/rugRRJtdZDw

Description –

Resources –

For Loop definition –

https://www.techopedia.com/definition/19415/for-loop

SwiftPlaygrounds –

https://itunes.apple.com/ca/app/swift-playgrounds/id908519492?mt=8

For Loops are excellent ways to group a bunch of functions that are the exact same together. In video games, these are the NPCs patrolling around, going to point A doing a couple of things and then going to point B in which the do the exact same thing before they go to point C, which then you can reset the to start at the beginning again.

Introduction to Conditionals –

https://youtu.be/4crssMvxpHI

Description –

Resources –

Definition of Conditional Programming –

https://en.m.wikipedia.org/wiki/Conditional_(computer_programming)

SwiftPlaygrounds –

https://itunes.apple.com/ca/app/swift-playgrounds/id908519492?mt=8

Conditional programming can help game developers make their games more difficult, provide missions and quests with reward systems, level up scripting when a character’s experience hits a certain number, and what happens when a character hits another character. It is the backbone of coding a game, so it is essential for aspiring game developers to learn and get really good at conditional coding.

Thanks for making games great again!

Introduction to Logical Operators –

https://youtu.be/zFY_63SjUd4

References –

Logical Operators definition –

https://www.dictionary.com/browse/logical-operator

SwiftPlaygrounds –

https://itunes.apple.com/ca/app/swift-playgrounds/id908519492?mt=8

Logical Operators, defining things if two combined variables are true, or if a variable is untrue, or if a variable equals this or that allows game designers to provide puzzles and unique experiences to their games. Building on the conditional programming that is very important for game programming, because games are all about conditions, this helps ensure unique experiences for gamers.

Introduction to While Loops –

https://youtu.be/uWLKhtvgrPs

While Loops –

https://en.m.wikipedia.org/wiki/While_loop

SwiftPlaygrounds –

https://itunes.apple.com/ca/app/swift-playgrounds/id908519492?mt=8

While loops combines the three topics we had taken previously, the for loop, conditional coding and logical operators. It helps define NPC behaviours in games to animate your world. You can use a while loop to have a shopkeeper in a game stay in their shop until a certain time of day, after which it will go home – so the loop for the shopkeeper would be while the time condition is true, the shopkeeper stays in the shop, else if the time condition is false than the shopkeeper goes home, and then the same loop is created every single day in that loop.

Thanks for watching and making games great again.