|
Post by neils4 on Mar 4, 2024 6:29:33 GMT
Hi, I was wondering if anyone here has heard of a piece of sprite editing software called Pixelplus 256. It’s intended to be used to make graphics for QBASIC’s Screen 13 graphics mode and allows users to make graphics with the 256 Screen 13 colors. These image files are saved as .PUT files which supposedly can be loaded into QBASIC. I know how to make graphics and animations with the program. I just don’t know the code to load the .PUT files onto the screen so they can be gotten with the GET statement and put with the PUT statement later. One website supposedly shows how to do it. It’s at balau82.wordpress.com/2015/01/18/nostalgia-trip-qbasic-game-programming/I don’t quite understand his code. Do you think someone can dumb it down for me so I can load my .PUT files into Screen 13?
|
|
|
Post by bplus on Mar 4, 2024 18:23:27 GMT
I think you load from file with a BLOAD statement not a Get. I could be wrong, this is old fashioned out of date method for QB64.
Checkout BLOAD in Wiki, probably has a better example or quick one for a sprite.
Update: A quick skim tells me they use a bunch of out dated tools variable pointers to memory segemnts. Bload loads up an array but you need something like this from your link:
DEF SEG = VARSEG(sprite(0)) 'Select memory segment containing array. BLOAD "RUNNER.PUT", sprite(0) 'Load file into array. DEF SEG 'Reset memory segment
I am pretty sure this stuff can't be ported to Linux.
QB64pe v3.11+ now has _SaveImage! It is now a piece of cake to save an image created in your program to file in many formats!
|
|
|
Post by neils4 on Mar 4, 2024 23:02:32 GMT
I messed around with the code on the page and found a way to load up the .PUT files in QB64’s Screen 13. My method is not perfect, but it works. Thank you for your help!
|
|