ZippyRedPlumber Posted September 21, 2020 Share Posted September 21, 2020 In the process of making levels for the Sonic game I'm working on. What puzzles me is getting simple BMPs of the level layout into data values for example; "DATA $0000,$1824,$2418,$0000" how does one do this? Quote Link to comment Share on other sites More sharing options...
+nanochess Posted September 21, 2020 Share Posted September 21, 2020 If you are using IntyBASIC you can do the same using this: BITMAP "00000000" BITMAP "00000000" BITMAP "00011000" BITMAP "00100100" BITMAP "00100100" BITMAP "00011000" BITMAP "00000000" BITMAP "00000000" It is easier to introduce bitmaps as readable source code. 2 Quote Link to comment Share on other sites More sharing options...
carlsson Posted September 21, 2020 Share Posted September 21, 2020 If you're using the command line tool intycolor to convert a BMP to image data, it has an option to output BITMAP statements instead of DATA. Like Nanochess wrote, BITMAP is more readable/editable but if your graphics are finished, DATA is a bit more compact in the code. The DATA statements are 16-bit with every two bitmap rows swapped, i.e. row2*256 + row1, row4*256 + row3, row6*256 + row5, row8*256 + row7. Unless you manually convert from one to another, you don't have to worry about this. 2 Quote Link to comment Share on other sites More sharing options...
ZippyRedPlumber Posted September 21, 2020 Author Share Posted September 21, 2020 13 hours ago, carlsson said: If you're using the command line tool intycolor to convert a BMP to image data, it has an option to output BITMAP statements instead of DATA. Like Nanochess wrote, BITMAP is more readable/editable but if your graphics are finished, DATA is a bit more compact in the code. The DATA statements are 16-bit with every two bitmap rows swapped, i.e. row2*256 + row1, row4*256 + row3, row6*256 + row5, row8*256 + row7. Unless you manually convert from one to another, you don't have to worry about this. I've got Intycolor, how do I run it? Quote Link to comment Share on other sites More sharing options...
+nanochess Posted September 21, 2020 Share Posted September 21, 2020 1 minute ago, ZippyRedPlumber said: I've got Intycolor, how do I run it? IntyColor gets a BMP file (24-bits) as input and generates IntyBASIC bitmap data and card data for displaying. For example, if you have a screen of 160x96 pixels named "Beauty.bmp" then you would do this: intycolor -b beauty.bmp beauty.bas beauty It would generate a compilable BAS file using "beauty" as the label for data (useful when you have multiple images) If you only need the data (because you are including the image data into another program) then you add the option -n for no stub. 1 Quote Link to comment Share on other sites More sharing options...
Kiwi Posted September 25, 2020 Share Posted September 25, 2020 One suggestion for nanochess is to have all the text that can be invoked by typing only Intycolor.exe in a command line into a new notepad to refer to. I'm not sure many people are aware of typing Intycolor in command prompt will give a big list of command. And clicking on it in windows will dismiss it immediately, maybe insert something like press any key to continue message. I usually boot up Run and type or select the pretyped command of IntyCOLOR, usually it dismiss it when it done and I have a new .bas file. It may help people figure IntyCOLOR out better. I think having a seperate manual for Intycolor would be good. It is a great program, and I use it to transfer tilesets to Intycolor. Quote Link to comment Share on other sites More sharing options...
carlsson Posted September 25, 2020 Share Posted September 25, 2020 This works even in the Windows command prompt: intycolor 2> intycolor.txt 2> redirects stderr to a file. But sure the docs could come supplied with the compiler package. Quote Link to comment Share on other sites More sharing options...
+Tarzilla Posted September 25, 2020 Share Posted September 25, 2020 3 hours ago, Kiwi said: One suggestion for nanochess is to have all the text that can be invoked by typing only Intycolor.exe in a command line into a new notepad to refer to. I'm not sure many people are aware of typing Intycolor in command prompt will give a big list of command. And clicking on it in windows will dismiss it immediately, maybe insert something like press any key to continue message. I usually boot up Run and type or select the pretyped command of IntyCOLOR, usually it dismiss it when it done and I have a new .bas file. It may help people figure IntyCOLOR out better. I think having a seperate manual for Intycolor would be good. It is a great program, and I use it to transfer tilesets to Intycolor. I'd agree, the command line is a lost tool/concept. I have a staff of 10 developers, any of them under 45 have no clue what it is. I do all my Inty Dev work with the command line and batch files (and judicial use of PAUSE ) 1 Quote Link to comment Share on other sites More sharing options...
carlsson Posted September 25, 2020 Share Posted September 25, 2020 A bit off-topic, but I dunno. I saw a survey the other day that indicated that up to 20% of all software developers prefer to use the vim editor. Of course Visual Studio was #1 but behind it other choices such as Sublime and Atom were neck to neck with vim. Apparently it was a multiple choice survey so the total exceeded 100%. My favorite editor, Emacs was down at 5%. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.