Author Topic: Started to write some game prototype...  (Read 3697 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Started to write some game prototype...
« on: April 24, 2010, 12:25:45 am »
I used some classes from Robombs to create a very early prototype of some game. I'm not sure what exactly this is going to be. Right now, you can make this white sphere jump around in the level by pointing to the new position. The idea is to create a kind on indirect movement, where you just specify the target location, not the exact path to it. This is because i'm unhappy with ~90% of the controls that i found in games for Android and i *think* that this might work better for some kind of games. Anyway, it looks like this (it runs a bit faster on the actual device, around 20 fps):


Offline zammbi

  • float
  • ****
  • Posts: 360
    • View Profile
Re: Started to write some game prototype...
« Reply #1 on: April 24, 2010, 06:18:56 am »
Looks good, I'm happy to test when your ready :)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Started to write some game prototype...
« Reply #2 on: April 26, 2010, 09:42:58 pm »
The prototype has improved somewhat and now looks like this (screen shot taken from the actual device):



In the screen shot, you can see a part of the level, the player and some flags that mark the path to the choosen target towards which the player is moving.

I've learned several things while coding this:

  • garbage collection sucks on Dalvik. The hickups are really noticable, so try to avoid object creation whenever possible.
  • the GPU's texture cache has a hard time if the textures aren't applied in the way it likes it best. What that means is that rotating a polygon by 90 degree can result in a noticable performance drop...not nice.
  • i've still no idea what kind of game play this should have at the end to be at least some fun...

Offline zammbi

  • float
  • ****
  • Posts: 360
    • View Profile
Re: Started to write some game prototype...
« Reply #3 on: April 27, 2010, 03:46:08 am »
Could make it that you need to collect all gems/coins in a stage while avoiding death by traps, enemies and what not.
Basically a puzzle game.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Started to write some game prototype...
« Reply #4 on: April 27, 2010, 11:58:22 am »
Yeah, something like that...

Offline dl.zerocool

  • long
  • ***
  • Posts: 104
    • View Profile
Re: Started to write some game prototype...
« Reply #5 on: April 27, 2010, 03:20:20 pm »
it looks great ! :)

Offline dl.zerocool

  • long
  • ***
  • Posts: 104
    • View Profile
Re: Started to write some game prototype...
« Reply #6 on: April 27, 2010, 05:45:48 pm »
At the moment I'm fighting with sensors...
I don't understand how to detect if the screen is looking to sky (user looking to the ground) and when the phone is turned screen down (user looking to sky).
Using sensors is real mess !

EDIT :
found something very useful to understand how it works.
http://code.google.com/p/androgames-sample/
« Last Edit: April 27, 2010, 08:49:34 pm by dl.zerocool »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Started to write some game prototype...
« Reply #7 on: April 27, 2010, 09:05:37 pm »
Might be useful. However, i'm not going to use tilt controls as i don't really like them for most games (they are ok for some ball games though). While playing, i want to look directly at the screen...not in some weird  angle just because i'm trying to move the player.

Offline dl.zerocool

  • long
  • ***
  • Posts: 104
    • View Profile
Re: Started to write some game prototype...
« Reply #8 on: April 27, 2010, 09:11:36 pm »
I understand, but our goal is to imitate augmented reality without using picture detection.
We just use sensors to move around :) 

Of course it's less precise, but lot's more easy in the time we have :)

Offline fir3d

  • byte
  • *
  • Posts: 11
    • View Profile
Re: Started to write some game prototype...
« Reply #9 on: May 10, 2010, 06:40:51 pm »
any chance of an apk demo. I saw the test app on the android page and was amazed. I like to see the possibilities of the phone. I'm still learning making basic android applications, hopefully then I can dive into some graphics.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Started to write some game prototype...
« Reply #10 on: May 10, 2010, 09:49:46 pm »
Maybe later. I still have no good idea what kind of game to make based on this...if any...