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.

The 20 Line Challenge / 3d level maker

Author
Message
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 22nd Nov 2005 06:20
ok,this is 64 lines because i couldn't get the compressor programs to work, if anyone could compress this for me that would be great.

Basically what this program does is take a bitmap, then using its rgbr color value, assign a size for that pixel (0 being small 255 being HUGE), and assign a height for that pixel based on the rgbb color value. It isn't perfect or complete yet.

-BTW, don't do the multilayer thing, I started but never finished it.

Any suggestions as to how I can make this better would be greatly appreciated. When I get around to it, I will add a texture part but probably not soon.

here is the code


As I said before, someone PLEASE compress this for me.

Thanks
UFO
18
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 22nd Nov 2005 16:31
You don't need it to be compressed... as long as it will fit IF it is compressed...I think...

BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 23rd Nov 2005 01:45
I don't know if it will fit, my compressor doesn't work so I can't test it to see.
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th Nov 2005 20:05
The whole point of the excercise is to squeeze as much as you can into 20 lines of code.

You shouldn't need a compressor program to do that - just find the colon key and figure it out.

TDK_Man

The Nerd
19
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 25th Nov 2005 21:02
And you always got the Code Snippet board too Were this code would fit better

PanzerGameshere
Free Particle Engine For dbpro :
here
Darkbasic MADPSP
18
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 5th Dec 2005 18:33
Looks good

Experienced DB http://www.greatgames3d.com (work in progress site)
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 24th Jan 2006 05:43
uh... all it does is show my bitmap in the upper left corner

smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 5th Feb 2006 14:02
here u go... 20 lines=


life's one big game
spec= 1.6ghz, 512mb ram, 128mb gpu, directx 9.0c, dbpro and classic
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 6th Feb 2006 05:07
Quote: "uh... all it does is show my bitmap in the upper left corner"


yeah it does that at first, it is "scanning" the picture. Just wait for a while, you should be able to see progress next to your picture(a couple of extra pixels that it "scans"). Once that gets to the bottom, it will make your 3d world.


to smallg-

Thanks!
Maldragon
18
Years of Service
User Offline
Joined: 29th Dec 2005
Location: Here
Posted: 8th Feb 2006 02:35
Hey, pretty cool. It could be a bit better, but it's still not a bad bit of code.

"Reality is merely an illusion. Albeit a very persistant one." -Albert Einstein
FrEaK Sk8
18
Years of Service
User Offline
Joined: 1st Feb 2006
Location: about:Blank
Posted: 12th Feb 2006 18:43
Yo... What's up ... Let set up a competicion ... Like am ... Using media ... And u create something like in 3d and all out of spheres ... Am.. Who wins sets up another competicion .. lol ...
Jedi Lord
19
Years of Service
User Offline
Joined: 11th Jun 2004
Location: Jedi Temple
Posted: 11th Apr 2006 04:34
It simple....
no matter how complex the code is... you can alway compress them easy...

: is a creation of new line function...

print "hi"
wait 500
print "bye bye"
wait key

TO

print "hi":wait 500:print "bye bye":wait key

IT SIMPLE!!!


Whoa... I like a shiny thing...

Login to post a reply

Server time is: 2024-04-19 12:47:31
Your offset time is: 2024-04-19 12:47:31