Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » A.cc ChristmasHack

This thread is locked; no one can reply to it. rss feed Print
A.cc ChristmasHack
OICW
Member #4,069
November 2003
avatar

I'm counting with shipping only source and data. There will be txt file with instructions how to build this simple game. But at first I must find a bug in my memory allocation :-/

[My website][CppReference][Pixelate][Allegators worldwide][Who's online]
"Final Fantasy XIV, I feel that anything I could say will be repeating myself, so I'm just gonna express my feelings with a strangled noise from the back of my throat. Graaarghhhh..." - Yahtzee
"Uhm... this is a.cc. Did you honestly think this thread WOULDN'T be derailed and ruined?" - BAF
"You can discuss it, you can dislike it, you can disagree with it, but that's all what you can do with it"

Thomas Harte
Member #33
April 2000
avatar

Quote:

Personally, my game is totally retro, so I doubt the source & data will take over a megabyte in the end. But you never know about EXEs and DLLs. Shrug

Ditto - my source + data currently total something like 264 kB of ZIP data. I could crush that substantially further if I had time to play around with sound generation, but I don't so I'm wastefully using fully prerendered WAVs. I think I actually have a really cool retro feel to my game, so hopefully if I can fix up the gameplay a little it won't be too bad.

Jakub Wasilewski
Member #3,653
June 2003
avatar

I just had a very hard day at the university. I had an exam, taken on a bunch of computers. I filled in my test in time by pressing the correct button and waited for the transaction to finish. It didn't, so I called the test supervisor to look at my computer. He did so, and then went on to check if he got my submitted results on his computer. Then he said that everything was in order (despite the fact that my monitor still displayed "Transmitting data..."), and that I can leave.

So I did. When the time came for looking at the test results, I wasn't even on the list. The guy supervising us was nowhere to be found (after all, it's Saturday... who the hell schedules a test on Saturday?), and the professor claims that he never even saw my name amongst the submitted results.

What's funnier - this is the only exam on this course in this semester, which means that I won't be allowed to try the final exam - because I have 0 points. I spent the major part of the day trying to find out where the heck my results are and why they weren't on my professor's desk. The supervisor (I managed to catch him on cellphone) claims that he has sent everything.

Sorry for the rant. On topic of the competition:

It seems to me that option 2) has gathered the most following. That's great, because that is the option I like the most myself. I'll amend the rules and put up a warning on the site.

The final idea will be something like this:
- you are required to submit one ZIP, 1,000,000 bytes or less in size, which contains all the source and game data.
- you are allowed to additionally submit another ZIP, up to 10,000,000 bytes in size, which would contain only binaries and shared libs needed. No duplication of game data - all the game data would sit in the first archive.

I don't want to dwell on this longer - I really would like that implemented fast. I don't know how much time the issue with the exam will eat (at that point, I think that, at best, I will be allowed to take the test once more with a different set of questions), so I don't have how much time I'll have on my hands. I still have to start work on my entry, but I'm mentally exhausted for now :(.

So long. Keep up the good work, all of you. I'll try to make the modifications before 21:00 GMT.

---------------------------
[ ChristmasHack! | My games ] :::: One CSS to style them all, One Javascript to script them, / One HTML to bring them all and in the browser bind them / In the Land of Fantasy where Standards mean something.

Billybob
Member #3,136
January 2003

Sorry to hear about what happened Jakub. Finals are always hectic and annoying.

Anyway, we all appreciate your efforts in keeping this thing going. gets back to work

Thomas Harte
Member #33
April 2000
avatar

Quote:

It didn't, so I called the test supervisor to look at my computer. He did so, and then went on to check if he got my submitted results on his computer.
...
When the time came for looking at the test results, I wasn't even on the list ... which means that I won't be allowed to try the final exam.

Naturally you're going to fight this? How long do you have until the final, and have you contacted the department committee (or whoever is in charge of this stuff in your course's hierarchy) to sort this out? I can't see how it would hurt them to let you sit the final while from their point of view the doubt persists and then to strike you from the list if they ultimately find that you didn't take or pass the earlier test - which of course they won't.

Quote:

you are allowed to additionally submit another ZIP, up to 10,000,000 bytes in size, which would contain only binaries and shared libs needed. No duplication of game data - all the game data would sit in the first archive.

