Allegro.cc - Online Community

Allegro.cc Forums » Game Design & Concepts » Demo game

This thread is locked; no one can reply to it. rss feed Print
Demo game
HoHo
Member #4,534
April 2004
avatar

I would like if you:

-post the file(or several files packed together in .zip file)
-divide into several files

That's because dividnig stuff into seperate files is a Good Thing. Having everything in a several thousand lines long file is just awful imo. After all, how long would it take for a newbie to learn how to seperate things? Having an example to see how it's done it shouldn't take long.

__________
In theory, there is no difference between theory and practice. But, in practice, there is - Jan L.A. van de Snepscheut
MMORPG's...Many Men Online Role Playing Girls - Radagar
"Is Java REALLY slower? Does STL really bloat your exes? Find out with your friendly host, HoHo, and his benchmarking machine!" - Jakub Wasilewski

Inphernic
Member #1,111
March 2001

Quote:

Oh, I wonder if I can use one of those old NES running pads for the game? hehe.

Real men use Quickshots and, after breaking a number of them, curse loudly and buy a Tac-2.

Trezker
Member #1,739
December 2001
avatar

Spellcastah: Upload both versions.

Or people could PM you and then you mail them...

Evert
Member #794
November 2000
avatar

Nah, I guess I should make a website with the relevant information and some links.

Probably also a way for people to actually register, but I don't have a clue on how to set up something like that (I probably can't anyway, because of my provider), and I don't have the time anyway.

Michael Jensen
Member #2,870
October 2002
avatar

Yeah post the code up -- most beginners like one single file, I think that's best -- if you want a site with dynamic content, I can build an asp.net site, if you wanna explain what you want -- but no real host, I can host from my xp computer which occasionally goes down (few hours a week) (see http://overandover.no-ip.com) -- but it's a little slow... (not extreemly, but much slower than something like a.cc, etc...)

Thomas Fjellstrom
Member #476
June 2000
avatar

Michael, so the single fileness of the current demo is what a newb would prefer? Somehow I doubt it.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Michael Jensen
Member #2,870
October 2002
avatar

TF- It's what I prefered when I first started to program, and that's really all I have to go on -- My first big project ended up being about 10 K lines of code in one big file... I still don't always put small projects in more than one file -- I think something small like a demo would go well in one file -- but if the template is huge or something that's cool too. How ever you guys wanna do this, I can just go with it.

Tobias Dammers
Member #2,604
August 2002
avatar

The fact that newbies like everything in one big file does not mean this is proper coding practice. I think that especially in an example such as the allegro demo game, proper coding style should be demonstrated. Sooner or later, the newbie in question will be making larger projects, and at that point he/she will come whining about long compile times and errors that are impossible to find because there's 10000 lines of code, with lots of garbage in between.

---
Me make music: Triofobie
---
"We need Tobias and his awesome trombone, too." - Johan Halmén

spellcaster
Member #1,493
September 2001
avatar

Ok, I'll split the template into three files then.

--
There are no stupid questions, but there are a lot of inquisitive idiots.

da_flo
Member #1,907
February 2002
avatar

The point is not exactly that newbies like everything in one big file. It's in fact that they often do know know or understand how to compile mutiple files projects, and when they do, they often do not know how to handle those multiple files properly, to avoid usual pitfalls like multiple declarations errors due to headers, or linker errors due to the lack of use of extern, and so on.

Evert
Member #794
November 2000
avatar

Quote:

The point is not exactly that newbies like everything in one big file. It's in fact that they often do know know or understand how to compile mutiple files projects, and when they do, they often do not know how to handle those multiple files properly, to avoid usual pitfalls like multiple declarations errors due to headers, or linker errors due to the lack of use of extern, and so on.

Hence the raison d'etre of Allegro's demo game.
It's fine if it is a multi-file project, as long as it's clearly commented and documented, so that we can say if you want to know how to make a multi-file project, just look at Allegro's demo game.

EDIT: not to say that the demo game has to be multiple source files, but it'd be ok for it to be so. Certainly so if we're to have a page with all entries available for download.

Michael Jensen
Member #2,870
October 2002
avatar

Since the template isn't posted (so I won't start on the demo game yet) What did you have in mind for the web site?

I was thinking as far as public pages go:
a welcome page, listing details on the whole project/competition/whatever,
a public page for listing all the projects, their team members, a small description field for each proj., maybe a 160x120 screen shot that can be clicked on and enlarged for each proj.... oh and a download
link, maybe the template will be the first listed project on this page.
public signup/login pages
As far as private pages go: a couple of private pages, where each user can manage their project....

