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! / Just "Circle" and "Box"? Are these the only 2D features of DBP?

Author
Message
tayete
21
Years of Service
User Offline
Joined: 20th Nov 2002
Location:
Posted: 17th Jan 2004 22:00
Well, I cannot believe that a proggie created to leave just the work to progam the "artistic" part of a game", makes me program low-level functions such as arc(), triangle(), or even filled_circle()!!!

Now the questions:
1) does anybody know if there are any Dlls or libraries available to expand the "powerful" 2D features of DBP?
2) Does anyone know how to create a semitransparent filled circle? Ineed to put a filled circle over a bitmap, showing what's underneath it. Is there a way?

Thanks to all you, DBP gurus!!! I am learning a lot with these threads.

__________________________
http://www.tayete.com
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 17th Jan 2004 22:30
Well not many games are made with drawing commands. If you want a filled circle, just draw one in an art package, then you can make it semi-transparent as well. You can also scale the circle to different sizes. Art is then loaded into DBPro. If you really do need drawing commands, I'm sure that there are some somewhere.

Pincho.

Dgamer
21
Years of Service
User Offline
Joined: 30th Sep 2002
Location:
Posted: 18th Jan 2004 01:33
Its not that hard to creat a triangle/arc function. But for filled shapes u need to make your own algorithm or use someone elses.

The statement below is true
The statement above is false
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 18th Jan 2004 02:22
1. Search for missing 2d in the codebase. I think there is a fill command there.

2. Use a paint program and save as a png file, they have 254 levels of transparancy. You can then load the image and either use it as a sprite or use paste image.

Most decent image editors should be able to make a png with transparancy. If you don't have on the gimp is free http://www2.arnes.si/~sopjsimo/gimp/
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th Jan 2004 00:00
YEs, there is a floodfill in CodeBase. Also there is a filled circle function in there too (search for 'missing').

If you need filled triangles, I'm sure that I have the code around somewhere. Just let me know if you want them.

For free Plug-ins, source and the DBPro Interface library for Visual C++ 6 and .NET
http://www.matrix1.demon.co.uk
tayete
21
Years of Service
User Offline
Joined: 20th Nov 2002
Location:
Posted: 23rd Jan 2004 13:35
Thank you all for your answers!
IanM, thanks for the offer. I had already tried the proggies at CodeBase, but they fill "too much". I mean, I need the circle to be transparent, and I see no way of making the ones created with that code, capable of showing what's underneath them.
What I really need too is an ARC() function, so I guess I'll have to undust my trigonometry...

__________________________
http://www.tayete.com

Login to post a reply

Server time is: 2024-05-13 04:43:03
Your offset time is: 2024-05-13 04:43:03