Page 1 of 3

RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Mon May 30, 2011 11:27 pm
by lcl
Hello guys!

I proudly present to you,
RESOLUTIONARY
the game scaling system by lcl!

RESOLUTIONARY is my system that makes changing the games' resolution very
easy. You don't need to change your animations' sizes or to move your actors in the editor,
just draw the game to canvas in the size you want with this system!

You don't need to do anything else than to set the resolution you want at Game Properties
and then tell the program what is the old resolution to scale from. It is done by function called setSize(int size);
Input the old resolutions width to the function.

Then you have to set the center actor. All other actors positions will be calculated relatively to its position.
Use the function setCenterActor(char actorName[255]);

The actual drawing of actors happens by these four functions:
drawCenterActor();
drawActor();
drawClonedActor();
drawAllActors();

drawCenterActor(); draw the center actor in the middle of the view.

drawActor(char actorName[255]); draws the inputted actor relatively to the center actors position.

drawClonedActor(char actorName[255], int lim); will draw all instances of cloned actor until the limit cloneindex is reached.

drawAllActors(); will draw all the actors that the drawer canvas collides with except the center actor.

Remember to look at global code for learning how it works! :)
And remember, you can't use tiles, because GE's draw_from(); doesn't work with tile actors.
It's very bad limitation to this and I wish GE could soon be able to draw tile actors as well! :)


There is still some things to do and I will send updates as I get them done. :D
And please, give me feedback!!

Try it now! :)

resolutionary.zip
Download from here!
(481.91 KiB) Downloaded 1066 times

ps. sorry for that the beginning of the post is quite exaggerative.. :lol:
ResolutionaryNew.png

resolutionary.png
This is screen capture from the example.
It's scaled 2.5 times as big as it usually is.

Re: RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Tue May 31, 2011 12:01 am
by Jagmaster
More options for option menus with no options whatsoever! :lol:

Cool tool!
Would you be able to draw multiple games at once with this system?

Edit: THIS IS ONE OF THE MOST AMAZING THINGS I'VE EVER SEEN!

Re: RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Tue May 31, 2011 12:37 am
by Hblade
EPIC DUDE! :D This could be so useful! :)

Re: RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Tue May 31, 2011 5:49 am
by lcl
Jagmaster wrote:More options for option menus with no options whatsoever!

Cool tool!
Would you be able to draw multiple games at once with this system?

Edit: THIS IS ONE OF THE MOST AMAZING THINGS I'VE EVER SEEN!

You could draw multiple games if you had them in same ged.
And thanks! :D

Hblade wrote:EPIC DUDE! This could be so useful! :)

Yeah, I made this thinking that if someone makes his game from beginning with this,
it will be very easy to export it to different resolutions. :D
And thanks to you as well! :)

Re: RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Tue May 31, 2011 4:15 pm
by Hblade
yes indeed! :D It'd make things so much quicker

Re: RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Wed Jun 01, 2011 1:40 am
by Jagmaster
Why don't canvas actors draw tiled actors anyway?
Ah well, some day I'll just have to go and get a tile utility. :roll:
(Not a problem with this program, just the stupid canvas :p)

Re: RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Wed Jun 01, 2011 8:59 am
by rykein
very nice +1 for your efforts. definately add zoom to it even though all you need to do is increase that size variable. perhpas make a function to zoom in at certain speeds to certain sizes. and/or make the zoom out proportionatly slower as it goes out so it isnt a massive decrease due to size exponentialish shrinking. and i think tiles dont work cuz they arnt static images like animations are. they prolly use some form of array or somethin to let ge know where to draw them but the draw_from function doesnt use it.

Re: RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Wed Jun 01, 2011 1:59 pm
by savvy
wow, amazing lcl this is so useful for so many things :D im sure many people will use this in the future, you should copyright it so that you have to have a mention ;)
but anyway, yes, this is amazing lcl, well done and thank you :) (+1)

Re: RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Thu Jun 02, 2011 7:43 am
by lcl
rykein wrote:very nice +1 for your efforts. definately add zoom to it even though all you need to do is increase that size variable. perhpas make a function to zoom in at certain speeds to certain sizes. and/or make the zoom out proportionatly slower as it goes out so it isnt a massive decrease due to size exponentialish shrinking. and i think tiles dont work cuz they arnt static images like animations are. they prolly use some form of array or somethin to let ge know where to draw them but the draw_from function doesnt use it.

I can make a zoom, but it isn't the most important thing about this.
The idea is to be able to transform already made games to different resolutions. :)ยจ

savvy wrote:wow, amazing lcl this is so useful for so many things :D im sure many people will use this in the future, you should copyright it so that you have to have a mention ;)
but anyway, yes, this is amazing lcl, well done and thank you :) (+1)

Thanks man! :)

Re: RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Thu Jun 02, 2011 7:45 am
by rykein
yah i no. it was just so easy to do i felt like it should be part of it. anywys this kind of thing would be perfect for zooming within teh game. you could do some pretty cool things with it and could help in td games and rts games.

Re: RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Thu Jun 02, 2011 10:47 am
by savvy
adding a zoom would just be for example.. a sliderbar which has relevance to the zoom, am i correct?

Re: RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Thu Jun 02, 2011 9:45 pm
by rykein
i know a zoom would be easy but i didnt mean like a scroll bar. just a function that allows you to jump between two zoom levels smoothly. though some games could use a zoom bar like that. im just thinking of those td games that allow you to look at the field from far and from close. that kind of thing can apply to lots of games.

Re: RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Mon Jun 06, 2011 12:11 am
by Imperialjester
this is awesome thanks for the post.

Re: RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Thu Jun 09, 2011 5:54 am
by noonenew
wow this is really cool not sure what games id make with this but awesome. does it lag if you have to much goin on? and now that i have two posts +1 for you!

Re: RESOLUTIONARY v1.0 - game scaler by lcl

PostPosted: Wed Jun 15, 2011 5:59 am
by lcl
Thank you for comments everyone!

What comes to making a zoom, it would be easy and I know most of you can do it yourself. :)