I don't want to dwell on this longer - I really would like that implemented fast.

In that case sorry to dwell, but I was planning on submitting a range of binaries for all three major Allegro targets - the third being MacOS X. Unfortunately the artificial separation of data and program files is something that isn't really maintained in the Mac world, instead applications come as a bundle, which means that a single icon represents all of the binary and data files for an application. To install the application you drag its icon to your /Applications folder, to uninstall it you drag the icon to the trash.

The icon actually represents a directory structure that includes the binary and the data files. It is possible to delve inside using the Finder (analogue to the Windows Explorer) but the layout isn't very user friendly and it isn't always obvious where the programmer expected data files to be put - especially as vanilla Allegro ignores the normal pattern of doing things.

The normal Mac user will consider an application that stores its data files separately ugly and hard to manipulate. Not as bad as a program with a Windows style installer, which usually simply won't get installed, but pretty evil. Of course keeping a Mac application bundle in a zip file rather than a Mac-ordinary dmg virtual disk images will produce some ugly extra files if extracted on a Windows or Linux machine, but I can live with that.

If the consideration is space, could it not be 10,000,000 bytes without data, 9,000,000 with - so that if the user wishes to duplicate data files they can simply "pay" for it by giving back what theoretically could be duplication of source code zip contents?

Quote:

I still have to start work on my entry, but I'm mentally exhausted for now

I'm virtually done with mine. It helps that I started on a framework that included functioning placeholder title and instruction screens two days early, but even considering that I think I may have aimed too far on the simple side with gameplay. I can add some extra graphics, I suppose. At least I've managed to make it much more fun than it was, albeit at the cost of now having only a much weaker link with the spirit of the descriptions sent to me.

Quote:

Anyway, we all appreciate your efforts in keeping this thing going. gets back to work

I want to second this. I have personally failed miserably to organise two competitions now, so I'm in awe.

Jakub Wasilewski
Member #3,653
June 2003
avatar

Quote:

Sorry to hear about what happened Jakub. Finals are always hectic and annoying.

Those are not the final exams yet. In Poland, we have the winter term finals in Jan/Feb. Those are just mid-term exams that determine whether you are allow to take the finals or not, and with what base/starting grade.

I'll sort this out somehow, but I was really looking forward to the free time. Now it seems that I won't waste my time on learning anymore, but on chasing different officials across the buildings :P.

Quote:

Anyway, we all appreciate your efforts in keeping this thing going. gets back to work
I want to second this. I have personally failed miserably to organise two competitions now, so I'm in awe.

That's great :). But I don't really think that I'm doing such a good job, considering how many things need constant tweaking and changes. I'm doing my best, though.

Quote:

If the consideration is space, could it not be 10,000,000 bytes without data, 9,000,000 with - so that if the user wishes to duplicate data files they can simply "pay" for it by giving back what theoretically could be duplication of source code zip contents?

Sure, no problem. I'll just allow including an exact duplicate of the data from the 1MB zip.

---------------------------
[ ChristmasHack! | My games ] :::: One CSS to style them all, One Javascript to script them, / One HTML to bring them all and in the browser bind them / In the Land of Fantasy where Standards mean something.

Felipe Maia
Member #6,190
September 2005
avatar

I see no reason why the data cannot be in both zips as long as they're the same. I think that I won't have enough time to finish my game, but let's see. starts working.

relpatseht
Member #5,034
September 2004
avatar

I will probably have enough time once I get passed these really odd preliminary bugs (such as my prog only accepting keyboard input for the short time it is running before set_gfx_mode has been called)

Thomas Harte
Member #33
April 2000
avatar

Quote:

I see no reason why the data cannot be in both zips as long as they're the same. I think that I won't have enough time to finish my game, but let's see. starts working.

I seem to be having quite the opposite problem. The thing I planned proved to be so much easier than I thought it would be that apart from one graphic I'm finished. I guess I get a lot of time to tweak the difficulty curve, which at the minute doesn't really climb like I'd like it to. Although I am enjoying my little game much more now than I was, so either the various tweaks and changes I've made have worked or it's a grower!

EDIT: I even double checked the name of the person I'm making for (my guess was correct!) and already inserted the near-obligatory reference to them. Indeed you now play the game as that person.

Felipe Maia
Member #6,190
September 2005
avatar

