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.

DarkBASIC Discussion / hud for racing game

Author
Message
phukol
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location:
Posted: 5th May 2004 03:42
hi! just wana know if u have any ideas on how could make a HUD which serves as a map for racers ina 3d game. I want my racers to be represented as small dots which move around the HUD as the game progresses.ideas and snippets would be appreciated.

phukol
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 5th May 2004 06:03
proportions.

have a mini map that represents the real map. Take the real coordinates, scale them, then translate them to where the mini map is located at on the screen.

"eureka" - Archimedes
phukol
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location:
Posted: 6th May 2004 04:16
thnx but can u set me an example. my greatest problem is how i could scale the object's coordinates. and how i could move the dots in the mini-map.

phukol
GameKit
22
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 6th May 2004 20:55 Edited at: 6th May 2004 21:00
Draw a picture of the minimap in paint, load it into your program, and paste it to the top-left corner of the screen...0,0

Now...Say the minimap is 100x50 pxls and your level is 1000x500 units... then you would say...

Dot Int(Object Position X(1)/10),Int(Object Position Z(1)/10)

...and do that for each of the cars...(possabley changing the "Ink" value so the cars a different colors)

Well...I hope that helps...

PS: If your minimap were something odd like... 123x47 pxls and the level were 1987x678 units... then the scaling code would be...
Dot Int(Object Position X(1)/(1987/123)),Int(Object Position Z(1)/(678/47))

Previously known as "Game_Creator". Thou shalt not thwart the way of the dragon. For thou tasteth like chicken.
phukol
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location:
Posted: 11th May 2004 23:36
rhx gamekit

phukol

Login to post a reply

Server time is: 2025-05-23 18:58:21
Your offset time is: 2025-05-23 18:58:21