Skip to content

u/bluetrust

In this archive from Apr 2009 to Dec 2024

4
posts
121
comments
3
media
521
score

Top posts

Top comments

The bar of quality is so low for mobile games that even when I was building mobile games full-time, I never bought any myself (except for research.) They're just rehashed flash games at best, and I demand more from my entertainment.

$0.99 is a symptom of the problem, IMO. I don't want entertainment that the author planned from the beginning to be near valueless. I want $50 games that mean something and have had years of effort put into their development. I want games that were respected by their own authors.

Maybe there's games like that on mobile, but I'm not sorting through hundreds of thousands of shit vehicles to find out.

22 points

I've been a developer for about 12 years full-time. It seems to me that the key for organizing everything is to have each method, function or class do only one thing and no more. So in your setupLevel subroutine, its only job would be executing a series of steps for loading the level. That series of steps would be provided in the constructor. You'd pass in an array containing a TextureLoader class, a TilemapLoader class, a HUDLoader class, a DialogLoader class and so on. When a thing only does one thing, it only ever has one reason to change (e.g., HUDLoader could only ever possibly change because you changed the list of HUD elements it loads. A benefit of this is that if you need to change your HUD speedometer, you know the SpeedometerHUD is where to go and not line 180 of Interface or whatever.)

I honestly feel that if you follow this principle you end up with a system that is naturally designed to fit your needs (look at all these nicely organized *Loader classes!) and if you're into testing, it's easy to test too.

This is always going to feel kind of verbose, by the way. Just stick with it and ask yourself constantly, "what is the purpose of this function or class?". If you say it does ____ and then ____ that's a hint it's doing two things and should be split apart. Again, its okay if a class is just a paragraph or two statements long. Nobody ever complains that some code they inherited was too easy to figure out or too modularized.

This principle I've only started following rigidly about a year ago, and while it seems enlightening to me, your mileage may vary.

19 points

Dungeon Highway

It's a game about wizards who can't stop running. It's a fast-paced, 16-bit-reminiscent endless runner. Was just released this week on iOS and Android. Also, it's free.

This week was pretty sweet. We got featured by Apple in best new games, the reddit post I made had a lot of success. About half a million plays in the last two days according to my analytics. I'm feeling pretty lucky right now.

Bonus word: Frantic.

Twitter | Website | Promo Kit | Greenlight

15 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.