Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Kweepa

#1941
General Discussion / Re: Dear Santa...
Wed 30/11/2005 06:54:07
Dinocrat Stegosaur
2000AD Annual
Slymuck
Lego Space Land
Scalextric Mini Cooper
Emu hand puppet
#1942
Great job munchiez - I particularly like what you did with the turkeys!
#1943
General Discussion / Re: Dear Santa...
Tue 29/11/2005 04:25:32
Quote from: Lord Nipper on Tue 29/11/2005 03:38:18
a riding sheep
You're not Welsh, are you?
#1944
Rel, the Great Underground Empire (or GUE) is the setting for Infocom's Zork and Enchanter games. So you can certainly visit the place! For long enough to need a B&B!
http://en.wikipedia.org/wiki/Zork
(I particularly like Sorcerer. One of my favourite games...)

My votes:

Best idea: seaduck - interesting setting
Best design: Andail - lovely colour scheme and fits the idea well
Best functionality: seaduck - plenty of ways to use the background
Best technique: Rel - beautiful "brushwork"!

I also love Krisis' and He-man's backgrounds. Good stuff!
#1945
You could always update it to use double-wide pixels. And add four more enemies, two power ups and a hero! Go on, you know you want to!
#1946
Nice. Makes it easy to find the new games.
Was it a concious decision to not have a rating column?
#1947
Quote from: esper on Sun 27/11/2005 06:43:33
Steve's looks like he played alot of Commodore 64...

Actually I never owned one. I had a Vic-20 (default 176x184 resolution) and then a BBC micro (mode 2 was 160x256 resolution) so I guess I've had some practice at this aspect ratio.

buloght, those little characters you added are great!
#1948
Critics' Lounge / Re: Davy JOnes - MINIron
Sun 27/11/2005 06:38:07
I think he's somewhat lost his 'Davyness'.
I did a paintover which basically changed everything, but I think looks a little more like the lanky dressed in black teenager...

#1949
Wow, that's great news!
And a comparison with Samo Hung? You must be GOOD!

Make sure you don't end up in the outtakes reel at the end of the film...

Dragons forever!
#1950
I think as long as it mostly has continuity (as you define it in your first post) then anything goes - unless the relationship of the rooms is important for a puzzle of course.
#1951
Quote from: shitarâ,,¢ on Thu 24/11/2005 02:48:16
Sounds like you feel that style was more glorious.
Well, that too.
My point was that war mongers were taking at least the same risks as the combatants rather than lying around in palaces reaping the rewards.
#1952
There can be only one!
[lgm]: it's a professional job, but it doesn't really fit the theme as I imagined it.
So the winner is Vince Twelve. Congrats for an awesome job that wouldn't look out of place in Viz!
#1953
Killing a spy is hard to justify - why wouldn't you just incarcerate them?

Killing a deserter is even more reprehensible - war is fighting for a cause. If you're not willing to fight in a war that means you're not prepared to sacrifice your life for the cause. Why should anyone be forced to do that, particularly when those directing the war are not? This is a difference between, for example, WWII and current conflicts. Kids were eager to join the army to fight Nazis.

Once upon a time, generals and even kings would lead troops into battle. If that was still the case, I imagine there would be less unnecessary conflict.
#1954
Vince, thanks for saving this competition - and for making me laugh!
Any more last minute entries?
Otherwise I'll close this one up in an hour or two.
#1955


[EDIT] I would love to animate them, but this is the sprite jam, not the animation competition. :)
[EDIT] I've been shamed into animating them by the awesomeness of Boyd's animations!
#1956
The 'I' is there to indicate to the ReadInt function that indeed the value written to the file was an Int.
Unfortunately there doesn't seem to be a WriteRawInt function to correspond to ReadRawInt.
You could simulate it with WriteRawChar, like so:
Code: ags

function WriteRawInt(File *output, int intToWrite)
{
Ã,  output.WriteRawChar(intToWrite & 255);
Ã,  output.WriteRawChar((intToWrite>>8) & 255);
Ã,  output.WriteRawChar((intToWrite>>16) & 255);
Ã,  output.WriteRawChar((intToWrite>>24) & 255);
}
#1957
Hurray! One day left and one entry!
[lgm], I'm not quite sure what was Photoshopped there, but I thought you'd like to know you're leading the pack...
#1958
Aww, that's such a cute shirt Eric. Congrats to Jess!
OT - you got a job at a games company? Who? Doing what? Congrats to Eric!

