LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 09-12-2004, 05:21 AM   #106
ssobeht
Member
 
Registered: Oct 2003
Distribution: Debian Sarge
Posts: 207

Rep: Reputation: 30

gr33ndata,
send an e-mail and i'll send you the latest source. It is written in pure C with SDL. See you.
 
Old 09-13-2004, 04:34 AM   #107
gr33ndata
Member
 
Registered: Aug 2003
Location: DMZ
Distribution: Ubuntu
Posts: 144

Rep: Reputation: 15
What's SDL?
 
Old 09-13-2004, 07:04 AM   #108
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Rep: Reputation: 30
Simple DirectMedia Layer

http://www.libsdl.org/index.php
 
Old 09-13-2004, 01:51 PM   #109
ssobeht
Member
 
Registered: Oct 2003
Distribution: Debian Sarge
Posts: 207

Rep: Reputation: 30
Hey!
i got a sourceforge space for the proyect. http://luciferino.sourceforge.net
I'll upload a temporal webpage and some sources periodically. Let's see if i learn CVS. Cya!
 
Old 09-13-2004, 02:45 PM   #110
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Rep: Reputation: 30
Oh yea, and ssobeht I took a quick look at your code, and is it possible that you could replace some of the integer literals with constant flags? Here is a pseudo-example: if(type == 2) could be changed to if(type == WALL_BOUNCE) or something like that so people who haven't written the code can get an understanding of what is what? Thanks alot.
 
Old 09-13-2004, 03:28 PM   #111
TBomb
Member
 
Registered: May 2004
Location: Great Britain
Distribution: Slackware
Posts: 91

Rep: Reputation: 15
Okay, I'm a little late, but can I help out? I'm afraid I know very little C++ Programming (not much more than cin, couts and loops)... I am an intermediate PHP coder though, I suppose I could to something on the site...? I'd say I'm also an intermediate Photoshoper' aswell.

If I can be any help then I'll do my best.
 
Old 09-13-2004, 04:50 PM   #112
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
Ssobeht has the website up on SourceForge:
http://luciferino.sourceforge.net
There's a source package up there if you want to take a look.
 
Old 09-13-2004, 05:00 PM   #113
ssobeht
Member
 
Registered: Oct 2003
Distribution: Debian Sarge
Posts: 207

Rep: Reputation: 30
Thanx for your suggestion techrolla.
Yes, I have to used more constants. Also constants might be usefull for the player id (state) and the wapon id for example (PID_STANDIND, PID_MOVING, WID_SHOOTING, etc...). I have to clean up the code more (for example, the gam() function can be divided in more functions so it is not that big and difficult).
School starts next week, but it think I'll find time to program anyway .
cya! and thanx
 
Old 09-13-2004, 05:03 PM   #114
ssobeht
Member
 
Registered: Oct 2003
Distribution: Debian Sarge
Posts: 207

Rep: Reputation: 30
TBomb, take a look at the code. Ask whatever you don't understand and think about things that could be added. You can try to test the source under different systems and find bugs. All help is wellcome
 
Old 09-13-2004, 06:19 PM   #115
techrolla
Member
 
Registered: Nov 2003
Distribution: Gentoo, Debian
Posts: 188

Rep: Reputation: 30
Alright ssobeht, I must say that it is looking great! I just compiled in on a powermac g3 under debian woody, so it runs on ppc. Note to others trying to compile this: you must have the SDL libraries. And ssobeht, some findings/problems I had: The character gets stuck in spaces too small for him to move, and that he can "double" jump if he jumps and then presses jump again when he is touching the ledge of something he can't get up, even though the ledge is 90 degrees, so this allows him to get to places he wouldn't normally be able to. That is all I have for now, I will see what I can get out of the code, but you should definately try getting CVS up so that we can always have a new version of the code. Great job!

Edit: Okay I have a few more suggestions. I think you should use a makefile instead of the build script, because the build script will compile the whole program everytime and this takes a long time (relatively speaking of course), and the makefile will better facilitate a larger program, which this game might become. And I can tell that english is not your native language from your spelling of collision I really like what you have done, you have very clean code compared to some other stuff . Anyways, I am willing to mess around with the code if you want to, but I want to make sure I have the newest version and that the version is always updated, so I guess CVS is the way to go for that.

