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 / DBPro (no media): 2D Vector Graphics with Glowing Side Bars

Author
Message
ChipOne
20
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Canada
Posted: 6th Oct 2002 09:42
If anyone here ever used to play on the old Vextrex systems, you'll really appreciate this one (AND you'll be admitting you're OLD!)

I actually wrote a tool to generate the 2D vectors (that's what's stored in the DATA arrays)...so I certainly win the highest linecount award: over 300 lines of code went into making this 20 line demo.

ChipOne
20
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Canada
Posted: 6th Oct 2002 22:56
It's easy to replace the 2d vector art with other shapes...here's one for halloween, just replace the DATA statements:



The Darthster
20
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 6th Oct 2002 23:25
Now I really like that. Good work.
Shadow Robert
20
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 7th Oct 2002 01:37
Sweet
I'm not that old am i?

Holy jumping mother of god NOOOO!!!...
Ahem I mean, I'll think about it
rapscaLLion
20
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Canada
Posted: 7th Oct 2002 23:41
I get the error: "could not find field 'color' in type 'DWORD' at line 8"

Alex Wanuch
aka rapscaLLion
Get the DB Weekly Newsletter at www.dbwn.cjb.net
Richard Davey
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 8th Oct 2002 00:46
Very cool indeed - especially the pumpkin!
Raps - you using the trial version?

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
ChipOne
20
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Canada
Posted: 8th Oct 2002 01:22
no...it works fine with the trial version, but the problem you'd be having seems only to happen with the Beta 3 copy of dbpro.

there is a bug with that version that prevents the compiler from seeing UDTs nested in function calls. there are workarounds, but it drives it way over the 20 lines (as you have to use indirect assignment to temp vars for everything).

blow off your beta 3 and download the 30 day demo...i'm running it here at work (I have the full version at home) and it works fine!

Matto
20
Years of Service
User Offline
Joined: 27th Aug 2002
Location:
Posted: 10th Oct 2002 00:56
nice work there ChipOne

1ghz Cel,512 sdram 133,Gf2 MX 400 64,SBL 5.1,Win98
Best Upcoming MMOG - http://WWW.Atriarch.com
Project: Card Game with No Name
Khumba
20
Years of Service
User Offline
Joined: 1st Sep 2002
Location:
Posted: 27th Oct 2002 16:53
sweet!

Login to post a reply

Server time is: 2022-12-06 10:15:17
Your offset time is: 2022-12-06 10:15:17