Back on topic: I think DC's shirt idea is great! I would wear it with pride!

More exclamation marks please! I have run out
#1959
That looks like it should almost work.
The problem is most likely the || in the while statement - it should be && (the way you have it, the while loop always reads to the end of the file, and then the data reading reads -1s from "past end of the file".
There are a couple of things that I'd do differently to make sure it works as expected.
Firstly, initialize your variables. I'm pretty sure AGS initializes them to zero anyway, but it can't hurt.
Secondly, you can search for the whole 'chnk' piece at once. That way you don't accidentally miss a "find" when 'c' appears, then 'h', then 'c' 'h' 'n' 'k'. Or you could just reset the search to 1 when 'c' comes up.
Lastly, I renamed output to input :)

[EDIT] The fourByteBoundaryOk "variable" is separating the two approaches to finding 'chnk'. The first, simpler approach, assumes that 'chnk' comes on a 4 byte boundary in the file, hence the "variable" name. For safety's sake, probably better to use the second approach.

Code: ags

File *input = File.Open("Sampleset.WusikSND", eFileRead);
if (input != null)
{
Ã,  bool foundChnk = false;
Ã,  int chnkStage = 0;
Ã,  while (!foundChnk && !input.EOF)
Ã,  {
Ã,  Ã,  if (fourByteBoundaryOk)
Ã,  Ã,  {
Ã,  Ã,  Ã,  int candidate = input.ReadRawInt();
Ã, Ã,  Ã, Ã,  if (candidate == 1802397795) // 0x6b6e6863 in decimal
Ã,  Ã, Ã,  Ã, {
Ã,  Ã,  Ã, Ã,  Ã, foundChnk = true;
Ã,  Ã, Ã,  Ã, }
Ã,  Ã,  }
Ã,  Ã,  else
Ã,  Ã,  {
Ã,  Ã,  Ã,  // put the values into a string
Ã,  Ã,  Ã,  string chnk = "chnk";
Ã,  Ã,  Ã,  int candidate = input.ReadRawChar();
Ã,  Ã,  Ã,  if (candidate == StrGetCharAt(chnk, chnkStage))
Ã,  Ã,  Ã,  {
Ã,  Ã,  Ã,  Ã,  // note - this only works for finding strings with no repeating patterns
Ã,  Ã,  Ã,  Ã,  chnkStage++;
Ã,  Ã,  Ã,  Ã,  if (chnkStage == 4) chnkFound = true;
Ã,  Ã,  Ã,  }
Ã,  Ã,  Ã,  else
Ã,  Ã,  Ã,  if (candidate == StrGetCharAt(chnk, 0))
Ã,  Ã,  Ã,  {
Ã,  Ã,  Ã,  Ã,  // reset
Ã,  Ã,  Ã,  Ã,  chnkStage = 1;
Ã,  Ã,  Ã,  }
Ã,  Ã,  Ã,  else
Ã,  Ã,  Ã,  {
Ã,  Ã,  Ã,  Ã,  chnkStage = 0;
Ã,  Ã,  Ã,  }
Ã,  Ã,  }
Ã,  }
Ã,  if (foundChnk)
Ã,  {
Ã,  Ã,  int size = input.ReadRawInt();
Ã,  Ã,  int velocityLow = input.ReadRawInt();
Ã,  Ã,  int velocityHigh = input.ReadRawInt();
Ã,  Ã,  // etc
Ã,  Ã,  Display("size = %d, velocityLow = %d, velocityHigh = %d", size, velocityLow, velocityHigh);
Ã,  }
Ã,  else
Ã,  {
Ã,  Ã,  Display("Didn't find chnk. Perhaps I got chnk's decimal value wrong.");
Ã,  }
Ã,  input.Close();
}
else
{
Ã,  Display("Couldn't open file. Bad user! Bad!");
}
#1960
The Rumpus Room / Re: Happy Birthday Thread!
Sun 20/11/2005 20:36:49
Happy Birthday CJ.
Now that you're 25 it's time to put aside the follies of youth (AGS) and dedicate your life to a higher purpose. Perhaps you could run for mayor of Welwyn Garden City.
We'll miss you!
SMF spam blocked by CleanTalk