I'll make sure to use C++ next time and use premade data structures, since I seem to lose a lot of time making my own in C. I'm dumb!(this was not a l.ol)

EDIT: By the way, can any of you give me a good font that could be loaded with allegro itself or maybe with the library it might be required? I didn't want to lose more time in that.

Thomas Harte
Member #33
April 2000
avatar

Quote:

EDIT: By the way, can any of you give me a good font that could be loaded with allegro itself

All I can offer is the slightly illegible Gothic thing I used several years ago in my Anarchy project, shown more clearly here in something else:

{"name":"Anarchy1996-1Allegro.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/9\/b949a3ab5aafc2cffafba70fa173f540.png","w":640,"h":480,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/9\/b949a3ab5aafc2cffafba70fa173f540"}Anarchy1996-1Allegro.png

Presumably that doesn't fit the bill? On the off chance that it does, it's included in the datafiles of both real Anarchy and "Anarchy: Early 1996 Turbo C attempt - 2005 Allegro update" (which is a much lighter download) on my members.cc site.

Felipe Maia
Member #6,190
September 2005
avatar

In fact it does quite fit it, at least it's better than allegro's default font. Thanks. Care to teach me the basics of using it? I don't feel like messing with your source-code.

EDIT: Actually, it seems pretty easy, nevermind.

EDIT2: My compiler just went crazy now, and I can't figure out what's wrong. Is global variable initialization bad programming?

//global variable
int x = 0;

EDIT3: Never thought that the compiler would go so crazy for something so silly, I just forgot the ";" on the end of a declaration on a header file.

relpatseht
Member #5,034
September 2004
avatar

Well, I have an arial font I use with allegrogl that I made for openglui. You may have to tweak it a littlbe, but it will save time.

Onewing
Member #6,152
August 2005
avatar

Quote:

By the way, can any of you give me a good font that could be loaded with allegro itself

I've only glanced at fonts, but from what I can tell, you can use the Allegro Font Editor to load any font on your computer that you'd use for some other program, say MS Word, and put it into an allegro game.

------------
Solo-Games.org | My Tech Blog: The Digital Helm

Felipe Maia
Member #6,190
September 2005
avatar

Thanks Steven, I'm gonna try it now.
Anyone know how to do rotations on images on photoshop without anti-aliasing, or even to disable anti-aliasing for good?

OICW
Member #4,069
November 2003
avatar

Damn beaten, I was just going to post Allegro Font Editor. Anyway I have functioning framework of my game and terrible headache from palettes and transparent colors. I was trying to change the index of color by redefining the macro in my headers but it didn't helped.

[My website][CppReference][Pixelate][Allegators worldwide][Who's online]
"Final Fantasy XIV, I feel that anything I could say will be repeating myself, so I'm just gonna express my feelings with a strangled noise from the back of my throat. Graaarghhhh..." - Yahtzee
"Uhm... this is a.cc. Did you honestly think this thread WOULDN'T be derailed and ruined?" - BAF
"You can discuss it, you can dislike it, you can disagree with it, but that's all what you can do with it"

Thomas Harte
Member #33
April 2000
avatar

Well, I've tweaked mine heavily and have just made my first submission! I still think that the idea I invented based around my receiver's suggestion was probably too simple and more of a 2 day SpeedHack type thing than an 8 day Christmashack, but I find the end game strangely mesmerising so I'm happy with that. I'm also busy tomorrow and Tuesday, so if I hadn't started on my framework two days early I probably would only have finished on the final day. I'll probably just sit around tweaking it from now on.

How is everyone else doing? Has anyone else, like me, picked something that was probably a little too simple? Is anyone suffering with something that is possibly slightly too complicated?

Quote:

Anyone know how to do rotations on images on photoshop without anti-aliasing, or even to disable anti-aliasing for good?

Sorry, not a clue. But the popular shareware Paint Shop Pro can do it if you can live with a few days of that - although perhaps writing a tiny Allegro program with rotate_sprite would be less hassle than downloading and installing something like that. Alternatively, if your ultimate recipient isn't me and you're happy with me knowing it isn't me then I could do them for you via an email swap.

OICW
Member #4,069
November 2003
avatar

There's no way how to disable antialiasing in Photoshop (as far as I know) and I don't recommend to do graphics with it. If you want to use it you have to use .tga files which can store alpha channel and then use draw_trans_sprite()
Try to use Graphic Gale.
Well Thomas I'm suffering from headaches for the time being, but there's only two related to the Christmashack, first I posted above - 8bpp palettes, and the second is that I don't know whether continue with the current work or write something else (maybe I can finish both). Yeah maybe there's one more: graphics.

[My website][CppReference][Pixelate][Allegators worldwide][Who's online]
"Final Fantasy XIV, I feel that anything I could say will be repeating myself, so I'm just gonna express my feelings with a strangled noise from the back of my throat. Graaarghhhh..." - Yahtzee
"Uhm... this is a.cc. Did you honestly think this thread WOULDN'T be derailed and ruined?" - BAF
"You can discuss it, you can dislike it, you can disagree with it, but that's all what you can do with it"

Thomas Harte
Member #33
April 2000
avatar

OICW said:

Yeah maybe there's one more: graphics.

Oh, you won't believe how simple my graphics are - part of the design brief I was forced to adopt involved being able to survive without any talented artistic input! I'll post a screenshot as soon as the competition ends so that you can see, although I'm definitely marking mine to be publically available after the event so you can check it out yourself maybe.

Actually, who's up for a mass screenshot posting thread kicking off at 16:00 on the 23rd? Obviously not a formal part of the competition, but if we can all try and grab an establishing screenshot (e.g. the title screen) and a "cool" in-game shot then it should be interesting to take a step back at the end and see what everyone has come up with. Especially once we can reveal titles, base descriptions and recipients!

miran
Member #2,407
June 2002

Quote:

How is everyone else doing?

If I didn't have to go to work tomorrow, I could have finished it in time no problem. But I still have so much to do and so little time, I'm not sure how "finished" my game will be. It's a relatively simple game and I reused my framework that I also used in the last Speedhack but I wasted a lot of time I normally wouldn't if it was a 2 day competition. I still have a bit of pixel work to do, collisions, AI, levels, sounds, music, etc. Basically everything. All I have so far is a few sprites that move on the screen... :(

--
sig used to be here

Billybob
Member #3,136
January 2003

Quote:

How is everyone else doing? Has anyone else, like me, picked something that was probably a little too simple?

I was debating last night whether I should switch to a different idea or stick with the one I'm working on. :P I actually wanted to switch to a different, simple idea, but I decided to stick with what I have.

Let's see here, 5 more days. Should be plenty of time.

EDIT: By the way, one of the most annoying things is when you run into a problem. With time short you can't just post the problem and then read a book until the problem is solved; you have to either fix it or work around it and keep going with the rest of the project. :-/
I'm also having trouble keeping track of what to do next. There's so many things that need to get done before I even have something to work with. One of the reasons why I wanted to switch ideas. Like, I'll have spent the past 30 minutes doing one feature, compile, run, and then I have to go do 3 other features before this feature even does anything.

Krzysztof Kluczek
Member #4,191
January 2004
avatar

Quote:

How is everyone else doing?

I'm still designing things, but I have solid idea for a nice game. It's mostly based on one of my abandoned projects, but I'll have to write everything from scratch since original one was made in Pascal in mode 13h (but I will reuse some levels from it). :)

BAF
Member #2,981
December 2002
avatar

I'm still working on my idea, kind of... working along (actually i havent done much in the past 2 days :-/).

relpatseht
Member #5,034
September 2004
avatar

Things are coming along ok, but far from good. Whenever I start to make a little bit of progress, I come across an odd bug. But, I do have a completley textureless version of the main char on the screen that moves around
(Textureless because the allegrogl make texture fuction below for some reason doesn't work, despite that the bitmap is loaded fine.)

glEnable(GL_TEXTURE_2D);
BITMAP* texture = load_bitmap(material<i>.textureFilename.c_str(), 0);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
material<i>.texture = allegro_gl_make_texture_ex(0, texture, GL_RGB);

Onewing
Member #6,152
August 2005
avatar

Quote:

How is everyone else doing?

I've made a well-rounded game in a month, but a week is a different story. Plus, I'm still relatively new at the allegro library, so I have to spend a lot of time checking the manual. I was hoping to catch up to my planned timeline today, but I'm having this problem. :(

------------
Solo-Games.org | My Tech Blog: The Digital Helm



Go to: