As you probably saw, if any of you saw our hype videos cause Jim and I
got a little bit overexcited, made all sorts of videos, as you do.
This is also, a demonstration of shaders as well.
If you go to shader toy, you can see all sorts of shaders.
I think Jim just mentioned that.
So you've seen what shaders can do.
This is a project that was written by the, SKIA for Delphi guys themselves.
I take no credit for this whatsoever.
I did encourage them and so did Jim, but, it's basically a very simple project.
All that we have is one form.
And on that form is an TSKAnimatedPaintBox, which is
one of the controls that comes with, the SKIA for Delphi thing.
There's actually only a few controls of, for SKIA for
Delphi, cause everything else.
It does his magic in the background and, including comments the code,
there is only 207 lines of code.
If you are sensitive to flashes, I just want to give you a fair warning.
There will be some flashing lights, but if I run this, project now and,
off, we will go and just resize this a little bug to do my resolution.
But, those of you that familiar with the old, 1980s games, like breakout,
which I think was one of the things that, Steve jobs and Steve Wozniak
worked on many years ago, this.
Is, an implementation of a similar game for that.
We won't call it the B word because it's probably, some lots and lots of
lawyers in the background are going
to, it's a game where you're trying to break out of some bricks.
That's the one.
Yes.
Good, good, save.
Yeah.
So as you can see, whilst I'd played it very badly, you can see that I'm
moving my keyboard, a very clicky keyboard, so I'm sure you can hear that.
I going to stop in a moment, but as you can see, the balls are going away and
it's knocking out bricks on this wall.
and if I just swap for a second, by closing this, I can, take
this screenshot, which I took earlier on of what's going on.
Now.
One of the key things, of this game is that first of all, I'm using my keyboard
to move this particular element of the.
And, there's some game physics going on.
When the ball comes down and it hits this little bat there, it backs back up again,
and it finds a collision in these, wall bricks or whatever you want to call them.
there's lozenges, or something like that.
Also there's flashing in the background and, the SKIA for Delphi
guys , well Paulo in particular, mentioned that, they're also able
to play, sound in the background.
Now, this demo, they did get it done rather quickly and they didn't get
time to put the sound in, but they can actually have the shaders playing
sound as well because shaders have got a language, a programming language in
the background that makes all these beautiful shapes and flashing going on.
And the music is usually the music's from a static site.
You get the general gist of it, and you can see, even on the resolution
that you'll get on this webinar, which is not full quality, it down samples,
the, animation, it's pretty incredible.
And what's even more incredible is the absolutely tiny amount of code in there.
it gets some assets and create some parts.
And then most of the code is really just to do with what's
happening when I press, my keyboard.
And, then it does the drawing here.
As you can see the little bit code to the draw it and then renders
that shader, that's it, that's all the code in an entire game.
Now that's cool enough, but what's even cooler is that
this is a FireMonkey project.
And because it's a FireMonkey project right away, this game works on Windows,
mac OS iOS and Android out of the box, it will work straight away.
And not only that, but the guys have actually, told me that they've
included all of the projects in their project ready to go.
And even better than that, this is a demo that they're giving
away on the website as well.
It's, a good demonstration of how the thing works.
go to the skia4delphi.org site and they will be, putting the demo up.
They want to tweak a few more things cause, we push them for time and, it's.
It was released before it was ready, in every way.
And they are perfectionists these guys, but, that's how it works.
Bing.
I think if that doesn't give you some idea of what can be done with the
SKIA for Delphi, I don't know what.