sprite

Favorite image file format for 2d sprites

What is your favorite, lossless image format for games (namely 2d games)? And why? Some things to take into consideration are size on disk, overhead for converting to a usable format, and features of the format (ie alpha support). There is no best answer, but be sure to back yours up the best you can! ...

Java 2D game programming - Newbie questions

Hi, We're a team of a programmer and a designer and we want to make a medium-sized java game which will be played as an applet in the web browser. Me (the programmer) has 3 years of general development experience, but I haven't done any game programming before. We're assuming that: We'll decide on a plot, storyline of the game, etc....

Can't get CSS Sprite to work..what am I doing wrong?

I am using CSS Sprite Generator to create sprites for a web page I am working on, but it doesn't seem to work, and I don't know why...I guess it's something obvious but..! So, I picked up 3 images, zipped, generated the PNG file (I checked out the result it is seems fine) and I got the following css classes back: .sprite-welcom1 { back...

Get bounds of filters applied to Flash Sprite within Sprite

I have a Flash library with Sprite symbols composed of other sprites with design-time applied filters. I'm embedding those symbols into a Flex application like so: <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"&gt; <mx:Script> <![CDATA[ [Bindable] [Embed(source="Resources.swf", symbol="Squ...

A good 2d engine for Java ?

DUPLICATE: http://stackoverflow.com/questions/293079/java-2d-game-frameworks Does anyone knows a good 2D engine for Java with sprites, animations and colisions handling ? ...

How to read sprites from a spritesheet in Java?

I have this sprite sheet: How can I read the sprite that I want to out of these? ...

How to show Pacman's mouth open/close animation in Java with double buffering?

I'm trying to show the famous mouth opening/closing animation of the pacman character in a throwaway pacman game I'm making to teach myself game programming. What I'm doing is drawing the open mouth image, then redrawing the closed mouth image at the exact same (x/y) location. But this doesn't work, and I just see the closed mouth anima...

Javascript Sprite Animation Library for Canvas Tag

Can you point me to a good Javascript sprite animation library using the HTML Canvas tag? A few Google searches only turned up some non-canvas projects. I am looking for something clean and simple. Thanks. ...

iPhone cocos2d sprites in array, memory problems

I'm trying to keep track of my sprites in an array, add and remove them from layers, and then finally clear them out of the array. I'm using the following code: Sprite * Trees[50]; Layer * Forest; Forest = [Layer node]; Forest.isTouchEnabled = YES; [self addChild:Forest z:30]; // do this a bunch of times Trees[0] = [[Sprite spriteWi...

XNA 2D Camera Engine That Follows Sprite

What is the best way to create a parallax effect in an XNA game? I would like the camera to follow my sprite as it moves across the world, that way I can build in effects like zoom, panning, shake, and other effects. Anybody have a solid example of how this is done, preferably in a GameComponent? ...

Pygame: Sprite changing due to direction of movement.

I've just started learning how to use pygame yesterday. I was read this one book that was super helpful and followed all its tutorials and examples and stuff. I wanted to try making a really simple side scroller/platforming game but the book sorta jumped pretty fast into 3D modeling with out instructing how to make changing sprites for m...

Pygame: Sprite animation Theory - Need Feedback

After some tweaking of some code I got from someone to cause a characters images to move in regards to its direction and up down left right input I've put this together: (hope the code isn't too messy) Character Move Code + IMG The Sprite sheet only runs lengthwise, so basically each sprite section is a different action. Now would ther...

draw sprite into bitmapdata with a strange mask

I have run into strange behavior drawing a sprite into a BitmapData. This sprite looks fine when drawn directly to the screen. But when this sprite is drawn into a BitmapData, the sprite is being masked... but there is no such mask applied to that sprite! This "bad mask" can be toggled off and on... by applying / not-applying a differ...

Swaping UIIMageViews

Hello Friends facing this Problem:: Problem Definition:: I have to move the image sprites on the screen now when one of the image Sprite goes beyond limit i have to shuffle all of the UIImageView sprites. My Code: Basically Phase 1 that i'm doing is Shuffling:: that goes like this tmpview = mapSRightImgView; mapSRightImgView =...

matrix transforms on adjacent sprites causing subpixel gaps

I have three sprites, stacked on top of each other. I modify their transform.matrix to give the appearance they are growing in unison. However, small cracks sometimes appear between the tiles depending on the scaling factor. I am wondering how to fix this. I know that text objects in AS3 have options for sub-pixel rendering. May...

Dynamically alter or destroy a Texture2D for drawing and collision detection

I am using XNA for a 2D project. I have a problem and I don't know which way to solve it. I have a texture (an image) that is drawn to the screen for example: |+++|+++| |---|---| |+++|+++| Now I want to be able to destroy part of that structure/image so that it looks like: |+++| |---|---| |+++|+++| so that collision now will work ...

flex sprite scroll bars

Please find the code below.When you run the example(attached file) and click on tools(top left)-> zoom in(click 2 times), you will see that the yellow color is scaled and goes beneath the blue color. What I was expecting is the yellow color will get scroll bars and it will not cross the boundaries. I have tried for quite some time but c...

Should I extend or compose Sprite, MovieClip and DisplayObject in Flash?

I normally extend one of these classes when I want to control it - but would I be better off creating a class that composes one? What are the advantages and disadvantages? ...

CSS Sprites browser rendering

We all know that CSS sprite images are great to reduce the amount of requests and such, but what about the performance of the browser rendering the page with several elements using a big image as a background? ...

When is a CSS Sprite too large?

Is the main purpose of sprites to reduce http requests made to the server for graphical elements on a page? Or do you want to try and fit as many elements to the sprite as possible. I guess what I'm asking is: when is the sprite too large? ...