RESOLUTIONARY v1.0 - game scaler by lcl

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

RESOLUTIONARY v1.0 - game scaler by lcl

Postby lcl » Mon May 30, 2011 11:27 pm

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.
Last edited by lcl on Tue May 31, 2011 9:47 pm, edited 7 times in total.
SABRE (semi-3D engine) official development topic: viewtopic.php?f=6&t=12644
A game project that utilizes SABRE: viewtopic.php?f=4&t=13297
User avatar
lcl
 
Posts: 2238
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 265 Give a positive score

Re: RESOLUTIONARY v1.0 - game scaler by lcl

Postby Jagmaster » Tue May 31, 2011 12:01 am

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!
Last edited by Jagmaster on Tue May 31, 2011 12:40 am, edited 1 time in total.
User avatar
Jagmaster
 
Posts: 878
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: RESOLUTIONARY v1.0 - game scaler by lcl

Postby Hblade » Tue May 31, 2011 12:37 am

EPIC DUDE! :D This could be so useful! :)
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 180 Give a positive score

Re: RESOLUTIONARY v1.0 - game scaler by lcl

Postby lcl » Tue May 31, 2011 5:49 am

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! :)
SABRE (semi-3D engine) official development topic: viewtopic.php?f=6&t=12644
A game project that utilizes SABRE: viewtopic.php?f=4&t=13297
User avatar
lcl
 
Posts: 2238
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 265 Give a positive score

Re: RESOLUTIONARY v1.0 - game scaler by lcl

Postby Hblade » Tue May 31, 2011 4:15 pm

yes indeed! :D It'd make things so much quicker
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 180 Give a positive score

Re: RESOLUTIONARY v1.0 - game scaler by lcl

Postby Jagmaster » Wed Jun 01, 2011 1:40 am

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)
User avatar
Jagmaster
 
Posts: 878
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: RESOLUTIONARY v1.0 - game scaler by lcl

Postby rykein » Wed Jun 01, 2011 8:59 am

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.
rykein
 
Posts: 63
Joined: Mon Jul 26, 2010 7:26 am
Score: 5 Give a positive score

Re: RESOLUTIONARY v1.0 - game scaler by lcl

Postby savvy » Wed Jun 01, 2011 1:59 pm

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)
--> For my help, i ask for a simple +1 if it helps! ^-^
--> I dont code, I type art which you dont understand.
--> I keep winning the 3D model challenge at college, teacher says: "you keep winning im not giving you prizes".
User avatar
savvy
 
Posts: 494
Joined: Wed Jun 03, 2009 11:55 am
Location: England
Score: 43 Give a positive score

Re: RESOLUTIONARY v1.0 - game scaler by lcl

Postby lcl » Thu Jun 02, 2011 7:43 am

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! :)
SABRE (semi-3D engine) official development topic: viewtopic.php?f=6&t=12644
A game project that utilizes SABRE: viewtopic.php?f=4&t=13297
User avatar
lcl
 
Posts: 2238
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 265 Give a positive score

Re: RESOLUTIONARY v1.0 - game scaler by lcl

Postby rykein » Thu Jun 02, 2011 7:45 am

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.
rykein
 
Posts: 63
Joined: Mon Jul 26, 2010 7:26 am
Score: 5 Give a positive score

Re: RESOLUTIONARY v1.0 - game scaler by lcl

Postby savvy » Thu Jun 02, 2011 10:47 am

adding a zoom would just be for example.. a sliderbar which has relevance to the zoom, am i correct?
--> For my help, i ask for a simple +1 if it helps! ^-^
--> I dont code, I type art which you dont understand.
--> I keep winning the 3D model challenge at college, teacher says: "you keep winning im not giving you prizes".
User avatar
savvy
 
Posts: 494
Joined: Wed Jun 03, 2009 11:55 am
Location: England
Score: 43 Give a positive score

Re: RESOLUTIONARY v1.0 - game scaler by lcl

Postby rykein » Thu Jun 02, 2011 9:45 pm

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.
rykein
 
Posts: 63
Joined: Mon Jul 26, 2010 7:26 am
Score: 5 Give a positive score

Re: RESOLUTIONARY v1.0 - game scaler by lcl

Postby Imperialjester » Mon Jun 06, 2011 12:11 am

this is awesome thanks for the post.
User avatar
Imperialjester
 
Posts: 185
Joined: Wed Dec 08, 2010 5:39 pm
Score: 10 Give a positive score

Re: RESOLUTIONARY v1.0 - game scaler by lcl

Postby noonenew » Thu Jun 09, 2011 5:54 am

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!
noonenew
 
Posts: 11
Joined: Sun Nov 14, 2010 11:12 am
Score: 0 Give a positive score

Re: RESOLUTIONARY v1.0 - game scaler by lcl

Postby lcl » Wed Jun 15, 2011 5:59 am

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. :)
SABRE (semi-3D engine) official development topic: viewtopic.php?f=6&t=12644
A game project that utilizes SABRE: viewtopic.php?f=4&t=13297
User avatar
lcl
 
Posts: 2238
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 265 Give a positive score

Next

Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest

cron