Last edited by techrolla; 09-13-2004 at 07:05 PM.
 
Old 09-13-2004, 07:50 PM   #116
ssobeht
Member
 
Registered: Oct 2003
Distribution: Debian Sarge
Posts: 207

Rep: Reputation: 30
Hi!

I've also thought about the makefile think, but i havent found the time to write it.

In relation to those bugs. I already noticed that the player gets stuck in a certain poin of the test level. I know why it is caused, and it must be solved in the level desgn better than in the code. It is caused because there is an inclined surface and a roof. Whe the player try to "climb" an inclined surface, for each inclined pixel the player goes 1 pixel up, without checking if his head will go into a solid surface. So he gets stuck because when you try to move the player is colliding with the roof. I don't now if I have explained it well. Anyway, the easiest way to solve this is adding a barrier in the level mask file at the point where the player should not move anymore to that side, avoiding getting stuck because of moving to much. All software solutions i thought for this add unneeded calculations I think. I dont know I have explained myself very well...
Anyway, I'll take a deeper look into that problem.

Cya an lots of thanx!

edit: Sourceforge uses a bit weird CVS system for security reasons. Anyway, once i get used to it i'll start using it so you can put your hands in the code too. Thanx for your interest.

Last edited by ssobeht; 09-13-2004 at 07:54 PM.
 
Old 09-13-2004, 09:20 PM   #117
qcoder
Member
 
Registered: Oct 2003
Location: United States
Distribution: Debian
Posts: 65

Rep: Reputation: 15
What type of game are you working on?? I may be interested in helping (if you need any more help) depending on what type of game it is.....I have been (although not really recently) working on C++...I haven't really done any graphics programing though.
 
Old 09-14-2004, 05:51 AM   #118
ssobeht
Member
 
Registered: Oct 2003
Distribution: Debian Sarge
Posts: 207

Rep: Reputation: 30
The game is developed using C.
And it is a sidescroling game where you aim with you mouse, so it gives it in some way a fps perspective. My intention is to develop in a way so everything is loaded from external text files, allowing desginers to create their whole game without knowing anything about programming.

Oh, 1 new, my sister is creating a 3 levels game using this engine. I'll help her on adapting it to the engine. Maybe i'll include some of her level in the example data file. cya!
 
Old 09-15-2004, 07:29 AM   #119
ssobeht
Member
 
Registered: Oct 2003
Distribution: Debian Sarge
Posts: 207

Rep: Reputation: 30
Hi!
I added 2 new functions today/yesterday.

a) The sprite data is no longer in the player/gun file, there are separate files for them so the data files are more understandable.
b) Now you can walk backwards so you can shoot to any direction (before, if you aimed to a position which is not in the direction where the player was moving he shot up or down).

you can get the latest source through CVS.

cya!
 
Old 09-15-2004, 09:05 PM   #120
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
Nice work WindowsBurner!

I give WindowsBurner 15 points for getting such a big thread going!


I just wanted to point some things out to all you guys. I also want to say I think what you are doing is great.

I suggest using Allegro (http://www.talula.demon.co.uk/allegro) or SDL (www.libsdl.org) for your base library. Both are OSI and are pretty nice libraries.

For data files, or files containing files, I suggest zziplib (http://zziplib.sourceforge.net).

For sound use OpenAL (http://www.openal.org).

I you guys have any questions related to anything, please feel free to email me at th317erd@hotmail.com

Good luck!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Should I open source my game now? cyb0rg777 Programming 8 10-22-2005 05:49 PM
I want to do a open source project coolguy_iiit Programming 11 04-29-2005 03:47 PM
Is a serious Open Source game possible? Mega Man X Linux - Games 5 09-26-2004 09:50 AM
Help me find an open-source project Creep Programming 4 11-16-2003 10:05 PM
goal of open source project mcd Linux - General 1 09-04-2003 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration