|
|
| Demo game |
|
HoHo
Member #4,534
April 2004
|
I would like if you: -post the file(or several files packed together in .zip file) 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. __________ |
|
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
|
Spellcastah: Upload both versions. Or people could PM you and then you mail them... |
|
Evert
Member #794
November 2000
|
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
|
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
|
Michael, so the single fileness of the current demo is what a newb would prefer? Somehow I doubt it. -- |
|
Michael Jensen
Member #2,870
October 2002
|
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
|
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. --- |
|
spellcaster
Member #1,493
September 2001
|
Ok, I'll split the template into three files then. -- |
|
da_flo
Member #1,907
February 2002
|
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
|
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. 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
|
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: sound good?
|
|
spellcaster
Member #1,493
September 2001
|
Sorry, I started with my summer games demo, so I kinda forgot to update the demo template and to post ithere. -- |
|
Michael Jensen
Member #2,870
October 2002
|
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.
|
|
Evert
Member #794
November 2000
|
Awesome Mike! 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
|
Damn, that's really cool. Simple and easy to use it seems. |
|
Evert
Member #794
November 2000
|
I hear there's need for an AllegroGL demo too. |
|
Trezker
Member #1,739
December 2001
|
Hmm, yeah, that's a nice idea... |
|
Michael Jensen
Member #2,870
October 2002
|
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
|
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. 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. ________________________________________ |
|
Trezker
Member #1,739
December 2001
|
Including a guide to modular programming in the demo folder might be a good idea. |
|
Michael Jensen
Member #2,870
October 2002
|
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...
|
|
Evert
Member #794
November 2000
|
Ok, the relevant links are: [url http://alleg.sourceforge.net/logos.html] 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
|
I like this one, but I don't think video fits in... |
|
|
|