Sign in to follow this  
Anton Vatchenko

J2ME Samsung double buffer problem

Recommended Posts

I write a game where the level consists of small pieces (tiles) of size 16x16. To make the game faster I use two buffers. First I draw all the level piece on one buffer, then (when I move) I draw one buffer to other with some offset, and then draw the borders (some pieces must come onto screen). Every phone works right but not Samsung (mainly X640). I think one buffer is not drawn right onto the other, and border pieces are drawn right. The other problem is with some colors that are not drawn at all. The problem is only on Samsung device. Siemens, Sony Ericsson and Motorola work right!

Share this post


Link to post
Share on other sites
If it's only certain colours which seem to be wrong, make sure your png with the tiles on it has been saved without transparency.

Some Samsungs decide for themselves what will be transparent though!
Try loading your tiles.png into Paintshop Pro, then saving them out again.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this