Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Android Game Dev

Name: CodeZombie 2010-09-04 3:58

>Start android game project
>make a cool little base for a simple game project
>impliment touch screen events
>lags like a motherfucker whenever i touch the screen
>research the problem, and find out that google doesnt have any kind of threshold to touch events, so the listener is completely flooded and the only thing you can do is put it in a highly controlled thread.
>I don't even know how to threading
>get discouraged

Fuck you, google.

Name: VIPPER 2010-09-04 4:11

>>1
JEWS

Name: Anonymous 2010-09-04 4:31

Blaming others for our own incompetence, are we?

Name: Anonymous 2010-09-04 4:35

>>1
It appears you have a bad case of back to /b/, please.

Name: Anonymous 2010-09-04 5:00

Greentext stories on /prog/? Get back to /v/, please.

Name: Anonymous 2010-09-04 5:19

This thread sucks I'm going to use it to recite my poetry.

Father ov Terror!
Aba ol-Hol
Enter the pylon
Through the galleys ov past
Catacombs ov night
Into the starry womb

Slay, slay!
Asar un-Nefer
We have no fear
Our time had come
Our will is done

Dance, dance!
O Mighty One
In the fields ov Aqert
And spit
Upon slaves ov death

War God!
Trample all weakness
This is your day ov pride
Draw Thy flaming sword
Cut the umbilical cord
To set me free from eternal sleep

Name: Anonymous 2010-09-04 5:31

>>6
my

IHBT

Name: Anonymous 2010-09-04 17:15

>>1
Haha oh wow. Android really is the new J2ME, isn't it.

When we did J2ME games (and ported to Android), we ran the whole game on a separate thread and wrote our own event queue so that you're never blocking the hardware event thread. Only store the last touch position and action in some variables, and poll it from your thread. This way you won't be blocking on any touch events and all the touch events between each tick/paint will get compounded together. You'll probably lose some precision in your touch events this way but it's better than being flooded with them.

We actually did something a bit more complicated; we'd store a queue of touch events, and when receiving a new touch, there was a distance threshold from the last one for whether or not it would create a new event or just ignore it. This way if a touch goes down and back up while a frame is painting, you'll still get it.

I hate Java so god damn fucking much. I know this isn't specifically due to Java, but I still blame Java because the language encourages this sort of design.

Name: Anonymous 2010-09-04 18:11

>>8
i love java so much it makes me peepee my pants

Name: Anonymous 2010-09-05 0:22

Try programming for the iPhone. It's free as in free anal sex.

Name: Anonymous 2010-09-05 4:00

>>10
You mena free anal rape.

Don't change these.
Name: Email:
Entire Thread Thread List