A 2D rendering of an object in space.
0
votes
0answers
9 views
How to approach rendering in a 2D Sprite-based game?
Let's assume you have some classes like Player, Enemy, Map and Tile.
The first approach would be to let the things draw themself, e.g.:
void render(){
player.draw();
enemy.draw();
// etc.
}
...
1
vote
1answer
33 views
Polygons vs sprites rendering performance in Unity for windows phone 8
I'm currently building a windows phone 8 game with unity, having 111 (no more no less) sprites being updated each frames. I have a strong overhead in the profiler (70% to 90% minimum) I tried the ...
1
vote
1answer
88 views
How do I make a 2D character aim their gun toward the mouse?
Heli Attack is a perfect example of the shooting mechanic I'd like. The character aims perpetually toward the mouse. What's going on here?
From what I've read so far, you could separate the arm and ...
0
votes
0answers
26 views
How to flash a sprite in canvas html5
how can you flash a sprite if a mob got hit for example ? I mean overlay a lighter color on visible sprite pixels for a second.
0
votes
0answers
38 views
Efficient tilemap rendering with layers? [on hold]
The tool I'm using to develop my game is extremely inefficient, and I cant use another tool for now.
If i render the map tile by tile, 32*22 tiles, it gives me a performance of 1fps. So its not ...
1
vote
2answers
56 views
Recommended way to handle sprite assets for different screen densities (Android)
I am currently working on a 2D game for Android. All of the images that I render were created as SVG's and then exported to PNG's which I have placed in my assets directory. These images are also all ...
0
votes
2answers
77 views
What is the correct way to draw layered Sprites in modern OpenGL?
So what do I mean by layered sprites? Layered Sprites are Sprites that consist of multiple layers, e.g. you have sprite sheets for the basic Body, the Head, Clothes, Weapons, etc.
Well now I wanted ...
1
vote
1answer
55 views
How to adjust a font to fit inside a speech bubble?
I'm creating a game that contains a speech bubble for dialog. The idea of this function is to allow one call to set new text in a speech bubble. The speech bubble will adjust in size of the new font ...
2
votes
3answers
106 views
Is it more efficient to encode rotation in a spritesheet or rotate at runtime?
I'm developing a game with JavaScript and HTML5 and I'm wondering about the performance implications of sprite rotations. There are two ways that I know to rotate a sprite:
Rotate the actual sprite ...
3
votes
1answer
58 views
Pygame collision detection less frequent when objects are increased
I currently experiencing an issue in pygame where whenever i increase the number of objects e.g. platforms, rocks
for a in range(150):
rock = Rock(0,0)
OR incresing the range which they spawn ...
0
votes
2answers
88 views
AndEngine - Smooth scaling on a sprite
I'm trying to implement a pinch zoom on a sprite. I would like to get an effect like the SmoothCamera, but on a single sprite. I've managed to pinch zoom on the sprite by changing its scale, but the ...
0
votes
1answer
97 views
methods for player interaction with world
What's the proper way, a proper way, or any proper way at all, to handle interactions between a sprite (usually a player) and another sprite (can be any other object)? (in a tile based world)
i.e. ...
0
votes
1answer
223 views
How can I programatically generate sprite instances in Unity?
I want to create a block-based puzzle game that generates blocks as they are required, however I cannot seem to find any good imformation on how to do something like this using Unity's new sprite ...
0
votes
1answer
120 views
How can I support a background more complex than a flat color?
I'm a beginner at making 2D games. Up until now, I always created my games with a black background, or a fixed color. This is because my sprites always have a black (or a solid color) background, and ...
2
votes
1answer
85 views
How to prevent a sprite to move in an angle that will lead to collision
I have two sprites that can move in any angle. The sprites are rectangular.
I created bounding boxes for both the sprites. These boxes rotate whenever the sprite rotates. They always surround the ...