Adventure Game Studio

Community => General Discussion => Topic started by: monkey0506 on Sat 04/06/2005 06:34:21

Title: Palette Quest 2.0!
Post by: monkey0506 on Sat 04/06/2005 06:34:21
http://www27.brinkster.com/meleepta/AGS/PaletteQuest.zip
(Link outdated).

I don't think this really qualifies as a game, but it kind of is one.  I was just playing around with the CyclePalette and FlipScreen functions.

And I came up with this.  I'm posting here because it's not really a "game" per se, but yet there is a score system, and you can beat the game.  Just listen carefully, and time yourself correctly and you can win (although it's hard).

[EDIT:]

07 July 2006!!!

I warned you people. But you just wouldn't listen. No...you had to go and push me to the EDGE! And I've made Palette Quest 2.0: The Unwinnable Version!

Everything is random from the palette indices used for cycling to the timing of the cycling and of the flipping and the screen shaking...

But you can't actually win this time around. It just creates some nice visuals...as long as you're not prone to epilectic...epopelotic...hiphopotronic...SEIZURE DISORDER WARNING: this game WILL CAUSE YOU TO HAVE SEIZURES!!!

Anyway...new links:

Download the original Palette Quest (http://www27.brinkster.com/meleepta/PaletteQuest.rar)
Download Palette Quest 2.0 (NEW!) (http://www27.brinkster.com/meleepta/PaletteQuest2.rar)
Title: Re: I created a game!...Kind of...
Post by: PsychicHeart on Sat 04/06/2005 06:46:40
doesn't work for me. i click the link, but the "This page cannot be found" appears. Damn, it sounded good. :=
Title: Re: I created a game!...Kind of...
Post by: scotch on Sat 04/06/2005 06:51:09
Works for me... but I can't work out what to do.  He says you have to put it back the way it was? Well I did that and nothing... You say you have to listen? I get no sound...
Title: Re: I created a game!...Kind of...
Post by: Phemar on Sat 04/06/2005 07:08:42

Same here.
Title: Re: I created a game!...Kind of...
Post by: monkey0506 on Sat 04/06/2005 09:04:11
Heh...I didn't mean for that to be taken quite so literally (as in, listen to what Roger says... :P).  He says that "You'll have to put it back the way you found it."  He means that too... Let me see if I can figure out how to get the spoiler tags to work.

Spoiler
1.  Press and hold the Left mouse button.
--The palette will begin to cycle from start 0 to end 41.
--Every 25 loops the screen will flip, in the following order:
----from normal view to vertical flip
----from vertical flip to horizontal flip
----from horizontal flip to vertical-horizontal flip
----from vertical-horizontal flip to normal view
2.  Release the mouse button.
You must do THREE things in order to win:
1.  Restore the EXACT original palette.
2.  Restore normal view.
3.  Release the mouse with 1 & 2 completed.
You have to do these at the same time, so only doing one (or just holding the mouse button) accounts for nothing.

IF you win, a couple of messages are displayed to that effect and a QuitGame(0) is called.
[close]


Okay.  Highlight the above for the solution, but like I said, it's not easy.

As for not being able to download it, try copying and pasting the link.

And here's a hint in case you didn't catch on to this:

Spoiler
The palette is cycled completely every 41 loops, while the screen is returned to normal view every 100 loops.  That comes up to 102.5 seconds...  Start counting.
[close]

Wow...I was just looking at the code, and I think I may have put in one too many parameters in this if statement... Well, if you'll give me a second to re-upload, the odds of winning ATM are astronomical...:

Spoiler
The code goes something like this:
// global scope
short frame = 0;
short flip = 0;
bool waited = false;
short origPal[3];

// game_start
origPal[0] = palette[32].b;
origPal[1] = palette[32].g;
origPal[2] = palette[32].r;

// rep_ex
if (mouse.IsButtonDown(eMouseLeft)) {
    CyclePalette(0, 41);
    if (frame == 25) {
      FlipScreen(flip);
      if (flip == 0) flip = 2;
      else if (flip == 1) flip = 3;
      else if (flip == 2) flip = 1;
      else if (flip == 3) flip = 0;
      frame = 0;
      }
    else frame++;
    waited = true;
    }
  if ((palette[32].b == origPal[0]) && (palette[32].g == origPal[1]) &&
    (palette[32].r == origPal[2]) && (waited) && (!mouse.IsButtonDown(eMouseLeft))
    && (frame == 0) && (flip == 0)) {
      GiveScore(500);
      Display("You won!");
      Display("You scored %d out of %d points!", game.score, game.score);
      QuitGame(0);
      }

That's pretty much the entire global script.  But do you see what's wrong?  I checked the variable frame to see if it was set to 0.  If flip is set to 0, frame could be anywhere from 0 to 25 and still be correct... I'll fix this and re-upload.
[close]

Sorry about that.  I really didn't mean to make it quite that impossible...  Re-tested, and it's definitely win-able now...

Probably not even difficult any more...  Well, I actually had some difficulty that second time.  I tested it twice, the first time I won in about 30 seconds, the next I won in about 2 minutes, so:

1.  It's definitely win-able.
2.  It's still as difficult as intended.
Title: Re: I created a game!...Kind of...
Post by: nihilyst on Sat 04/06/2005 11:04:03
Yeah, if won on the first try. Am I the God of the Palettes now?

Well, guess not ...
Title: Re: I created a game!...Kind of...
Post by: Paper Carnival on Sat 04/06/2005 11:47:13
I was just randomly clicking, and I won eventually, with 500 out of 500 points ???
Title: Re: I created a game!...Kind of...
Post by: PsychicHeart on Sat 04/06/2005 11:58:37
ooohhhh.... i think i'm dizzy..... man this is like a fantasy when you're high. Flashing colours.... aaaagggghhh..... i am the elephant man..... weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee......


Okay... that was seriously weird. Nice game ( kind of ) in it's own way.
Oh, i think i need to vomit.
Title: Re: I created a game!...Kind of...
Post by: monkey0506 on Sat 04/06/2005 16:31:41
 ;D  Hehehe... ;D

Thanks.
Title: Re: I created a game!...Kind of...
Post by: Bad Voo-doo man on Sun 05/06/2005 08:29:40
Oh god! The seizures! I give up lol, pretty cool though!
Title: Re: I created a game!...Kind of...
Post by: =The=Brat= on Sun 05/06/2005 09:24:29
that was trippy and i thindkfd xdgfv d;fl  :-X dsf  ???fsd  := ferf  effsadd

got it? fdjgf fdstft and then he fgnrogmf  me up the dfjdgjsd dfkejfdk fkdkjf coz i said dsrjr
Title: Re: I created a game!...Kind of...
Post by: skw on Sun 05/06/2005 22:05:20
Quote from: Guybrush Peepwood on Sat 04/06/2005 11:47:13
I was just randomly clicking, and I won eventually, with 500 out of 500 points ???

So do I.

Damn, I'm having a headache now...

Nice.
Title: Re: I created a game!...Kind of...
Post by: monkey0506 on Mon 06/06/2005 17:33:29
GREAT!  My plans to take over the world are unfolding beautifully!  If I give everyone seizures and headaches, soon they will bow before me, begging for mercy! Muahahahahha!  MUAHAHAHHAHAHAHA!


What?  What evil plans?  I don't know what you're talking about!
Title: Re: I created a game!...Kind of...
Post by: PsychicHeart on Tue 07/06/2005 06:18:21
 :=

nuff said
Title: Re: I created a game!...Kind of...
Post by: monkey0506 on Thu 09/06/2005 06:46:52
I'm thinking of making a version 2 in which the room is automatically flipped to a Random() position and the palette is auto-cycled a Random() number of times when the player enters the screen, and, in addition, the rate at which the screen flips, the manner in which it flips, and the palette index which is tested to check palette restoration is completely Random(). :D  That would be so awesome.
Title: Re: I created a game!...Kind of...
Post by: Rui 'Trovatore' Pires on Thu 09/06/2005 07:19:38
How come often it LOOKS like the screen is correct, and the mouse movements too, and yet he doesn't say anything? I swear I got it *looking* right 3 times. Then I just gave up and clicked aimlessly till I won, which happened eventually.

A Random version might be fun if what I just described didn't happen there either.
Title: Re: I created a game!...Kind of...
Post by: PsychicHeart on Thu 09/06/2005 08:38:20
omg, i just had an idea. how about, instead of colors changing (and so forth) you change the character every time you click. It starts out as the default Roger sprite, and then each time you click it transforms into an AGS member.
oh by the way...

Spoiler
I think that the easiest way to win is by clicking realllllllllllllllllllllllllllllllllllllllyyy softly. Remember, soft is sweet, hard is... wtf
[close]
Title: Re: I created a game!...Kind of...
Post by: TheYak on Thu 09/06/2005 09:06:22
I've never bitched about signature size but Fluke, that's a hyperbolic amount of irritatingly ridiculous.
Title: Re: I created a game!...Kind of...
Post by: Raider on Thu 09/06/2005 09:06:55
WHOW change sig Fluke that is way too big!

[EDIT]-----
Yeah... what Yak said. ^
Title: Re: I created a game!...Kind of...
Post by: Eggie on Thu 09/06/2005 09:10:48
Jesus appeared on my wall and told me to tell you to change it...
Title: Re: I created a game!...Kind of...
Post by: Rui 'Trovatore' Pires on Thu 09/06/2005 09:12:01
Really, Eggie? So Jesus doesn't think re-sizing is for cissy's [sic]? ;D

EDIT - And, Fluke? That was a fluke, because it does NOT look like Jesus it sticking his tongue out.
Title: Re: I created a game!...Kind of...
Post by: monkey0506 on Thu 09/06/2005 20:56:32
Quote from: Rui "Brisby" Pires on Thu 09/06/2005 07:19:38How come often it LOOKS like the screen is correct, and the mouse movements too, and yet he doesn't say anything? I swear I got it *looking* right 3 times. Then I just gave up and clicked aimlessly till I won, which happened eventually.

A Random version might be fun if what I just described didn't happen there either.

It's possible that you downloaded the first version.  If you read through my spoilers, you'll find that there was an extra parameter in the check originally, but it has since been fixed.

If you're using the latest version, then, I don't know what you're talking about. ::)
Title: Re: I created a game!...Kind of...
Post by: Rui 'Trovatore' Pires on Thu 09/06/2005 22:12:39
I downloaded it yesterday or the day before. If the link is the same, then I have the new version...
Title: Re: I created a game!...Kind of...
Post by: monkey0506 on Fri 10/06/2005 03:43:11
Hmm... I don't know then.  Maybe... I'll look and get back to you.
Title: Re: Palette Quest 2.0!
Post by: monkey0506 on Sat 08/07/2006 04:57:20
Version 2.0 is here!!!

Players beware. And I kept the same thread because...once again...it's not "really" a "game". :=
Title: Re: Palette Quest 2.0!
Post by: Chicky on Mon 10/07/2006 00:38:39
It took you a whole year to make that :P
Title: Re: Palette Quest 2.0!
Post by: monkey0506 on Mon 10/07/2006 00:48:26
Heh... :D

That's not nice.  It took me about four hours. :=

Just I never actually got around to making it until now... ;)
Title: Re: Palette Quest 2.0!
Post by: Rui 'Trovatore' Pires on Mon 10/07/2006 21:19:16
How odd. I wanted to play it in windowed mode, so I added a setup.bat file that called "[gamename.exe] --setup"... and the setup window comes up, but it does NOT save the configuration. No .cfg file is created, and options aren't saved. Odd.