Jump to content


Photo

Open Source Games?


  • Please log in to reply
7 replies to this topic

#1 PlopperZ

PlopperZ

    Huh?

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1044 posts

Posted 14 July 2008 - 03:09 PM

Hi- me again.

I'm mildly interested in trying to learn Fenix again.
Tutorials don't help me. I think the only thing left for me is to look at the source of a completed Fenix game for the GP2X and see if I can understand how it works.
The problem is, I can't seem to find any open-source GP2X fenix games. I've searched around here and the archive, but I appear to be missing it. I'm sure it's out there.
So if you could point me in the right direction, I'd really appreciate it.

#2 Rincewind

Rincewind

    Member

  • Members
  • PipPip
  • 19 posts

Posted 14 July 2008 - 10:18 PM

Here is a list of Fenix games at Boolean Soup that come with a source file:

http://www.booleanso...&...;di=d&ip=10

These games are not for the GP2X, but that shouldn't matter much if your purpose is to learn from their source files.

#3 PlopperZ

PlopperZ

    Huh?

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1044 posts

Posted 14 July 2008 - 10:25 PM

QUOTE(Rincewind @ Jul 14 2008, 10:18 PM) View Post

Here is a list of Fenix games at Boolean Soup that come with a source file:

http://www.booleanso...&...;di=d&ip=10

These games are not for the GP2X, but that shouldn't matter much if your purpose is to learn from their source files.

I'll take a look.
One of the main reasons I want the code is to see how it deals with button input and the resolution. But this will still be helpful.
Thanks. smile.gif

#4 Mookmac

Mookmac

    GP32 User

  • Members
  • PipPipPip
  • 42 posts
  • Location:England

Posted 20 July 2008 - 11:41 AM

QUOTE(PlopperZ @ Jul 14 2008, 11:25 PM) View Post

QUOTE(Rincewind @ Jul 14 2008, 10:18 PM) View Post

Here is a list of Fenix games at Boolean Soup that come with a source file:

http://www.booleanso...&...;di=d&ip=10

These games are not for the GP2X, but that shouldn't matter much if your purpose is to learn from their source files.

I'll take a look.
One of the main reasons I want the code is to see how it deals with button input and the resolution. But this will still be helpful.
Thanks. smile.gif


I'd suggest looking at some of the sources on fenixonfire. I've started teaching myself fenix in the last few weeks and have found them very useful. Also here is a quick game i put together yesterday - apologies in advance for lack of commenting and indentation. http://mookie.the-bu...paceRocks2X.prg



#5 PlopperZ

PlopperZ

    Huh?

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1044 posts

Posted 20 July 2008 - 11:59 AM

QUOTE(Mookmac @ Jul 20 2008, 11:41 AM) View Post

I'd suggest looking at some of the sources on fenixonfire. I've started teaching myself fenix in the last few weeks and have found them very useful. Also here is a quick game i put together yesterday - apologies in advance for lack of commenting and indentation. http://mookie.the-bu...paceRocks2X.prg

I've looked at fenixonfire. I did help me learn how the language works, but it didn't help me learn how to make games specifically for the GP2X.
I think the only way I can learn this language is with trial and error, starting out with somebody else's code (with their permission, of course) , and modifying it until I can underst and what I did right and wrong. It's probably not the best way to go about learning a language.
Does your game run on the 2X?

#6 Redshift

Redshift

    Member

  • Members
  • PipPip
  • 13 posts

Posted 24 July 2008 - 06:37 AM

QUOTE(PlopperZ @ Jul 14 2008, 11:25 PM) View Post

One of the main reasons I want the code is to see how it deals with button input and the resolution.

CODE
set_mode(320,240,16);

This sets the screen surface to be 320*240 and 16bpp

CODE
if(key(_alt))
Do Some Stuff
End

_alt is the B button on the GP2x. There is a full list of the buttons and their symbolic constants in the Readme files supplied with the GP2x fenix runtimes.

Edited by Redshift, 24 July 2008 - 06:37 AM.


#7 PlopperZ

PlopperZ

    Huh?

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1044 posts

Posted 24 July 2008 - 11:16 AM

Thanks, that's all I needed happy.gif

#8 Redshift

Redshift

    Member

  • Members
  • PipPip
  • 13 posts

Posted 24 July 2008 - 12:49 PM

No problem.