Intro to programming logic

Hello everyone! How’s your game coming along? This week was all about game programming; let’s dive in!

Past incubee’s takeaways – some advice

We started the session with a look on the incubator’s overall experience. Everyone’s project is starting to take form, and it’s a great time to think about your goals for this program. Our very own coordinators Brooke and Katherine took a look back at their experience in the incubator, respectively PGI6 and PGI7.

Brooke broke it down into 6 lessons that we hope will help you make the best of this program:

  1. “Progress not perfection” — Marie Forleo
    Learn from every mistake. That’s progress.
  2. Keep a curious mind. This is an 8-week adventure. If there weren’t challenges, it wouldn’t feel so rewarding by the end.
  3. Have fun! This is an opportunity to make something for yourself, exactly how you want it.
  4. Be comfortable reaching out to mentors. I even went a step further to ask a mentor if we could meet one on one outside of Saturdays and they were kind enough to say yes. (That’s totally up to the mentors to decide, but keep in mind this is how they participate in this program.)
  5. Share your work in progress on Slack. I hardly got to see what any of my group members were making and I think it would have motivated me even more had we shared their process, experience and awkward stages.
  6. My main goal was not to make the most beautiful art, but to make a playable game based on my idea. I viewed this as an experiment, a creative challenge to see how many obstacles I could overcome. For your incubator, identify what’s important for you and set your own goals.

Introduction to programming

During every incubator, many participants are scared by programming. But that’s also when projects start coming alive! Trust yourself and jump in, programming is within reach to anyone that puts in the effort. All you need is some logic like we all use every day and an acces to Google! No, for real, even professional programmers use Google to script.

What is programming?

Let’s start with the basics: what is programming? Simply put, programming is the creation of instructions we give to a computer so it executes tasks, in our case, a video game. It is very similar to writing a recipe for cooking or baking, but the instructions are given to a computer instead of a person. The computer will follow the steps exactly, so you have to be very precise. Look at the following video to see what we mean.

STATEMENTS AND FUNCTIONS

Much like in spoken languages, programming languages use statements, or complete ideas that express an action. For example, “I want tea.” or “It is raining.” We could change the words to alter the meaning, for example “I want a unicorn.” But we couldn’t say “I want raining.” That’s because there exists a series of rules that govern the language, or a syntax. Programming works the same way. Here’s a short video that will help you get started.

Check out the rest of their video series on Computer Science for a breakdown of the rules that govern programming logic.

CONDITIONS

Conditional statements are some of the most important in any programming language. Being able to set conditional blocks of code is a fundamental principle. Conditions determine:

  • When and where actions are executed
  • Who or what if affected by actions
  • At what rate actions happen

LOOPS

“Loops in programming are ways of repeating actions.” The following video goes through three kinds of loops: FOR loops, WHILE loops and DO-WHILE loops. Note that, although the vidéo was made for the engine Unity, you can use loops and their logic with the engine of your choice.

Engine workshop: Unity

This week, we’ve been very lucky to have two great engine workshops. The first one with Julia Perdigueiro on Unity.

Engine workshop: Construct

Our second workshop covered the engine Construct with Eleanor Jacques-Morel.


HOMEWORK

  • Choose the engine you want to use to make your game.
  • Integrate at least one testable feature in your project.

Next week, we’ll talk about art.

See you then and have fun making your game!

Posted in Follow Along, News, Pixelles Game Incubator 8
About Pixelles
Pixelles is a non-profit initiative committed to helping more people make and change games. We're based in Montreal, and have already succeeded in building a supportive community of game creators, both hobbyist and professional.

E-mail: info@pixelles.ca
Twitter: @pixellesmtl
Facebook: Pixelles Group
Newsletter
* = required field
Make a Donation

All donations go directly to funding our programs, events, and community. ♥ Your support is greatly appreciated!