You Should Use Pseudo Code- Game Dev Series 05

If you are new to programming as me, you should learn and use pseudo code.

Previous: Play with Variables

During coding the script, it might get jammed with function sometimes.
To prevent this situation, you can use pseudo code to help you figure out the process are dealing with.

Pseudo code is using your language (mostly English) to write down the process. Anything you want to do with the script, write it down in your normal language. Mostly, pseudo code used for if-statement.

Usually use comments as pseudo code

As an example, here is what I wrote down for creating a script for player movement,

With these description, I can start to convert it into code.

And this is the result,

Using pseudo code could make you run the process inside your head before coding. You could have more time to understand the calculation, to sort the process order, or to learn something new for your script.
You don’t even have to truly understand programming language to start writing your own code!

--

--

--

A passionate gamer whose goal is to work in video game development.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Introduction to Programming 1: Background

The need for domain experts

From Prototype to Work of Art- Game Dev Series 13

Host Your Game on the Web- Game Dev Series 30

The last day of the last sprint

Invarch Weekly Wednesday

Reflection 9: Design Computing

Zero-to-Hero “self-managed” Wordpress setup in 2022 (1 of 2)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
S.J. Jason Liu

S.J. Jason Liu

A passionate gamer whose goal is to work in video game development.

More from Medium

Character Animations in Timeline

Setting Up the New Unity Input System

Spawning Objects in Unity Without the Clutter

Creating A Scene Template In Unity 2020.2 And Above