New GFX set for AGS default Template (based on Sierra games)

Started by selmiak, Sat 15/04/2017 09:53:45

Previous topic - Next topic

abstauber

Ah okay, like scanning the image with GetPixel.

Well... pre-rendered palette cycling will continue to work just fine.

CaesarCub

Quote from: Crimson Wizard on Thu 20/04/2017 01:22:06
BTW, it is easy to script a function that would replace the colors on dynamic sprite according to certain rule. You can create a set of sprites in greyscale, for example, and template will have several coded presets (color mappings), one of which would be chosen and applied in the game_start function.

Now I'm really interested in this. How would it work? The only way I thought of by looking at the help manual is to separate BGs from icons, use the Tint function to add monochrome colours on them and then compositing them. (I have done this before on other games, but never on AGS... I really should read up and test the DynamicSprite section).


Quote from: abstauber on Thu 20/04/2017 11:58:56
Ah okay, like scanning the image with GetPixel.

Or that would work as well.

Quote from: selmiak on Thu 20/04/2017 05:59:35
Ali raises a valid points and CW has the solution, though that would require making the template some kind of short demogame that explains where to define the colormapping or where to switch the predefined palettes.

This could be interesting, and better than duplicating assets for multiple character games.

Quote from: selmiak on Thu 20/04/2017 05:59:35
I like CC's greyish version, but let's not jump ahead, we should first all be happy with the basic palette for the first iteration of the icons and so, have some contests, get the final designs, then we can play around with palette swappings to darkness and brighter values and vote on that. Well, noone is stopping you from experimenting with palette swapping now already, but we don't need it atm.

Thanks, but those were just to point out that palette swapping on assets is easy when you have a small palette. The green-pink one was deliberately low on contrast and non-generic. :P

Quote from: selmiak on Thu 20/04/2017 05:59:35

@Borders:
What about we don't define the borders now, but rather say max 2px wide borders (or 3px max?) please on icons that are w x h and then see what comes out of the contest, both borders and the icons.
So if nothing game/template/contest breaking happens in the next few hours I'll make a thread for this in the competitions board tonight. I'd say gIconbar is the first thing from the template to get the overhaul.
Does anyone have a fancy title for all this? Like RessurAGSion. Or like, better than this? ;-D

I'm completely up for it. except for the punny name (wtf).
I'd also only start with the basic 320x200 resolution and leave the HD ones for later.

Crimson Wizard

#42
Warning: not tested
Now tested, works.

Remember to put "noloopcheck" in the function definition.
Code: ags

void noloopcheck ReplaceColors(this DynamicSprite*, int colors_from[], int colors_to[], int num_colors)
{
  DrawingSurface *ds = this.GetDrawingSurface();
  for (int x = 0; x < ds.Width; x++)
  {
    for (int y = 0; y < ds.Height; y++)
    {
      int old_col = ds.GetPixel(x, y);
      for (int i = 0; i < num_colors; i++)
      {
        if (old_col == colors_from[i])
        {
          ds.DrawingColor = colors_to[i];
          ds.DrawPixel(x, y);
          break;
        }
      }
    }
  }
  ds.Release();
}


Usage:
Code: ags

DynamicSprite *dspr = DynamicSprite.CreateFromExistingSprite(10); // 10 - is the number of your sprite
int colors_from[] = new int[8]; // 8 - is the number of colors you want to change
int colors_to[] = new int[8];
// Setup conversion tables
colors_from[0] = 1; // replace this color
colors_to[0] = 2; // replace TO this color
// etc
//
dspr.ReplaceColors(colors_from, colors_to, 8);



EDIT: DynamicSprite.Tint would work too, and it is faster, but its results are more restricted.

Alan v.Drake

Quote from: Snarky on Tue 18/04/2017 20:01:04
Thanks! I remember that, and the considerable resistance against making the default template "too good", thereby either discouraging newbies with impossible standards or tempting them to use the defaults rather than make their own.

Too good?  Whew, when I tried AGS for the first time I was about to drop the ball for how ugly it looked,
Presentation is important, sadly.

As they say, you only get one chance to make a good first impression.

- Alan

abstauber

In the meantime I started to work on a room. It is far from being completed, but maybe somebody wants to join the fun.
[imgzoom]http://shatten.sonores.de/wp-content/uploads/2017/04/room1.png[/imgzoom]

It is drawn in this palette:
https://github.com/geoffb/dawnbringer-palettes/blob/master/DB32/db32.png

CaesarCub

That's a really nice background.
And the palette looks quite interesting. I'll have to give it a go in a background at some point. :D

[imgzoom]http://i.imgur.com/dMdl7Nn.png[/imgzoom]


Hobo

It might be a personal preference only, but I'm not particularly fond of the type of anti-aliasing you used on the planet. I think it's called banding? Did a quick and sloppy edit on it. I also moved the door a bit, so it wouldn't line up with the shadow so much. Otherwise I like it, good old simple and clean pixel art.

