Skip to content

u/japtar

In this archive from Nov 2013 to Oct 2023

124
posts
24
comments
77
media
488
score

Top posts

Developing a style for your games

This is something I wrote up after a student asked Lindsay and I on how to get into the gaming industry, which eventually evolved to a conversation about improving the games he made. Ultimately, I said something along the lines of developing a style unique to yourself once you've got a good idea of...

47 points16 comments
Open on Reddit

Top comments

Which programming capabilities are most additive?

To steal a quote from Jeff Atwood, Always. Be. Shipping. If you're primarily a designer, this is less a problem than if you're a programmer, but the idea is that you want your game done and out the door as soon as possible. If you were to ask any non-gamedev related programmers out there, many (I dare to say, most) will tell you stuff like making your software maintainable, well-commented, well architected, and simple are important. And sure, while they'd be right, most of those knowledge tends to get in the way of actually getting the game done.

Here's how I usually program: I do my best to get the game working and demonstrable as fast as possible. Since I found programmers (including myself) to be the worst bottleneck in development, I take as many shortcuts as possible, such as taking freely available code, hacking stuff together, and even doing a lot of copy-pasta if I have to. Once I have the game at a demonstrable level, and convinced that it's worth building on top of, I start working towards making the code more maintainable. This means reducing any code redundancy from copy-pasta to it's own functions/variables, adding comments, creating a more efficient architecture, and so forth.

I found this method works best for several reasons: trying to architect a software (including something as complex as games) as something maintainable from the beginning leads to creating a lot of work that frequently ends up being unused. As the old saying goes, every plan fails in face of an enemy. By doing those designs after the game is "half done", you're now more informed of the criterias actually necessary in practice (instead of in theory). This means that architecting the game to be simpler becomes a lot easier now that you have a lot more information at hand.

So again, my first advice is this: get it done. I've never met a video game player who really cared and researched into how a particular game was programmed and designed. Therefore, the only reason you'd want to use programming design skills and refactoring that most programmers advocate is if it demonstrably saves you and your team's time in the very near future.

My second advice is to learn some design patterns, and what problem each pattern solves. They act as excellent shortcuts to help implement a feature in the game. Remember that it isn't important about whether they're well-designed or not, but rather, whether they actually solve the problem or not.

4 points

For the record (and in before any programmer complains), I do not personally recommend using Nullable Booleans when you could just use an enum (byte-type), as the latter is much more easier to read and probably uses the same amount of memory as a regular boolean. This is called a "lazy trick" for a reason: it's useful if you're really tight in time, but at a cost of memory and readability.

3 points

I started making games when I was in 7th grade during a programming summer school course, but I rarely finished them. It was very easy to lose focus when you have school and homework to deal with. I never got serious about actually finishing making games until I was 20, when I interned into a local game studio. The studio really helped change the way I think about developing games.

I know it's easy to feel jealous and unaccomplished with the current skill set that you have, but really, everyone starts there. You have to learn to not give up and keep trying until you feel comfortable. I highly recommend trying to finish making an actual game. Don't worry too much about the length of the game, it's your first one! I know the majority of my games only last up to 10-15 minutes, and that's perfectly fine.

I also highly recommend checking out a local Game Jam, such as Global Game Jam on the third (or last) weekend every January. They do a great job enforcing deadlines, and helps you better understand your own abilities.

3 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.