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 / Diablo style system

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 30th Nov 2004 18:00
I might continue the example further into a full design if there is ample interest.

Features:
How to click and move your character
Pressing SHIFT displays items on the ground
Moving cursor over displayed item name will change its display colors




"eureka" - Archimedes
DARKGuy
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 1st Dec 2004 00:25
Awesome Phaelax it feels like the same Diablo II, you just have to change the camera to be an isometric one and make it possible to follow the clicked objects (which semi-does now ) and then you have a full engine there..heh, nice one !!

Quote: "
-= 933 Mhz - SiS 630/730 8Mb - 128 RAM - 2.1Gb / 6.2Gb HDs - Sound: C-media CMI8738/C3DX PCI - CD-RW 52*32*52 - Windows 2000 =-
"
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st Dec 2004 07:59
semi-does now? the camera does follow the character. and for isometric, you can just turn the camera 45degrees

"eureka" - Archimedes
Cian Rice
19
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 8th Dec 2004 03:38
Can you make a version that works in DBC? I know of someone who could make use of this code, but alas he only has DBC not DBP.

Have a heart and join my message board.
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 8th Dec 2004 03:45
if you replace the Global * As Float with Dim *(0), then it should work in DarkBASIC Standard.

I'm a little confused to why Phaelax is using # and As Float, because they both mean the same thing. They're type castings, but ho hum.


Cian Rice
19
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 8th Dec 2004 03:59 Edited at: 8th Dec 2004 04:04
Thanks Raven.

Wait you mean this part right here?


Correct me if I'm wrong.

Have a heart and join my message board.
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 8th Dec 2004 06:19


tada
it's a little slower than the DBP one heh, but works identically


Cian Rice
19
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 8th Dec 2004 08:41
Thanks Raven.

Have a heart and join my message board.
The Wendigo
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 8th Dec 2004 14:36
Don't mind if I modify this and use it in my program do you? BTW, that is also a maybe, but if I do, I'll credit you of course, Phaelax.


Home of DOOP, Strata Works, and Height
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 9th Dec 2004 21:03
I'm accustomed to seeing floats in DB with the pound/sharp/# sign. Even though I define it as a float, I still put the symbol for easier reading. I'll work on this some more probably around christmas with my time off. Right now I've been caught up with my iTunes clone and want to get that finished. All thats really left to do is the sound engine and maybe add actual support for original iTunes XML library files, but that one is a maybe.
But back to the Diablo idea, I'll make a system that creates random items based on certain levels of chance the same way the real game does. If anyone knows a website with the item attribute ratios, lemme know.

"eureka" - Archimedes
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th Dec 2004 04:48
Anime blood, I messed up something.. you should spot it quickly but it prevents the character from erm, stopping heh.
Just thought i'd mention it if your wondering why that was happening


Cian Rice
19
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 10th Dec 2004 04:49 Edited at: 10th Dec 2004 04:55
That's odd, the character stops for me...
Edit: I was hallucinating.

Have a heart and join my message board.
The Lone Drow
19
Years of Service
User Offline
Joined: 19th Dec 2004
Location:
Posted: 19th Dec 2004 07:35
I need help with the code because i can't seem to get the guy to stop moving!

Btw, if any mods want to know why my IP is the same as Animblood's is because I'm typing this from his computer at the moment.

Just because you can kill someone doesn't mean you have the right to do so.
Amiga for Ever !
19
Years of Service
User Offline
Joined: 24th Dec 2004
Location:
Posted: 26th Dec 2004 21:57
the character do no stop !

it's buggy !
The Lone Drow
19
Years of Service
User Offline
Joined: 19th Dec 2004
Location:
Posted: 2nd Jan 2005 08:20
So can no one help me with this problem? I don't know how to fix it!!!!!!!!!!

Just because you can kill someone doesn't mean you have the right to do so.
Cian Rice
19
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 2nd Jan 2005 09:09
At Amiga for Ever, if you're using the DBC one Raven said the character could not stop because of a problem when he wrote the code...

Have a heart and join my message board.And now my messageboards work again!Woot!
Amiga for Ever !
19
Years of Service
User Offline
Joined: 24th Dec 2004
Location:
Posted: 3rd Jan 2005 02:36
i use DBPRO.

but is very slow

i thing go to programming in C++...

Login to post a reply

Server time is: 2024-05-01 05:33:50
Your offset time is: 2024-05-01 05:33:50