[imgzoom]http://www.tulevik.eu/ags/room1_edit.png[/imgzoom]
Quote from: Danvzare on Wed 19/04/2017 12:47:09
I think we should make him look a little more like the AGS Roger
I can dress him in AGS blue, is that more fashionable?

[imgzoom]http://www.tulevik.eu/ags/roger_blue.png[/imgzoom]
Are we set with this Roger sprite? If so, then are there some additional must-have animations he should have?

CaesarCub

Quote from: Hobo on Fri 21/04/2017 14:21:19
[imgzoom]http://www.tulevik.eu/ags/roger_blue.png[/imgzoom]
Are we set with this Roger sprite? If so, then are there some additional must-have animations he should have?
I like the recoloring, and I feel it sets him enough apart from the other Roger.
I'm more of a Lucas guy myself, so I instantly thought of the reach-high reach-mid reach-low sprites used in those games.

But then again, if this is just a template, I don't think it would need more stuff. Though the more I see all this stuff the more I think "All this could be put in use to make some nicely updated demo games that we were talking about in another thread." (roll)

Selmiak, hurry up with the SpriteJam so we can start tinkering with the verb icons (laugh)

selmiak

pffft, I'll just sit here and wait until the new demogame is done, looking good already :-D

seriously though, @abstauber+hobo:
keep on pixeling that BG, but actually we want to start with a new template, not a complete game, but don't let this stop you, the new demogame needs assetts too ;)
So what about using this in both the demogame and this template, but make sure it kind of fits the palette we are defining for the icons and also that it or something on it screams THIS IS JUST A TEMPLATE, REPLACE ME WITH YOUR OWN PAINTING YOU LAZY BASTARD!

the blue AGS Cup Roger is niiiiice! :-D

Will start a thread with something to pixel soon.

selmiak

Quote from: CaesarCub on Fri 21/04/2017 14:20:52
That's a really nice background.
And the palette looks quite interesting. I'll have to give it a go in a background at some point. :D

[imgzoom]http://i.imgur.com/dMdl7Nn.png[/imgzoom]



the blue/yellows look too washed out, I like our palette for that better

abstauber

Thanks Hobo. That looks much better.

Here's a little teaser of what I'm currently doing 8-)

[imgzoom]http://shatten.sonores.de/wp-content/uploads/2017/04/scumm_mockup.png[/imgzoom]



selmiak

Quote from: selmiak on Fri 21/04/2017 15:17:08
Quote from: CaesarCub on Fri 21/04/2017 14:20:52
That's a really nice background.
And the palette looks quite interesting. I'll have to give it a go in a background at some point. :D

[imgzoom]http://i.imgur.com/dMdl7Nn.png[/imgzoom]



the blue/yellows look too washed out, I like our palette for that better

and after rushing out that contest thread I think that rightmost silver black floppy looks great! shall I cange to that one? Would be fitting to abstaubers BG image and more classy than blue orange...

CaesarCub

Do as you wish, but I wouldn't worry about it. The idea of the palette is to just have one so all entries use the same.
We can later on vote which palette is best for the winning verb set.

selmiak

Quote from: selmiak on Fri 21/04/2017 23:34:14
oh these complicated decisions, both look great. idk, lets have this contest with both palettes! and make it a jam in both threads. 8-) :-D

after getting some sleep I think using 2 different palettes for the contest will not work and only get confusing and brainmelting and hairtearing and heartbreaking and running up the walls of crazyness and so on.  And dawnbringer has a nice palette.

Summing up... something like this?

[imgzoom]http://i.imgur.com/8VeY73A.png[/imgzoom]

Putting the palette in a useful order is confuzzling me, you used the 2 darkest colors + the 4th darkest color for the border.
more like this:

[imgzoom]http://i.imgur.com/eRexBxK.png[/imgzoom]

So this this is our definition for the icons fitting for the spacey BG. 3 left colors for the background and the 5 right colors for the icons.

alright? alright! No more summing up for the icons and stuff palette anymore, I'd rather get pixeling in the other thread. :D

Danvzare

Quote from: Hobo on Fri 21/04/2017 14:21:19
I can dress him in AGS blue, is that more fashionable?

[imgzoom]http://www.tulevik.eu/ags/roger_blue.png[/imgzoom]
Are we set with this Roger sprite? If so, then are there some additional must-have animations he should have?
Not the colour I was thinking of, but definitely more suitable.
I actually rather like this Roger. Like CaesarCub said, it sets him apart from Roger Wilco.

Quote from: CaesarCub on Fri 21/04/2017 14:31:57
Though the more I see all this stuff the more I think "All this could be put in use to make some nicely updated demo games that we were talking about in another thread." (roll)
Agreed, I hope this all gets used to make that updated demo game. (nod)

abstauber



selmiak


SMF spam blocked by CleanTalk