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.

Code Snippets / Mario Sprite - no media !? [DBC]

Author
Message
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 28th Feb 2006 20:18
omg hard work



[/center]
Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 28th Feb 2006 20:28
Wow how long that take you?

Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 28th Feb 2006 21:50 Edited at: 28th Feb 2006 21:51
to be precise I would bet it took him exactly 6054days not including weekends.

That is really good man I cant believe you did that with dots alone.

Well done

Now I dare you to get it to move with the arrow keys and have a walking anim, still just using dots

BM

Our aim is to keep the loo's clean, your aim can help.
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 28th Feb 2006 22:27 Edited at: 1st Mar 2006 00:51
The sprite was done in 46 minutes and 34 seconds
and If I have time (I dont waste my time ) Ill do a
walk animation. - still without media

[/center]
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 1st Mar 2006 13:26
Did you used an external editor, or just wrote coordinates for each dot ?

p.s. how did you know what colors-where to put and dots and everything....great work man !

Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 1st Mar 2006 15:07
I dont used an editor Ive picked every colour in paint then

I clicked on colours/edit palette/define colour ?! I think this is the right translation
But Ill whrite a program that will do it automaticly
==> Select the bmp and you will get a dba

[/center]
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 1st Mar 2006 19:19
Cool, that is a great idea , except, i have no idea how you can move sprites made like that and manipulate sprites made like that (well actually, only move them is what is needed..), i know dot positions can be contained in a string(s) and then just ,when leftkey()=1
inc x,1
inc x1,1
inc x2,1
inc x3,1
endif
And so on for all pixels..

Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 1st Mar 2006 20:06
Yes right but you can use get image imnum,maxx,maxy

[/center]
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 2nd Mar 2006 14:11 Edited at: 2nd Mar 2006 16:31
here is an example [no media]

=====================
EDIT:
Here is the walkcode:






[/center]
Drew the G
User Banned
Posted: 2nd Mar 2006 16:52
That code is superb! Mind if I use it? Not sure what though, but atleast I'd have it on hand.

Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 2nd Mar 2006 18:41
That is some amazing 'code-paint' stuff! Reminds me of my old qbasic / msx basic times


.::Studying game design at the moment::.
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 2nd Mar 2006 19:25
Its a snippet use it copy it make your own games with it

@ Turoid
thx. Im so angry that I cant make my own music like in qbasic

@all:
Is there any dll that can do that??

Soon ill add points lifes.

[/center]
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 2nd Mar 2006 19:50
Quote: "Is there any dll that can do that??"


O have thought about it for a while...no way to make it read from a picture, BUT i`m allready working on a paint-like drawing program witch will export to DBC code

Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 2nd Mar 2006 20:37 Edited at: 2nd Mar 2006 21:50
== I am creating a converter !!==

You can download it in 2 (10:30 pm) hrs here.

It will be easy to use: select the bitmap and you will get the DB code

Edit: Here is the bmp to dba converter

http://www.onlineartsgames.de/converter.zip

Special thanks to TDK_man for the file browser

[/center]
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 2nd Mar 2006 22:36
Hm...Very Nice


But, how did you made it to read pixel coordinates ?

I have no idea how can db do that ?

Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 2nd Mar 2006 22:44
here is a snippet


[/center]
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 2nd Mar 2006 22:54 Edited at: 2nd Mar 2006 22:58
Ok,now i understand how, thank you.


And here`s a tip on how to make it faster :

Make it not to read one pixel at a time (loop), make it to read more pixels at a time, by making it to you know by making one "reading" one pixel infront of the last one. (hwo knows,maby something like this could really inprove its speed..)

Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 2nd Mar 2006 23:58
There is a DBC bug : if I convert a bmp with the scoure code it will be 10 times faster . Ill publish the scoure someday
And It cant read 2 pixels at the same time. Because it has to read the
color information and positon and save these numbers as a string.
The loading is much faster than the converting.

[/center]
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 3rd Mar 2006 02:20
Hey, Jack, i have one idea :

What do you think , if we make a freeware sprite library (converted into the code) ?

That might be good, especially sence people like to have code instead of media for 2d games, that might inspire people to make some 2d games in dark basic classic

Offcourse, in that library we dont have to make all our own sprites, we can convert allready existing ones like mario or any other sprites ?

Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 3rd Mar 2006 16:09
No thats nosense - They can convert their sprites with my simple program

Ill add this program to the Program Announcements board

[/center]
re faze
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 3rd Mar 2006 18:24
seems like a workaround for the ti83+ calculator
seriously though, you could use a dbp program to generate this

kyle thompson
18
Years of Service
User Offline
Joined: 9th Mar 2006
Location:
Posted: 12th Mar 2006 02:16
Somebody has too much time on their hands. :p
Wow...
I don't have the patience to do something like that...

Hi
Hobgoblin Lord
19
Years of Service
User Offline
Joined: 29th Oct 2005
Location: Fall River, MA USA
Posted: 17th Mar 2006 05:23
I wrote a DBpro program that does this. its posted in the DBP challenges thread page 80 and uses alot less lines. And I converted a 800x600 in under 10 seconds
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 17th Mar 2006 13:49 Edited at: 17th Mar 2006 13:51
Ive written the same program in DBP and it also does that
(800x600 in 2 secs) using memblocks
I think DBC was the reason for the low speed

[/center]
Evil Booger
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: My evil lair
Posted: 20th Mar 2006 01:32
Jack you are awesome!

boogers will take over the world
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 21st Mar 2006 00:48
Well, why dont you give us the dbpro version then ?


DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 21st Mar 2006 01:09
that si asome.

Check out my site!(unfinished)
http://www.freewebs.com/dbnewbie/
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 21st Mar 2006 02:02
DBNEWBIE: Your sign is too big, it shouldnt be greater in size then 600*120.


DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 21st Mar 2006 04:24
ill change it in a bit.

Your signature has been erased by a mod because it's larger than 600x120...
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 21st Mar 2006 06:54
There are some bugs and Ill post it later
But it wont be the DB code

[/center]
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 21st Mar 2006 12:34
Well, most of us, from recently including me , have dbpro, and it will be much faster, it can still compile to dbc code (though it isnt much of a difference in "dot a,b" command..), just compile to .exe and there wont be problems for dbc users to run it


(also code is welcome )


Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 21st Mar 2006 17:20
DBC export looks like that:
ink rgb(210,160,60),0
dot 8,2

and the DBP function like that:
cb(210,160,60) : d(8,2) : d(9,2) : d(10,2)

[/center]
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 21st Mar 2006 20:21
WELL MAKE IT IN DBPRO TO EXPORT FOR DBC, SIMPLE ENOUGH ?


and as i said, compile it to exe for dbc users that happen not to have dbp...


Krimzon DestinE
19
Years of Service
User Offline
Joined: 18th Sep 2005
Location:
Posted: 18th May 2006 07:01
this is brilliant. my hat's off to ya
Dr Manette
18
Years of Service
User Offline
Joined: 17th Jan 2006
Location: BioFox Games hq
Posted: 30th May 2006 22:55
Nice job! It surprised that it looks so good. Animating it will be fun

Bio Fox...four guys, one computer, games like nobody's business.

Login to post a reply

Server time is: 2024-11-23 03:33:20
Your offset time is: 2024-11-23 03:33:20