• Advertisement
Sign in to follow this  

What are the basic types of code used in video game programming (not languages)

This topic is 655 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

(CAUTION: I am somewhat of a beginner at coding, so I may use some terminology that may not be correct).

 

Given that some of the more experienced game developers here are telling me to start creating games instead of just conceptualizing them, I have begun to start learning how to code (considering it is the one of the few activities related to game design that I am still inexperienced with) and I'd have to ask, what are the most important basic types of code used to program video games?

 

I was personally thinking about functions, variables, Booleans, and if/else statements. Thing is I'm unsure if there are any more. That and I'm only partially experienced with JavaScript (though I have heard it is similar to industry-standard languages such as C#).

 

Aside from knowing what types and patterns of code to use, I would like to know how much advanced code must a person know in order to create a particular game (basically something around the size/scale of Flappy Bird), and how easy it is to transition from JavaScript to C#.

 

Anybody willing to share an opinion? (if I was too vague, I could explain more about a certain part. just tell me.)

Share this post


Link to post
Share on other sites
Advertisement
As you'll learn programming, you'll go through all these automatically.

The NIKE slogan has some truth in it :)

Share this post


Link to post
Share on other sites

You will never really stop learning ways of making a game:

some example basics concepts

- arrays are 1 or 0 indexed, but usually you will use 0-indexed arrays (so the first element has index 0 etc..)
- foreach
- fixed time update


more advanced concept

- grid based tile game
- rendering


What I would do is to search for a simple language with a simple tool that allows you to draw images on screen (in example SFML2/ C++), and then try to make a map that shows different terrains types, that would be interesting, satisfying and simple.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement