|
Post by atomose on Dec 29, 2021 18:09:07 GMT -5
hi,
I dont know if its possible in LB but is it possible to have a normal window with a background, sprites and pictures and use a button to resize all of this ? As a normal game when you change the resolution.
I know its possible to change it for sprite (scale command) and for the windows or graphicbox its ok to, but for the background and pictures i dont know how is it possible .... some one have idea ?
(on time, with a bug, it was possible to zoom on the background picture but i dont know how i did it)
thx all
|
|
|
Post by Brandon Parker on Dec 29, 2021 20:54:37 GMT -5
You can easily use Alyce's Image323.dll to resize a bitmap. It is the "ChangeSize" function in the DLL... To download the DLL ZIP folder, right-click on the link on Alyce's site, select "Copy link address" from the context menu, and then paste it into the browser's URL location. alycesrestaurant.com/dll.htm#323{:0) Brandon Parker
|
|
|
Post by Rod on Dec 30, 2021 6:24:01 GMT -5
Not sure what you are trying to do. Its quite hard enough coding a game for a specific resolution never mind several. If you want to change background and sprite image sizes you are far better off using the blitter. The sprite engine is ok enlarging sprites but not so good reducing them. If you use the blitter you dispense with sprites and use a graphic sheet for images. The point of the demo is that you retain all the same size parameters in your code for the game, you just resize the buffer to the desired screen size at the last moment. libertybasiccom.proboards.com/thread/1304/scale-window-fills-screen-gamePress Esc to quit the full screen demo.This was a code I posted to demonstrate changing the visible size of the displayed game, the background and sprite images dont change size. All the routines you will need to accomplish what you want are in the code. There are tutorials on the LBPE as well. The link to the very original code for the resource files does not show up too well in the forum colors, click on the word support to get the original .zip then look at the new code in the thread. One caveat, we may well lose access to the blitter when we move to LB5 which will have its own buffering system.
|
|
|
Post by atomose on Dec 31, 2021 5:48:12 GMT -5
lot of thx ! i going to see that =)
|
|