A 2D rendering of an object in space.

learn more… | top users | synonyms (1)

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: ...
2
votes
2answers
361 views

How optimal do you think maintianing states in a sprite class?

Currently i'm working on a sprite system which will have frames which make animations. Usually a sprite contains current position, current frame number to be displayed in the running animation, ...
5
votes
2answers
639 views

How can I handle a 2d game with tens of thousands of sprites rendering at the same time?

we are trying to make a small 2d game which requires an excessive amount of sprites spawning and moving around the screen at the same time. We did try doing this in python but it started choking at ...
3
votes
2answers
705 views

How to store character moves (sprite animations)?

So I'm thinking about making a small rpg, mainly to test out different design patterns I've been learning about. But the one question that I'm not too sure on how to approach is how to store an array ...
0
votes
1answer
533 views

Position of XNA.Rectangle is changing the position a spritre is rendered to?

I'm having this weird problem where the position ocmponent of a rectangle of the XNA type is offsetting the position the sprite is rendered to as well. I guess a broader question I'm trying to have ...
1
vote
3answers
548 views

sprite group doesn't support indexing

I have a sprite group created with pygame.sprite.Group() (and add sprites to it with the add method) How would I retrieve the nth sprite in this group? Code like this does not work: mygroup = ...
1
vote
2answers
279 views

shuffle a sprite group

Is there a way to shufle a group of sprites created with: pygame.sprite.Group() I have tried using random.shuffle but it apparently doesn't work on sprite groups.
5
votes
3answers
1k 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
3answers
763 views

Simulate 3D with 2D sprites

