Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Bitmaps Into Arrays!

Author
Message
ConsoleBoy164
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location: United Kingdom
Posted: 23rd Feb 2003 01:43
This ones been puzzlin me for weeks, but ive finally cracked it (with some research on the internet).
24 Bit bitmaps (made in paint) can be converted into Arrays, which could be used for almost anything from lemmings to sonic.
I don't know wether this is any use to anyone, but i reckon it could be adapted to make some good games!
This code could probably be adapted to create bitmaps out of anything! Anyway, if anyone is interested please ask me.
(And tell me how to add code snippets, im new to this forum stuff!)
16 Consoles and 200+ Games. Thats some addiction!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd Feb 2003 02:10
Just surround your code with [ code ] and [ /code ] (without the spaces inside the brackets).
ConsoleBoy164
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location: United Kingdom
Posted: 23rd Feb 2003 02:25
Well Anyway, here is the code for you all:
The important variables are pulled, the colour matchin was quite annoying as i was getting flourescent results for some time. note. If this doesnt work, and displays scrambled, then the bitmap might not be 24-bit or made in paint, this is the only bmp i have managed to load, but I am working on mode switching etc...


16 Consoles and 200+ Games. Thats some addiction!
Manson
21
Years of Service
User Offline
Joined: 20th Oct 2002
Location: Denmark
Posted: 3rd Mar 2003 15:11
I've tried your code, but the image gets stretched, and it looks very much like a black and white image when it's drawn.

Manson
21
Years of Service
User Offline
Joined: 20th Oct 2002
Location: Denmark
Posted: 3rd Mar 2003 15:12
Are you still working on it?
It could turn out to be very usefull!!

k0shi
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location: Cyberspace
Posted: 8th Mar 2003 02:27
'lemmings' is an awsome game, some1 should make a retro of that, but i guess the contest is to close to ending to start on that.

If I could drop dead right now, I'd be the happiest man alive.
---------------------------------
.....:::<>-<K0shi>-<>:::.....
PiratSS
21
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 8th Mar 2003 07:03
the idea was used long ago by me to make smooth landscapes.

I just made a HUGE white dot on 640x480 black background In photoshop, and blurred it. that way, I got a nice hill. If i have >1 dots, I get nice lanscape!

Then I discovered how to normalize matrices, and desided to discard this method due to the size of the file.


Toughest line of codecol$=asc(left(Pcol$)),1+str$(rev)+chr(80)+left(right(mid(name$),1),1)
lukeo25
20
Years of Service
User Offline
Joined: 8th Aug 2003
Location:
Posted: 12th Aug 2003 10:53
ConsoleBoy164 This is just what Ive been looking for. Absolutely excelent!!!!!. I can now proceed in taking over the woooooorrrrlld.

Login to post a reply

Server time is: 2024-04-24 09:16:21
Your offset time is: 2024-04-24 09:16:21