Page 1 of 2

compress the whole game to lower screen resolutions?

PostPosted: Fri Jan 25, 2008 10:04 am
by Kalladdolf
I've made some cool games and want to make them for pocket Pc as well.
problem is, I'll have to make the animations smaller and everything, basically, I'll have to remake the whole game!
now, couldn't there be a feature that you could just make everything on the whole smaller to make it fit the ppc screen?
this would be sooooo much help for me!

Re: compress the whole game to lower screen resolutions?

PostPosted: Sun Jan 27, 2008 6:15 am
by kyensoftware
Use a canvas XD
to avoid confuzion search for draw_from demos
but it would be nize to have an inbuilt "Shrink to (a)x(b)" thingy, but it would take poor makslane awile...

Re: compress the whole game to lower screen resolutions?

PostPosted: Mon Jan 28, 2008 12:12 am
by Game A Gogo
or, you could leave it as is, and be able to set some sort of property that would affect which pixels are displayed on the screen

Re: compress the whole game to lower screen resolutions?

PostPosted: Mon Jan 28, 2008 8:31 am
by Kalladdolf
Game A Gogo wrote:or, you could leave it as is, and be able to set some sort of property that would affect which pixels are displayed on the screen

but this aint possible yet, is it?

Re: compress the whole game to lower screen resolutions?

PostPosted: Mon Jan 28, 2008 1:01 pm
by Bee-Ant
Come'on kall, dont bring your crazy idea here...you just make confused everyone :lol:

Re: compress the whole game to lower screen resolutions?

PostPosted: Mon Jan 28, 2008 1:27 pm
by makslane
This kind of reduction of images dimensions is in my task list, but is not easy to solve.

Re: compress the whole game to lower screen resolutions?

PostPosted: Mon Jan 28, 2008 1:37 pm
by Bee-Ant
makslane wrote:This kind of reduction of images dimensions is in my task list, but is not easy to solve.

See...your request wont granted :lol:

Re: compress the whole game to lower screen resolutions?

PostPosted: Tue Jan 29, 2008 10:23 am
by Kalladdolf
Bee-Ant wrote:Come'on kall, dont bring your crazy idea here...you just make confused everyone :lol:

:|
it ain't crazy... tell me how you would do it wanting to spare time...
then makslane wrote:This kind of reduction of images dimensions is in my task list, but is not easy to solve.

understandable, thanks for the comment.
then Bee-Ant wrote:See...your request wont granted :lol:

who says? :D
maybe sometime...

How To compress the whole game to lower screen resolutions

PostPosted: Thu Mar 27, 2008 12:14 am
by DST
I believe I have figured out a way to do this. Of course, first you need to run a batch process with a graphics editor to scale all your images down. For instance, 800 x 600 > 320 x 240 would be 60% reduction so resize all images to 40 % of their original size.

Then, and here's the fun part: in the CreateActor script for each actor, write this:
Code: Select all
x=x*.4;
y=y*.4;


The downside is, you have to insert it for each actor. However, this is only a mosquito bite compared to moving each sprite and tile by hand!

After doing this, you will still have to rewrite your script to accomodate the smaller distances (xvelocities and such) but in my test so far, this recreated a mini version of my level graphics, it looked great!


Now here are the reasons that GE does not do this for you, and IMHO does not need to:

1. GE would basically be resizing your graphics....which should be done in a graphic editor. GE is NOT a graphic editor.

2. GE would be scaling the images upon loading. That's more graphic work that doesn't need to be done while running a game. Plus the excess graphic information makes a 3 mb exe into an 8 mb exe for no reason. We still have to optimize, if our game is "full" as it should be.

3. Even if it could resize it....it couldn't adjust your scripts, velocities, and distances. Only you know how your game is supposed to play. Would GE assume that in your scripts all numbers are shrunk by 40%? No, this would shrink your score, health, and activation variables. Either way you have to rewrite the script!

I do hope this method works for you, I only tested it briefly but every actor was exactly where it was supposed to be.

I think that the GP2X is the perfect platform for GE games; even though I've never played one, the situation seems perfect:
Not many native games; Competing with Sony & Nintendo, and needs good games; Emulation abilities suggest the target consumer is a fan of 2d gaming.

The market is not by itself, GE is not by itself, we are not by ourselves. Together we can make something big out of GE and the developers who use it . No more 'army of one'.

Re: compress the whole game to lower screen resolutions?

PostPosted: Thu Mar 27, 2008 7:15 am
by Kalladdolf
ok.
I was just considering doing this for smaller games, so there actually
isn't so much to be dragged across the screen.
also, I think I can handle the changing of variables, thanks for the code.

DST wrote:1. GE would basically be resizing your graphics....which should be done in a graphic editor. GE is NOT a graphic editor.

:shock:
ok.
I'll keep that in mind.

Re: compress the whole game to lower screen resolutions?

PostPosted: Thu Mar 27, 2008 9:22 pm
by Game A Gogo
actually, GE can already resize sprites...
and the easiest method, is keeping the file as is, but modifying the output function that display the whole game. which would need to skip some pixels in order to get what you need

Re: compress the whole game to lower screen resolutions?

PostPosted: Sat Mar 29, 2008 7:39 pm
by DST
it would be nice, but what GE really needs is the ability to draw selections and scale xy positions inside the editor....I guess most of Makslane's energy is focused on compatability though.

Also, it would rock if you could add an extra identifier on a variable (scalable) - that would scale the variable automatically when you resized the game.....xvelocity scales, health doesn't etc.

Redrawing paths....uggh...

Re: compress the whole game to lower screen resolutions?

PostPosted: Sun Apr 06, 2008 2:41 pm
by Freddy
This would be REALLY HELPFUL. I hope someday this will be a GE feature.

Re: compress the whole game to lower screen resolutions?

PostPosted: Tue Apr 08, 2008 11:26 am
by Bee-Ant
I hope there will an exe emulator also... :lol: :lol: :lol:

Re: compress the whole game to lower screen resolutions?

PostPosted: Tue Apr 08, 2008 8:15 pm
by DST
what do you mean by exe emulator?