I was thinking about 2D games (like Starcraft), where the sprites are in two dimensions, but the objects that are "higher" in the screen are behind the other objects (I think this is obvious when you ...
5
votes
4answers
2k 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? ...
8
votes
2answers
1k views

Sprite sheet or multiple resources

When animating for the Android platform is it a better practice to create a sprite sheet with multiple states for each sprite on a single picture or should I instead export individual images for each ...
12
votes
5answers
1k views

Sprites as Actors

I'm not experienced in Game Development questions, but as a programmer. In the language Scala, you can have scalable multi-tasking with Actors, very stable, as I hear. You can even have hundreds of ...
3
votes
2answers
494 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 ...
0
votes
2answers
3k views

How do I draw a point sprite using OpenGL ES on Android?

Edit: I'm using the GL enum, which is incorrect since it's not part of OpenGL ES (see my answer). I should have used GL10, GL11 or GL20 instead. Here's a few snippets of what I have so far... ...
5
votes
2answers
3k 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 ...
6
votes
2answers
981 views

Best way to do large XNA animations?

What's the best way to have large animations in XNA 4.0? I have created a spritesheet with the sprite being 250x400 (more of an image than a sprite but hey ho) and there are approximately 45 frames in ...
8
votes
4answers
8k views

How to improve batching performance

I am developing a sprite based 2D game for mobile platform(s) and I'm using OpenGL (well, actually Irrlicht) to render graphics. First I implemented sprite rendering in a simple way: every game object ...
2
votes
3answers
1k views

Make a laser beam effect with Ogre and a BillboardChain

http://www.lpi.usra.edu/lunar/missions/apollo/apollo_15/images/laser_beam_lg.gif I want to be able to such an effect, but I don't really know how the BillboardChain class works or how I can use it, ...
1
vote
1answer
1k views

J2ME character animation with multiple sprite sheets

I'm working on a J2ME game and I want to have walking animations. Each direction of walking has a separate sprite sheet (i.e. one for walking up, one for walking right etc), I also have a static ...
7
votes
2answers
1k views

How do I change a sprite's color?

In my rhythm game, I have a note object which can be of a different color depending on the note chart. I could use a sprite sheet with all the different color variations I use, but I would prefer to ...
1
vote
2answers
935 views

Modern techniques for spriting

I would like to know the flow for making modern 2D game artwork. How are the assets made nowadays? Bitmap? Vector-based? Hand-drawn and painted? Drawn digitally? Modeled in 3D and exported to ...
4
votes
2answers
1k 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 ...
6
votes
2answers
8k views

Design sprites for games (iPhone game) [closed]

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 ...
7
votes
3answers
3k views

Random enemy placement on a 2d grid

I want to place my items and enemies randomly (or as randomly as possible). At the moment I use XNA's Random class to generate a number between 800 for X and 600 for Y. It feels like enemies spawn ...
11
votes
2answers
6k views

How do I disable texture filtering for sprite scaling in XNA 4.0?

I have a sprite that I'm trying to scale up in XNA, but XNA is applying some sort of texture filtering that smooths it and makes it look ugly. I'd like it to just do pixel doubling instead of ...
0
votes
1answer
244 views

iPhone Game - Sprites

I have made games with cocos2d for the iphone however I am looking to move on from that, is there a good direction you could suggest? If not I was planning on using what the SDK gives me, and so for ...
3
votes
2answers
924 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 ...
7
votes
3answers
2k views

2D Top down view maps

I was wondering how this works. Do you load the complete map when the game starts up, or do you load parts of the map at runtime? And how would you save the maps? Would it be in XML or some binary ...
4
votes
5answers
493 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 ...
2
votes
2answers
430 views

Clipping Sprite Sheets with Variable Placement

I was looking at some sprite sheets at sprite sheet database. I noticed that some of the sprite sheets had several different objects placed together in one file. Some of the sprites, such as movement ...
7
votes
4answers
24k views

Free to use resources for 2d platformer Sprites [closed]

I've looked at a couple other questions about Sprites but most seem to apply to Isometric or RPG related sprites. So I'm wondering if there is a decent place for 2D side scrolling plat-former type ...
4
votes
1answer
2k 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. ...
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
6answers
2k 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 ...
5
votes
2answers
4k 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 ...
20
votes
9answers
9k views

Tips and Tools for creating Spritesheet animations

I am looking for a tool that I can use to create sprite sheet easily. Right now I am using Illustrator, but I can never get the center of the character in the exact position, so it looks like it is ...
3
votes
1answer
466 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 ...
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 ...
18
votes
7answers
5k views

Efficient way of drawing outlines around sprites

I'm using XNA to program a game, and have been experimenting with various ways to achieve a 'selected' effect on my sprites. The trouble I am having is that each clickable that is drawn in the ...
3
votes
1answer
117 views

Need some advice on a java api to use for a 'presentation display board' - based on game 2d/3d tech

As part of the project i am working on I am looking to produce some software that works on a LCD display (think call center info boards) and displays various graphs (the bars grow etc in realtime, so ...
3
votes
2answers
2k views

Scrolling 2D sprites on a map with a camera

I'm working on a 2D sprite-based strategy-type game (ok, full disclosure: it's a tower defense game), and I'm having a problem getting the actors to behave correctly when I move the camera. I've got ...
18
votes
5answers
3k views

Sprite Animation Best Practices

I'd like to get a better handle on how people in the real world are handling their animation. Do you load 1 large image and then draw different rectangles based on the animation frame? Do you load X ...
2
votes
3answers
178 views

Sprites saved in INA and AN format?

im not sure if this is a suitable question but i found a game that had all it is sprites and stuff saved in INA and AN format and i got curious to know which program is it... Or is it some sort of ...
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 ...
10
votes
3answers
7k views

Rendering performance for Flash games

I was reading on SO about native flash rendering vs building a custom BitmapData frame buffer and some of the answers were a bit conflicting, so I was wondering: Is it generally best practice to go ...
3
votes
3answers
454 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
1answer
595 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.
23
votes
8answers
10k views

What is a good tool for producing animated sprites? [closed]

Has anyone come across a software package that allows you to build animations in a similar way to how you can in Flash (i.e. using techniques such as tweens & bones & easings, etc) and then ...
13
votes
5answers
4k views

Tools for generating texture atlases/sprites from source images? [closed]

Is there an industry standard file format for texture atlases? What are the apps that take a directory of images and turns it into a texture atlas png and a text file describing what's on it? This ...
26
votes
3answers
6k views

How do you approach resolution independence in raster based graphics content?

Those games that are not fortunate enough to run on a locked platform spec, like handhelds, need to run across various resolution formats and aspect ratios. In a 3D game you might have a HUD or menu ...