5,659 reputation
921
bio website
location Bavaria, Germany
age 32
visits member for 3 years, 11 months
seen 14 hours ago

2d
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
19
comment Problem with Visual Studio 2013 Community
You should ask this question on stackoverflow.com or superuser.com since it isn't specifically a game development problem - plus that way you'll reach a far greater audience that might be able to help you. Personally I'd try to completely uninstall/remove Visual Studio as well as Unity, then reinstall VS, followed by Unity.
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.
Sep
11
comment Building a chunk w/ blocks: making ramps. How to detect if blocks are making “stairs” (like in a mountain) and should be turned into ramps?
No worries, if you understood Byte56's solution, it's just a few steps more for this more generic approach. Actually what you described in your comment above (picking the right piece based on the "situation") is really pretty much what Walking Squares/Cubes is about.
Sep
8
comment Building a chunk w/ blocks: making ramps. How to detect if blocks are making “stairs” (like in a mountain) and should be turned into ramps?
One more tiny thing I just wanted to add: I've never played Sim City 2000, but Sim City 3000 and Sim City 4. I'm quite sure they don't store the actual height of single squares of landscape (so no real blocks). Instead, they store the height of the vertices/points between them.
Sep
8
comment Building a chunk w/ blocks: making ramps. How to detect if blocks are making “stairs” (like in a mountain) and should be turned into ramps?
To add for optimization, I'd think about some additional flag or map to mark sections or parts of your landscape/chunk as "dirty". Whenever the surface is edited in some way, the flag is set, which will trigger the mesh update process.