|
Pure Allegro Competition returns after 2 years. |
Siloh
Member #2,786
October 2002
|
[URL removed] It has begun. |
spellcaster
Member #1,493
September 2001
|
Quote: 1) Everything must exist in your main function.
You realize that 1) implies 5), 6) and 7)? You cannot use timers. Besides that nitpicking, what's the idea behind it? -- |
23yrold3yrold
Member #1,134
March 2001
|
Yay, yet another comp And yes, those rules (especially regarding the preprocessor) seem a bit odd ... -- |
Siloh
Member #2,786
October 2002
|
The rules have been clarified a bit. Quote: You cannot use timers. Find another way to do it, that's the idea. |
spellcaster
Member #1,493
September 2001
|
Why don't you add a requirement like "you may not use any functions containing the letter 'n'"? In other words, what you want us to do is to code in the worst style possible, right? Anyway... you can still use Macros without any problems. All you need to do is to call the preprocesser explicitely, and then submit the output of the preprocessor run. And by using c++ you can circumvent that anyway, since you are allowed to define types (including classes which can include methods) outside of main(). -- |
Thomas Fjellstrom
Member #476
June 2000
|
rule: You may not write your own functions. (methods be functions) -- |
spellcaster
Member #1,493
September 2001
|
methods are no functions. That's why they are called methods. Anyway... by using some global vars you can fake function calls anyway. It's just more effort. What you'd need to do is to make all your functions part of a giant switch. Would work well, but is pretty pointless to do. It's also no real fun. The "code a game in 23 lines" was more fun and more hackish -- |
Thomas Fjellstrom
Member #476
June 2000
|
I agree. the 20 line game thread did rock. But yeah, a big switch would work, and apparently it got done the first time arround, someone made a VM in thier main loop to do all the tricky stuff... oh, method == fancy function. same thing. they just get some extra context. -- |
Evert
Member #794
November 2000
|
Which reminds me, I had an archive of all the Allegro 20 liners posted in that thread. I'll see if I can dig it up and post it, some of those games were nice. Hmm... maybe it'd be fun to do something like that again? |
Fladimir da Gorf
Member #1,565
October 2001
|
Maybe a 20 line demo compo or something? OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori) |
Thomas Fjellstrom
Member #476
June 2000
|
Or how bout the scarriest C code you've ever seen compo? I have some scarry code, that isnt working how I thought it should.. but then, thats the nature of scarry code.
Yes people, this is C. It WILL NOT compile as C++ code.. or if it does, you're damn lucky. -- |
Siloh
Member #2,786
October 2002
|
Please don't post if you aren't going to participate, sorry but I don't like coming here and reading a bunch of crap posts about peoples' opinions. Here is my entry... I could add alot more too it (like explosions and stuff), but I want to keep it the way it is for now. [URL removed] |
pantz
Member #3,387
March 2003
|
Heh your entry isn't valid, it breaks the rules |
spellcaster
Member #1,493
September 2001
|
... checking ... -- |
Thomas Fjellstrom
Member #476
June 2000
|
I do belive he meant no #define ing on your part... -- |
spellcaster
Member #1,493
September 2001
|
He said no macros besides "END_OF_MAIN". -- |
X-G
Member #856
December 2000
|
How does that "random" thing work? I can't see any randomization anywhere ... -- |
DanielH
Member #934
January 2001
|
Give up now and change the rules. And where did you come from? You dare bitch about us posting crap. You've only have three posts total. All in this thread. |
Thomas Fjellstrom
Member #476
June 2000
|
Hes a regular in #allegro... Quote: How does that "random" thing work? I can't see any randomization anywhere ... using what was in a certian memory position last... thats likely to be fairly random. -- |
X-G
Member #856
December 2000
|
It's just as likely to be all zeroes. -- |
Thomas Fjellstrom
Member #476
June 2000
|
Quote: It's just as likely to be all zeroes. Yup. Just as an infinite amount of monkies taping an infinite amount of keys on an infinite number of typwriters can produce all of Shakespeare's plays. -- |
X-G
Member #856
December 2000
|
It's not random - it's just undetermined. -- |
Niunio
Member #1,975
March 2002
|
I think this compo is a good idea. It remembers me the old good times I program in GW-BASIC...:) The random isn't hard to get, just with some maths that includes divisions of odd numbers, mods, rounds and all that... May be I'll try, if I have a good idea this weekend;) A question: #define M_PI 3.141569... is a macro/preprocessor directive? ----------------- |
Thomas Fjellstrom
Member #476
June 2000
|
Quote: It's not random - it's just undetermined. Then, what is random? -- |
X-G
Member #856
December 2000
|
One feature of the randomosity required here would be fairly even distribution - something that reusing old memory definitely will NOT have. Quote: A question: #define M_PI 3.141569... is a macro/preprocessor directive? Yes. So is END_OF_MAIN, SCREEN_W, SCREEN_H, MIN, MAX, GFX_AUTODETECT, etc ... -- |
|
|