Author Topic: Alien Runner W.I.P  (Read 35373 times)

Offline zammbi

  • float
  • ****
  • Posts: 360
    • View Profile
Re: Alien Runner W.I.P
« Reply #60 on: October 18, 2010, 01:24:35 am »
Quote
Does the sky look right?
Seems fine on mine.

How do you change the map without a keyboard?
Maybe you should add a quit button on screen somewhere since the back button doesn't quit.
If I open the keyboard on the loading screen it still crashes.


Offline raft

  • quad
  • ******
  • Posts: 1971
    • View Profile
    • http://www.aptalkarga.com
Re: Alien Runner W.I.P
« Reply #61 on: October 18, 2010, 05:52:17 am »
Quote
Does the sky look right?
seems ok on my N1

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: Alien Runner W.I.P
« Reply #62 on: November 17, 2010, 08:31:45 am »
Had the possibility to run it on a Samsung Galaxy S with 2.2 installed. It never dropped below the Samsung's fps limit of 56 fps no matter what i did...very cool!
« Last Edit: November 17, 2010, 02:33:46 pm by EgonOlsen »

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Alien Runner W.I.P
« Reply #63 on: November 27, 2010, 01:47:03 pm »
Had the possibility to run it on a Samsung Galaxy S with 2.2 installed. It never dropped below the Samsung's fps limit of 56 fps no matter what i did...very cool!
Is it your SGS? When will be support for OGL 2.0? ;D

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: Alien Runner W.I.P
« Reply #64 on: November 27, 2010, 02:59:58 pm »
No, it wasn't mine. Support for 2.0 will be added when i have a capable phone and there's actually a real need for it. Currently, i don't see any...

Offline raft

  • quad
  • ******
  • Posts: 1971
    • View Profile
    • http://www.aptalkarga.com
Re: Alien Runner W.I.P
« Reply #65 on: December 14, 2010, 12:25:59 pm »
Has some simple sound effects now. I tried to add music too, but it either needed too much memory or was annoying because it looped after a few seconds, so i finally decided against it.

BTW: Use ogg, not wav when using the SoundPool...

seems as SoundPool is not suitable for -relatively- long sounds like music. -at least on N1- MediaPlayer can effectively handle a few minutes long music files

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: Alien Runner W.I.P
« Reply #66 on: December 14, 2010, 03:00:27 pm »
Thats because SoundPool decompresses after loading and MediaPlayer doesn't. However, using MediaPlayer on a phone like mine leaves not enough cpu available for the game to run fast enough.
« Last Edit: December 14, 2010, 03:02:18 pm by EgonOlsen »

Offline paulscode

  • double
  • *****
  • Posts: 863
    • View Profile
    • PaulsCode.Com
Re: Alien Runner W.I.P
« Reply #67 on: December 14, 2010, 05:57:06 pm »
I'm working on a software mixer in native code.  It might be a better option for long sounds.  I'll post the code when I get it working.

Prafful

  • Guest
Re: Alien Runner W.I.P
« Reply #68 on: February 09, 2011, 03:55:54 pm »
Is "alien runner" code available for study?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: Alien Runner W.I.P
« Reply #69 on: February 09, 2011, 05:37:09 pm »
Not yet, but i can zip the project files and upload it if it helps to look at some undocumented. messy code.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: Alien Runner W.I.P
« Reply #70 on: February 09, 2011, 06:04:08 pm »
Here's the project: http://jpct.de/download/AlienRunner-AE.zip

Edit: A word about the license for these sources...basically, it's the same "do with it whatever you want"-license with one exception: I don't want to see modified Alien Runners appear in the market. You are free to use the sources, extract stuff, add stuff...build your own game based on them. But please don't change two textures and call it Belien Runner or similar. It's not worth it anyway, because Alien Runner is only a mediocre game.
« Last Edit: February 09, 2011, 11:52:29 pm by EgonOlsen »

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Alien Runner W.I.P
« Reply #71 on: February 10, 2011, 09:29:03 pm »
Thanks, it is useful :)

Prafful

  • Guest
Re: Alien Runner W.I.P
« Reply #72 on: February 15, 2011, 03:06:51 pm »
Thanks, it is useful :)
No worries, EgonOlsen: I will try to document the code and publish it back. It might help other learn the engine like it helped me.

Offline tbtest550

  • byte
  • *
  • Posts: 1
    • View Profile
Re: Alien Runner W.I.P
« Reply #73 on: May 13, 2011, 05:27:57 am »
 I have a simple question after learning your code. why don't u use collisonevent and collisionlistener to instead of foreach. does it because of the efficiency ???

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: Alien Runner W.I.P
« Reply #74 on: May 17, 2011, 11:20:51 am »
I use this polling instead of the events to avoid object creations. Each event creates a new instance and on older devices, this may become an issue.