sound good?
I can't guarantee this site will stay up longer than 6 months after the projects are all done and over, but I can put something mostly functional up for the now... It will take a couple of days tho, I'll get started on it tonight unless anyone thinks that this is really not needed, or unless anyone else steps up to the plate...

spellcaster
Member #1,493
September 2001
avatar

Sorry, I started with my summer games demo, so I kinda forgot to update the demo template and to post ithere.
Current state is attached.

--
There are no stupid questions, but there are a lot of inquisitive idiots.

Michael Jensen
Member #2,870
October 2002
avatar

I'm quicker than I thought I was. Unless anybody has any objections, I put together a site for this, and everyone interested can head over and register up/post screen shots, and a downloadable zip/post news/leave feedback/manage their projects (description, name, etc) I'm impressed, you should be too.

Allegro Demo Project Site

Evert
Member #794
November 2000
avatar

Awesome Mike!
Can you put the requirements for qualification up there? They're in the first post (except for Shawn's `Welcome to Allegro' sample). This should probably be extracted from the demo.dat file and uploaded for download.

It's no big deal if the site can't stay up longer than 6 months after the competition. Once the winner is known, all the games and sourcecode (including that of the current demo) should move to Allegro's homepage anyway as an addition to the demo that comes with Allegro.

Trezker
Member #1,739
December 2001
avatar

Damn, that's really cool. Simple and easy to use it seems.
Too bad I'm so busy in school, otherwise I would've started working on a demo already. But, if you're learning openGL, there is no time for anything else...

Evert
Member #794
November 2000
avatar

I hear there's need for an AllegroGL demo too.

Trezker
Member #1,739
December 2001
avatar

Hmm, yeah, that's a nice idea...
But I think that's gonna have to wait 'til summer...
And I have to figure out some nice gamedesign...
Perhaps, Dropzone3d that I've thought about making before...

Michael Jensen
Member #2,870
October 2002
avatar

OK, I addded the requirements on the News page (the first one that comes up) and just to clarify, if anyone wants to post any news item, you can just log in and click "make announcement", (but don't abuse this privlidge or I might have to revoke it from your account, as long as it's something related to this event, and it's not offensive, blah blah blah, you have nothing to worry about :-)) Right now there is no mark up in the posts, so I think I'm going to try to adopt the allegro way of marking things up. with the square brackets, etc... I should be home again in about 10 hours so, lets see what starts to happen on the site -- this is exciting (first site I've done with an actual functional purpose...)

Evert
Member #794
November 2000
avatar

Looks fine. You may want to add my name somewhere to the requirements, as it's basically a cut&paste from my first post in this thread.
Do you want links to images of Al and Alex and the Allegro logo?

Oh, just one nitpick: it's Shawn, not Sean. ;)

Tobi Vollebregt
Member #1,031
March 2001

Quote:

The point is not exactly that newbies like everything in one big file. It's in fact that they often do know know or understand how to compile mutiple files projects, and when they do, they often do not know how to handle those multiple files properly, to avoid usual pitfalls like multiple declarations errors due to headers, or linker errors due to the lack of use of extern, and so on.

Personal experience: when I started coding using C and Allegro really didn't know about multiple file projects - my first multiple file projects actually were one .c file with a lot of .h files which declared&defined functions used in the .c file. Only after a few projects I discovered how to handle this properly, so I would say: use a few source files for the demo but not too much because it's really frustrating if you look for something in an example/demo and it appears to be in another source file. And of course explain why & how.

________________________________________
website || Zipfile reader @ Allegro Wiki || Download zipfile reader

Trezker
Member #1,739
December 2001
avatar

Including a guide to modular programming in the demo folder might be a good idea.

Michael Jensen
Member #2,870
October 2002
avatar

Quote:

Do you want links to images of Al and Alex and the Allegro logo?

Sure... I'm also thinking about posting the template up there as a download... -- I'd like to see a few more people sign up and post their planned projects/status/screen shots/playable demos in progress etc...

I made the corrections you suggested, feel free to nitpick -- I did add some typecasting functionality for bullets, but I havent compiled it into the release that's running on the site at the moment, I want to add a few more things and then compile them all in at once to minimize the down time([url] comes next...)

...I might also post a resources section, and a small forum if I feel it... :o

Evert
Member #794
November 2000
avatar

Ok, the relevant links are:

[url http://alleg.sourceforge.net/logos.html]
[url http://alleg.sourceforge.net/images/al_couch.png]
[url http://alleg.sourceforge.net/images/alex.png]

The Welcome to Allegro wav should be attached to this post. I can't check because I don't have a soundcard in my computer at the moment.

Trezker
Member #1,739
December 2001
avatar

I like this one, but I don't think video fits in...
http://alleg.sourceforge.net/images/logos/eric_pietrocupo/logo1.jpg



Go to: