|
MinorHack Returns! |
Jakub Wasilewski
Member #3,653
June 2003
|
I can make the Windows binaries afterwards if someone wants them, it's no big deal. I'll probably participate if the rule won't turn out to be something braindead . --------------------------- |
Epoch
Member #4,737
June 2004
|
Anyone know how to do a precompiler #ifdef to check if the compiler is MSVC? I'm throwing in a macro to fix the for scope. |
Jakub Wasilewski
Member #3,653
June 2003
|
Well, the easiest way if you're using allegro is #ifdef ALLEGRO_MSVC. However, I don't know if anyone still uses MSVC6, which IIRC was the last version to have for scoping problems. --------------------------- |
LennyLen
Member #5,313
December 2004
|
Quote: LennyLen, Zaphos: You guys in? I'm too rusty with Allegro to enter a 1-hour comp. I'd spend 50% of the time looking up the API. I might enter the next 48-hour comp, though probably not since they're always over the weekend, and I never have free time during the weekend (I can easily be working 30 of the 48 hours at this time).
|
Zaphos
Member #1,468
August 2001
|
Quote: I'm too rusty with Allegro to enter a 1-hour comp. I'd spend 50% of the time looking up the API. But all you need is circle()! And maybe textprintf_ex().
|
Epoch
Member #4,737
June 2004
|
Yeah, I'm using MSVC6 |
Zaphos
Member #1,468
August 2001
|
Quote: Yeah, I'm using MSVC6 Why, though? Later versions are free and actually compile standard C++, for the most part.
|
Kikaru
Member #7,616
August 2006
|
Yeah, LennyLen! Join us! Prepare the code base now! |
Epoch
Member #4,737
June 2004
|
I downloaded VSExpress and tried to use it to compile my current project and it threw 80 separate errors on code that compiled fine on VS6, and I just haven't felt like porting the code. I probably should though, I use STL heavily and apparently more recent MSVCs do STL much better. |
CGamesPlay
Member #2,559
July 2002
|
I think I should point out something... Quote:
In addition to the above, try to follow these guidelines. They are not a rules, but if you do not follow them, you run the risk of not having your game judged. If you must use a skeleton, that's fine. But don't be excessive. Really, it's against the spirit of the competition. /me wears badge that says "I coded my MinorHack entry from scratch". -- Ryan Patterson - <http://cgamesplay.com/> |
LennyLen
Member #5,313
December 2004
|
Quote: Yeah, LennyLen! Join us! Prepare the code base now! Maybe if I'm still awake at 7am. I've been up for 44 hours now, and my eyelids are getting very heavy.
|
Kikaru
Member #7,616
August 2006
|
As I mentioned, just initialize Allegro and make a while (!key[KEY_ESC]) { //do something } main loop. I think that counts as a skeleton. [EDIT] |
Zaphos
Member #1,468
August 2001
|
Quote: Really, it's against the spirit of the competition. Well, I don't think there's much difference in spirit between starting with a skeleton or taking five minutes to regurgitate a skeleton from memory. And having a skeleton encourages new people to come in, and makes it more accessible for people who haven't done this sort of thing enough to have the startup code basically memorized. I see very little wrong with using a skeleton.
|
LennyLen
Member #5,313
December 2004
|
Quote: And having a skeleton encourages new people to come in, and makes it more accessible for people who haven't done this sort of thing enough to have the startup code basically memorized It's a little late for this time, but perhaps for the next MinorHack (and subsequent ones), there could be an "official" skeleton that everyone can use. [edit]I'm not gonna make it until 7am. It took me more than twice as long to correct this post than it did to write it.
|
Zaphos
Member #1,468
August 2001
|
Quote: It's a little late for this time, but perhaps for the next MinorHack (and subsequent ones), there could be an "official" skeleton that everyone can use. This was actually sort-of planned at some point, but then dropped -- I'm not sure why. I believe I proposed this skeleton, which I would still be fine with:
|
Epoch
Member #4,737
June 2004
|
Zaphos: Way too much error checking for a hack. Is there an official MinorHack IRC channel? |
Kikaru
Member #7,616
August 2006
|
I made one of my own, which is actually less complex than that.
[EDIT] |
Epoch
Member #4,737
June 2004
|
Internet Relay Chat? I didn't even initialize graphics/timers in my skeleton. I'm wondering if I should. |
Zaphos
Member #1,468
August 2001
|
Quote: Way too much error checking for a hack. Yeah -- I wouldn't go any more complex than it, probably should go less. I figured an official starter code might want to do things 'right', to some greater extent, but Kikaru's approach is also good. (edit: I might go somewhere between, and add some timer code to Kikaru's skeleton, since most games are going to need that too) Quote: What is IRC? It's a chat protocol, so people can have a more real-time discussion.
|
CGamesPlay
Member #2,559
July 2002
|
Quote: makes it more accessible for people who haven't done this sort of thing enough to have the startup code basically memorized. This is the only case I consider a skeleton "acceptable". That is, if you can do it from memory, do it from memory. Epoch: Nope, and you will watch as this thread drops silent for 1 hour coming up here. Quote: What is IRC? Omigosh! IRC is the thing where you go to http://silverex.info and download and install that, then open it, connect to "Freenode", and type "/join #allegro" (without quotes. You will love it -- Ryan Patterson - <http://cgamesplay.com/> |
Zaphos
Member #1,468
August 2001
|
Quote: That is, if you can do it from memory, do it from memory. The idea that copy pasting from memory is 'cooler' than copy pasting from actual code is funny to me, but, you know, whatever you need to do to feel 'hardcore', I guess
|
Kikaru
Member #7,616
August 2006
|
Zaphos
Member #1,468
August 2001
|
Quote: By "timer code" you mean like: That's so bad, but sure. Something to control the speed of the game.
|
CGamesPlay
Member #2,559
July 2002
|
Don't use clock for timing, it's inaccurate 8 yes's and 2 maybes! BAF says he'll be in but a bit late. -- Ryan Patterson - <http://cgamesplay.com/> |
Kikaru
Member #7,616
August 2006
|
Yay! Lots of people! MinorHack FTW! twitch twitch twitch |
|
|