Jump to content

  • Log In with Google      Sign In   
  • Create Account

Olof Hedman

Member Since 24 Aug 2011
Offline Last Active Yesterday, 04:56 PM

Posts I've Made

In Topic: Building game architecture

17 October 2016 - 05:47 AM


Try to think only about what will make your game easier to write, and not what is considered good practice by the OOP methodology. Those two often conflict.


at last, folks are getting a clue!  big +1 on that! 



I'd say they only conflict if you are trying to use the wrong methodology, or you have some misconception about it...

For example, I don't see how anything in "OOP methodology" says that "Unit" absolutely can't know about "World".

I'm guessing the misconception here is that OOP says that everything should be hierarchically organised from "higher level" to "lower level".

That's just not true. Objects often need to know about each other, and be part of a family of siblings on the same level of abstraction.


I'm totally in favor of making your program easy to write, understand and modify though.

But that's where some methodology can help. Just make sure to use the right tool for the job...

And don't blindly follow patterns just because you read about it in some book or blog. 


Maybe "World" is a bit too vague to be very useful as an abstraction, it will likely contain many subsystems, and "Unit" probably only need access to a few of these subsystems. Your code might be easier to reason about if you only give Unit access to these subsystems.


TL;DR: I think it's fine to let Unit know about World, but it can certainly be improved

In Topic: CPU + GPU rendering with OpenGL

16 October 2016 - 04:27 AM

If I could write to gl_FragDepth instead of reading from it then I would be able to give depth to 2D sprites


gl_FragDepth is an output variable, so that should work fine.

Maybe you are confusing it with gl_FragCoord.z?

In Topic: Why no Liero remake?

27 September 2016 - 05:54 AM

No-one has gotten around to it yet?


Worms-type turn based games is fun, I don't doubt it is fun in realtime too.

In Topic: After being an indie game developer I begin to doubt myself

23 September 2016 - 07:46 AM

We don't have extra budget to buy google adwords , i think it's expensive.


You're right.

I don't do our marketing, but know we have used it sometimes.

I thought they were cheaper then they are, asked the guys doing our marketing about it now, and yeah, they are pretty pricy per user.


You need arpu of >$1 for it to be a straight win, but if you can use it to climb on toplists, then it might be a win even with lower arpu

In Topic: After being an indie game developer I begin to doubt myself

23 September 2016 - 03:43 AM

Also, don't forget about google adwords, showing your game in other peoples games.

They're pretty cheap, and can work well if you have a game with a good rating


Just having it on the store is not enough, you definitely need some marketing to push yourself up on the top lists.


The sad reality is that if you are not on the top lists, and/or featured somehow somewhere, it is very hard for your users to find your game.