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.

Program Announcements / Bmp to dba converter for small sprites

Author
Message
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 3rd Mar 2006 16:16 Edited at: 3rd Mar 2006 16:23
This small program will convert a selected bitmap into a dba.

Here are some examples:

will be converted to:




and will be converted to:



and finaly this will be:






Here is the download link:

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

Ok the scoure code of the small bitmap is big but if you make
a no media game it would be very useful.

My reference:

Use : gosub sprite

and position this after the loop

sprite:
rem sprite code here
return








and dont try to convert big sprites

[/center]
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 3rd Mar 2006 17:54
Nice idea, a couple of points...

It might be better and would definitely be more compact as DATA statements, and a loop to read them.

INK and DOT are really slow. It would be many times more efficient (we're talking hundreds or thousands of times faster) to do it as a memblock.

Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 3rd Mar 2006 19:14 Edited at: 3rd Mar 2006 19:29
The problem is that not all DBC users have the 1.13 update
so they cant use memblocks but this program can be used for
1. DBC (all versions)
2. DBP (all versions)
3. Qbasic (only 4.5 or higher)
4. c++ (with a small converter that will be done)

EDIT:
In a bitmap could be hunderts of the same color. Ill merge
all dots with the same color code to save time. And bits
of course.
Maybe I will also use lines instead of two dots
- this would save time

[/center]
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 6th Mar 2006 18:43
interesting.

but you should use data statements. or atleast decrease the length of the file from 100lines to perhaps 10lines or something, using ':'.

HorizShootiz progress 96%

Login to post a reply

Server time is: 2024-11-22 19:29:23
Your offset time is: 2024-11-22 19:29:23