[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 580: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 636: sizeof(): Parameter must be an array or an object that implements Countable
Brads Electronic Projects Forum • First release of the Super Pixel Bros Level Converter
Page 1 of 1

First release of the Super Pixel Bros Level Converter

Posted: Sun May 29, 2011 9:03 am
by brad
If I could ask a favor of a few of you guys, I'd like you to test out the level conversion program that I have made using visual basic. I just want to be sure that it will run on computers other than mine.
screen-capture-1.png
screen-capture-1.png (54.74 KiB) Viewed 13446 times
Basically it allows you to open up a 120x8 pixel graphic (which I draw in paint) and it will then convert it to the necessary data to paste into the swordfish code. (the data will be copied straight to the clipboard, so if you open up notepad or swordfish, all you need to do is paste it)

I will be uploading a template that you also use in paint as well as a video tutorial of how to make your own levels for the game but I just wanted to test the software here first.

If you could report any bugs or issues here, i'd be very appreciative!

(by the way, you just need to download the zip file, unzip it then click on the setup file - it will automatically install it to your computer and you can find it in the start menu under Bradsprojects. - you can uninstall it from your add/remove programs in the control panel)
SPBLevelConverter.zip
(446.92 KiB) Downloaded 1018 times
Here's an example of some output code for one such level, it gives you red pixel data, green and also blue. It also gives you barrier data so we know what is actually going to prevent us from moving (for example, we want to be able to jump through clouds although not through brick walls etc...)

Code: Select all

const RedLevel1Data(120) as byte = (%00000000,%00000000,%01000000,%11000000,%01000000,%00000000,%00000000,%00001000,%00000000,%00001000,%00101000,%00001000,%00000000,%00000000,%00000000,%00000000,%10000000,%11000000,%01000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00001000,%00000000,%00000000,%01000000,%11000000,%11100000,%01000000,%00000000,%00000100,%00000100,%00010000,%00010000,%00010000,%00010000,%00000000,%00000000,%00000000,%00000000,%00000000,%00010000,%00010100,%00000000,%00000000,%01001000,%11001000,%11000000,%10000000,%00001000,%00000000,%00101000,%00000000,%00001000,%00000000,%00000000,%00100000,%00100000,%00000000,%00000000,%00101000,%00100000,%00000000,%00000000,%00000010,%00000110,%00001110,%00000000,%00001110,%00000110,%01000010,%11000000,%01000000,%00000010,%00000110,%00001110,%00001110,%00000000,%00001110,%00000110,%00000010,%00000000,%00000000,%00000000,%00000000,%00000000,%00001000,%00001000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000010,%00000110,%00001110,%00011110,%00011110,%00000000,%01000000,%11100000,%11100010,%01000000,%00000000,%00001110,%00111110,%00011000,%00111110,%00001110)
const GreenLevel1Data(120) as byte = (%00000001,%00000001,%01000001,%11000001,%01000001,%00000001,%00000001,%00001001,%00000001,%00001001,%00101001,%00001001,%00000001,%00000001,%00000001,%00000001,%10000111,%11000111,%01000001,%00000001,%00000001,%00001111,%00001111,%00000001,%00000001,%00001111,%00001111,%00000001,%00000001,%00001111,%00001111,%00000001,%00000001,%00001001,%00000001,%00000001,%01000001,%11000001,%11100000,%01000000,%00000001,%00000101,%00000101,%00010001,%00010001,%00010001,%00010001,%00000001,%00000001,%00000000,%00000000,%00000000,%00010001,%00010101,%00000001,%00000001,%01001001,%11001001,%11000001,%10000001,%00001001,%00000001,%00101001,%00000001,%00001001,%00000001,%00000001,%00100001,%00100001,%00000001,%00000001,%00101001,%00100001,%00000001,%00000001,%00000011,%00000111,%00001111,%00000001,%00001111,%00000111,%01000011,%11000001,%01000001,%00000011,%00000111,%00001111,%00001111,%00000000,%00001111,%00000111,%00000011,%00000001,%00000111,%00000111,%00000001,%00000001,%00001001,%00001001,%00000001,%00000001,%00000001,%00000111,%00000111,%00000011,%00000111,%00001111,%00011111,%00011111,%00000001,%01000001,%11100001,%11100011,%01000001,%00000001,%00000001,%00000001,%00000001,%00000001,%00000001)
const BlueLevel1Data(120) as byte = (%00000000,%00000000,%01000000,%11000000,%01000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%10000000,%11000000,%01000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%01000000,%11000000,%11100000,%01000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%01000000,%11000000,%11000000,%10000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%01000000,%11000000,%01000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%01000000,%11100000,%11100000,%01000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000)
const BarrierLevel1Data(120) as byte = (%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000)

Re: First release of the Super Pixel Bros Level Converter

Posted: Mon May 30, 2011 5:29 am
by bitfogav
Tested all the functions, seems to work fine Brad on Windows Vista

(nice link on the App to the website aswell) :) Heres a screen shot and code from my image.
screen111.jpg
screen111.jpg (61.64 KiB) Viewed 13436 times

Code: Select all

const RedLevel1Data(120) as byte = (%11111111,%11111111,%11111111,%11111111,%11111111,%11000000,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11000000,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11000000,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11000000,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11111111)
const GreenLevel1Data(120) as byte = (%11111111,%11111111,%11111111,%11111111,%11111111,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11000000,%11000000,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11000000,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11000000,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11000000,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11000000,%11011110,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11011110,%11000000,%11111111)
const BlueLevel1Data(120) as byte = (%11111111,%11111111,%11111111,%11111111,%11111111,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11000000,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11111111,%11000000,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11011110,%11000000,%11111111)
const BarrierLevel1Data(120) as byte = (%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000)

Re: First release of the Super Pixel Bros Level Converter

Posted: Tue May 31, 2011 12:54 pm
by brad
Huge thanks for that Gav, good to see that it works on someone else's computer.

I have received the boards but I have found an error in them which I need to fix up and get re-made. :roll:

Re: First release of the Super Pixel Bros Level Converter

Posted: Wed Jun 01, 2011 2:27 am
by bitfogav
Ahhh NO :(

Re: First release of the Super Pixel Bros Level Converter

Posted: Wed Jun 01, 2011 8:09 pm
by brad
Yeah I know, silly me!