5,704 reputation
1021
bio website
location Bavaria, Germany
age 32
visits member for 4 years
seen 2 hours ago

Dec
13
comment Lua Implementation
@LarsViklund Okay, point taken. Could work for something like that or maybe even just for overrides/testing (later on getting "hardcoded").
Dec
13
comment Lua Implementation
Sounds really interesting, but at the same time running native/compiled code written by the user sounds a bit like a security nightmare. Also sounds like players would need a compiler and header files on their gaming rig? Sounds a bit excessive and very confusing for someone to get started into modding. Mind expanding a bit on how (if) that's handled?
Dec
11
comment What's the optimal balance of story and combat in a game?
There's no way in answering that. Not only is the answer up to everyone's opinion, it's also heavily influenced by the actual game. If I'm playing some visual novel or a point and click adventure, then I want story and less to no combat. On the other hand, playing a first person shooter, combat and action become far more important.
Dec
7
comment Font not display on ASUS devices
What happens if you pick another font? Will it work? How about changing the font size to something smaller?
Nov
22
comment Tile map only rendering 1 layer when it should be 3
If it's still the same question, just keep it or update your question. There's no need to ask the same question again. And forgot to ask: Where are you reading three layers and trying to draw three layers? I only see you iterating through one layer every time?
Nov
21
comment Tile map only rendering 1 layer when it should be 3
When someone says you shouldn't have something in your constructor, just calling it from the constructor won't change anything. The basic idea is that (in your case) loading the tiles might fail, which could leave your object in a dirty state (since you can't really signal that loading failed from your constructor).
Nov
19
comment 2D Hitboxing on an HTML image
Read the documentation. Those are typically in pixels relative to your image. There are also some tools out there allowing you to edit such maps using an WYSIWYG editor. my first hit on Google looks promising, although I haven't tried it.
Nov
19
comment How do you use Lua with several game objects / components?
There are many different approaches to this, but I'm not sure how extensive the possibilities with Lua-Alchemy are. You could, for example, create one parent instance of lua and then use a new thread for every class or system. This would work a bit like your suggestion of using one interpreter per object, yet it will allow your instances to communicate with each other (using shared variables).
Nov
9
comment Is it possible to look up a texel from a texture in GLES2 GLSL framgent shader without using sampler?
@JarkkoL Okay, interesting. Didn't do anything with newer versions so far. Is it just different syntax or is there some other (dis-)advantage?
Nov
9
comment Is it possible to look up a texel from a texture in GLES2 GLSL framgent shader without using sampler?
Err? I don't really understand your question. What you describe (i.e. accessing texture memory) is actually what a sampler is meant to do. What do you think is a sampler doing?
Nov
2
comment Formula for Planetary Alignment
@PaulRobinson I've added/linked an online example you can try online.
Nov
2
comment Formula for Planetary Alignment
@PaulRobinson You misunderstood me (or the concept of RNGs). Random number generators are actually pseudo random number generators. They're predictable in the way that the same seed will always result in the same sequence of random numbers being generated. So let's assume you call srand(42); at the start of your program, then the very first call to rand() will always return the same result.
Oct
28
comment OpenGL - Asteroids clone - shooting bullets from spaceship
Check the question/answer linked by me. Rather than adding enemies, you'd be adding bullets, essentially doing the same thing.
Oct
24
comment Android appstore developer account, to not charge then change
You can change the prize, but you'll typically alienate your user base that way. Either introduce a price and later drop it or don't charge at all.
Oct
24
comment How to spawn multiple enemies?
Might just be a typo.
Oct
23
comment Can we use credit card/prepaid voucher payment systems in Android and iOS?
As Josh suggests, danger zone territory. :) But if you can't spend the balance outside the app, you're essentially screwed.
Oct
23
comment Can we use credit card/prepaid voucher payment systems in Android and iOS?
@Sajib-Mist While I don't know those services or apps, those definitely sound like something you could/would use outside those specific apps, which makes the whole thing acceptable. Just by allowing others to access the service/purchased stuff outside the app might be enough to make it legitime on the Play store.
Oct
14
comment Slow dictionary access with coordinates as keys
Any specific reason you're not just using a three dimensional array for this?
Oct
10
comment How do I make an 8 bit sprite sheet using GIMP or Paint.NET?
For a transparent background, you won't have to create a new layer. Just hit Ctrl + A to select everything, then hit Del to remove everything, leaving you with a 100% transparent canvas/background layer.
Sep
30
comment GLSL- How to change a certain color of a sprite, to another color passed into the shader?
As I said, using shaders is perfectly fine, you might just want to think about a way to avoid branching in your code, because that may slow down some cards significantly.