A 2D rendering of an object in space.
5
votes
3answers
1k views
Differently-sized sprites?
I'm still at the very early stages of my game design -- nowhere near actually needing the sprites yet -- but a thought occurred to me: What's the best way to approach sprites of different dimensions?
...
5
votes
2answers
2k views
Oscillating Sprite Movement in XNA
I'm working on a 2d game and am looking to make a sprite move horizontally across the screen in XNA while oscillating vertically (basically I want the movement to look like a sin wave). Currently for ...
5
votes
3answers
981 views
Designing for multiple screen resolutions and aspect ratios, target one resolution then scale to meet others or use normalized values?
I feel like what I'm currently doing is stupid but would just like reaffirmation it is. Basically I'm writing games which target a certain screen resolution (800x480), so all positions, widths and ...
5
votes
2answers
5k views
Design sprites for games (iPhone game)
I'm not the very best at design, but I have looked for tutorials to design normal sprites for games (mobile devices), like background, ground and all that stuff in 2D. Are there any ...
5
votes
1answer
470 views
Smooth pixels while rotating sprite
I just started with andengine, so this maybe gonna be silly question.
How to make my sprites more smooth while I rotate them? Or maybe it because this is screenshot from tablet?
Thanks JohnEye it ...
5
votes
1answer
475 views
Separating Sprites from Models with PyGame
So I'm trying to code a game using the Model-View-Controller pattern, and therefore have a need to separate the models for my game objects with their sprite representations. The problem that I'm ...
5
votes
2answers
541 views
Alternatives to multiple sprite batches for achieving 2D particle system depth
In my 2D XNA game, I render all my sprites with a single sprite batch using SpriteSortMode.BackToFront and BlendState.AlphaBlend.
I'm adding a particle system based on the App Hub particles sample. ...
4
votes
4answers
3k views
How to handle a Sprite Class?
Currently I am learning XNA and while playing around with some tutorials knowing what I am aiming for a game it made me think that the Sprite Class will be something very important and re-used a lot ...
4
votes
3answers
2k views
Where can I find pixel-art artist? [duplicate]
Possible Duplicate:
Where can I go to find a game graphic artist?
I'm pretty good programmer, and I want to create new pixel-art-game. I know how to program, visualise and optimize the ...
4
votes
2answers
798 views
2D sprites in 3D space?
How can I draw a 2D sprite to look like it's at a particular placement in the 3D world?
My goal is to use this as loose items in the world.
Minecraft Example: ...
4
votes
2answers
383 views
Sprite batching in OpenGL
I've got a JAVA based game with an OpenGL rendering front that is drawing a large amount of sprites every frame (during testing it peaked at 700). Now this game is completely unoptimized. There is no ...
4
votes
2answers
1k views
Move sprite in the direction it is facing?
I'm using Java/Slick 2D. I'm trying to use the mouse to rotate the sprite and the arrow keys to move the sprite. I can get the sprite to rotate no problem, but I cannot get it to move in the direction ...
4
votes
2answers
3k views
Clipping a SpriteBatch Draw() in XNA
Is there any way to enable a temporary clipping mask in XNA while using a SpriteBatch? I'm drawing a bunch of Texture2D objects and Sprites in a given rectangle, and I want to make sure that said ...
4
votes
4answers
575 views
How can I ease the work of getting pixel coordinates from a spritesheet?
When it comes to spritesheets they're usually easier to use, and they're very efficient memory-wise, but the problem that I'm always having is getting the actual position of a sprite from a sheet. ...
4
votes
5answers
476 views
XNA Required information to represent 2D Sprite graphically
I was thinking about dividing my game engine into 2 threads: render thread and update thread (I can't come up on how to divide update thread from physic thread at the moment).
That said, I have to ...
4
votes
3answers
2k views
Player sprite animation in 2D platform game
It's pretty easy to get animations rolling from a sprite sheet. Though which ways there are on combining the animations with player dynamics and motion?
I've figured there's two starting points ...
4
votes
3answers
5k views
LibGDX tutorial help Scene2D
I'm having trouble understanding this tutorial. It defines the importance of classes, but it doesn't show an outline of the project file so far. From what I got from that tutorial was that there is ...
4
votes
2answers
2k views
How to rotate “stacked sprites” in XNA?
I'm working on a simple Sinistar-style shooter in XNA, and I'm constantly running into trouble with transformations. I feel like I'll get it eventually, but this problem is really bending my mind.
...
4
votes
3answers
334 views
Smooth Sprite Movement - Don't Add Velocity to Position?
I am trying to figure out if there is a way to move a sprite smoothly on the screen at different speeds without stuttering, but keeping the effect that it's moving smoothly; especially at faster ...
4
votes
2answers
729 views
snapping an angle to the closest cardinal direction
I'm developing a 2D sprite-based game, and I'm finding that I'm having trouble with making the sprites rotate correctly. In a nutshell, I've got spritesheets for each of 5 directions (the other 3 come ...
4
votes
3answers
611 views
The right way to add images to Monogame/Windows
I'm starting out with MonoGame. For now, I'm only targeting Windows (desktop -- not Windows 8 specifically).
I've used a couple of XNA products in the past (raw XNA, FlatRedBall, SilverSprite), so I ...
4
votes
2answers
431 views
How to decompose sprite sheet
I have a lot of spritesheets that are poorly formatted that I want to decompose, or split out into many small images, one for each sprite.
If I can do that, I can use my custom texture packer tool to ...
4
votes
2answers
641 views
Regarding sprite design and resolution for tablets and phones
I am about to start working on a game for android devices, in my spare time, to get familiar with android development. I'm more interested in using the best practices possible than getting a quick ...
4
votes
1answer
313 views
2D animation: Animated 3D models or sprites with animation frames?
Starting out with new project, I am stuck choosing between:
3D textured model animated directly through the renderer
2D sprites and drawing each animation frame
The game will be 2D platform, I ...
4
votes
2answers
336 views
Geometry vs sprites
I'm developing an android game, where the enemies are geometrical shapes. Performance is a main goal for me so I was wondering if defining shapes directly in OpenGL would be more efficient than using ...
4
votes
1answer
1k views
Should I be subclassing CCSprites?
When I am working with cocos2d I can add CCSprites to the layer or 'stage' and manipulate them.
Now, to do my ongoing calculations for movement AI and such, things that will always run, should I:
...
4
votes
1answer
503 views
Rendering a Sprite with an Effect… how?
gettings tuck doing some 3d Rendering and I think you guys may have a lot more knowledge in it. I am tasked with basically rendering a texture onto a screen, preparing the way to apply graphical ...
4
votes
3answers
4k views
Are there any good 2D fighting game engines that can be used to make a commercial product?
I'm looking for a good 2D fighting game engine based on sprites. I really dont care much about which language that it is programmed in. Specifically I'm looking for an engine I can use for a game I ...
4
votes
1answer
1k views
Mixing sprite drawing with 3D primitive drawing in XNA?
In my game, I have a base Note class, and various subclasses of Note. In addition, I have a NoteCollection class which contains a collection of these Note objects and draws them to the screen. ...
3
votes
6answers
1k views
How to get quality sprite sheet generation with rotations
I'm working on a game that uses sprite sheets with rotation for animations. While the effect is pretty good, the quality of the rotations is somewhat lacking. I exported a flash animation to png ...
3
votes
2answers
566 views
SpriteSheet Animation with XNA
Hi i'm working on my First 2D Game with XNA and I have a little problem.
To give a running effect to my Sprite, I scroll through a SpriteSheet with this code(running right):
if (AnimationDelay == 6)
...
3
votes
2answers
524 views
Better to use fixed sprite size or variable sprite sizes in a sprite sheet?
you have N frames for an animation (an idle animation for example) of a 2D character. What is the best resolution to use for each frame? The problem is that if you save the N frames such that each of ...
3
votes
3answers
2k views
Changing the color of a sprite at runtime
Is there a form to change the color of a sprite in runtime?}
I have a black point loaded with an image, but i dont want to load various images with different colors, is there a mode to change the ...
3
votes
3answers
407 views
What's the best place to showcase my pixel art?
I recently started learning spriting/pixel art to help propel my game development endeavors and I've gotten to the point where I'd like to start sharing it for comments, critiques and other feedback.
...
3
votes
2answers
367 views
Sprites are sometimes blurry in Flash
I am playing around with drawing an SVG sprite (imported in through [Embed]). Depending on the coordinates of the image, sometimes it appears more crisp than others.
The following image shows how at ...
3
votes
1answer
431 views
Collision and response between sprites?
What is an easy way to have sprites collide and react to the collision? E.g. if I'm writing a game in XNA or with Canvas 2D and need to write the code myself very simply.
3
votes
2answers
353 views
How do you set the movement speed of a sprite?
I'm using Slick 2D/Java to play around with graphics. Getting an image to move is easy:
Input input = gc.getInput();
if(input.isKeyDown(sprite.up)){
sprite.y--;
}else if ...
3
votes
2answers
950 views
What is causing these visual artifacts on my OpenGL sprites?
What could be the cause of the defects in my characters sprite? I am using OpenGL ES 2.0. I draw my sprites in a sprite batch that uses UV coordinates from one large texture atlas. If you look around ...
3
votes
2answers
686 views
Managing animations
I'm developing a 2d game that requires sprite based animations. I was thinking about which is the most convenient way to manage many of these sprites all together with timings.
I already know how ...
3
votes
1answer
241 views
Batching dynamic sprites in OpenGL
I'm trying to wrap my head around how batching is done in a 2D sprite-based game. My understanding is I'd get the vertices that represent each sprite I want to draw and stuff them all into a single ...
3
votes
1answer
202 views
Combining multiple sprites vs separate sprites
I have a character which can hold ten types of weapons.
Should I:
Create ten sets of animations for the character with each weapon
Create animations for each weapon, and programmatically draw them ...
3
votes
4answers
469 views
Is character movement with an animated sprite controlled by the animation itself or moved manually?
How is a walking animation of a given character designed? I can see two possible ways:
The first way is to draw each frame of the animation such that, if the frames are displayed at position (0,0), ...
3
votes
2answers
1k views
Turning model from 3ds max file into sprite
I'm planning to buy animated 3D assets to render and use as 2D sprites in my game, but i don't know anything about 3ds max or own any software. How do i render the animations (i need top-down ones) to ...
3
votes
1answer
836 views
Turning a sprite such that it rotates in the direction that's most efficient
I have a sprite that moves from waypoint to waypoint. It turns to face its velocity vector, but not instantly (there's a rotation speed).
The problem I'm having is, from one direction to another, the ...
3
votes
2answers
2k views
How do I access variables in the Game1 class from another class in XNA?
I'm trying to write a SpriteManager class in XNA, but I need access to the Game variables. For example, the Game.Content property would be very helpful in loading textures, and ...
3
votes
1answer
429 views
How to prepare a sprite for a game?
For example, I created my character drawing on Paint.NET using the Pencil tool and now it's a sprite like asset.
If I want him to move do I need to create many different poses for him and render them ...
3
votes
1answer
43 views
How to make a map surface object
I'm making a 2d tile based game. In pygame I could create a map like this:
screen = pygame.display(resolution)
map = pygame.Surface(width, height)
for tile in all_tiles:
map.blit(tile)
...
3
votes
1answer
696 views
Using raw vertex information for sprites rather than SpriteBatch in XNA
I have been wondering whether using SpriteBatch is the best option. Obviously for prototyping or small games it works well.
However, I've been wanting to apply techniques such as shaders and lighting ...
3
votes
1answer
223 views
Improving SpriteBatch performance for tiles
I realize this is a variation on what has got to be a common question, but after reading several (good answers) I'm no closer to a solution here. So here's my situation:
I'm making a 2D game which ...
3
votes
3answers
383 views
How can I get a list of sprites which are being drawn in the current viewport using XNA?
Just starting out using XNA to draw 3D scenes and have a question about determining which objects are currently visible.
If I load many thousands of sprites and shapes in a scene, then render the ...