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 Professional Discussion / Can I manipulate land as a player?

Author
Message
Yskonyn
23
Years of Service
User Offline
Joined: 19th Dec 2002
Location: Netherlands
Posted: 17th Jan 2014 13:44
Say I have created a landscape that is divided in a grid like system. I would like the player be able to alter the height of either the whole tile or just the edge or corner of the tile, would this be possible to code?
And if so, towards which Command set should I go?

A concrete example;
The player finds a nice patch of land in a forrest area in the level, but before he can build his shed he needs to flatten the land in at least a 6x6 tile area.

(Ploughing through Hands On DBP Programming)
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 17th Jan 2014 18:00 Edited at: 17th Jan 2014 18:06
Really the best option for this is BlitzTerrain, a plugin that provides better terrain with the ability to mould it in code. The other options can get quite complex, like vertex modification and memblocks - really it sounds like a better terrain system would help your project along. It's not free, but it's not expensive either.

http://www.thegamecreators.com/?m=view_product&id=2286

Along with an easily modifiable terrain, it also provides better performance and view distances, stuff that would be very difficult to replicate in DBPro. I would suggest making a landscape generator, because manually editing a massive terrain is tedious. There are a few ways to do this quickly and easily, I can give you some pointers on that if your interested or just afraid of perlin noise systems. There's no doubt a lot of code snippets for this stuff on the forum too.

I am the one who knocks...
Yskonyn
23
Years of Service
User Offline
Joined: 19th Dec 2002
Location: Netherlands
Posted: 17th Jan 2014 22:50
Thanks for the reply, Van!
I would gladly receive your pointers on the subject, thanks!
Keep in mind my novice-ness, though!

(Ploughing through Hands On DBP Programming)
Attila
FPSC Reloaded TGC Backer
21
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 17th Jan 2014 23:33
Using a matrix as ground is another option . You can easily change any segments hight
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 18th Jan 2014 12:37
Quote: "Using a matrix as ground is another (very poor, very slow and outdated) option (which cannot use shaders, or have physics applied to it, and should be avoided.)"


Attila
FPSC Reloaded TGC Backer
21
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 19th Jan 2014 20:14 Edited at: 19th Jan 2014 20:18
@mobius
you forgot to write

- and very stable
- can use shaders
- is very simple to manipulate and use

In programming nothing is ever outdated. Even today you could write programs in assembler. Sort-algorythms are very old but not outdated and binary tree access was developed in the 70's an 80's of the last century. If you give up the roots, the products made will lack some sophistication and you will miss to understand what the commands you implement are doing.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 19th Jan 2014 20:33
Quote: "In programming nothing is ever outdated."




If not, someone could say us ,give up using Dbpro and use C++

I'm not a grumpy grandpa
Attila
FPSC Reloaded TGC Backer
21
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 19th Jan 2014 22:07 Edited at: 19th Jan 2014 22:17
Well why not? DB is written in C and startet as an interpreter.
And what about FORTRAN and COBOL? They are still alive. But then the support for DirectX is not build in with FORTRAN and COBOL, while DBclassic and DBpro provide some confortable commands to access the DirectX interface. But DirectX 9's support is becoming weaker with each version of win though.

And the bad thing is, there is no upgrade for DBpro supporting OpenGL and/or an interpreter for Linux (a.e. for DBC) which would be easy to run when OpenGL could be supported. And it would open up the way to a future like supporting steam-box or the growging linux game market. As a developer I already missed the hype in the android environment(note: android is although a linux derivate) and now we will miss the steam hype and its chances. What a pitty. The only way to participate there is programming in C.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 20th Jan 2014 14:55
If you want android support, use AGK. It's a very good language and is cross platform.

They'll probably add steambox/steamOS support at some point too. They already added Ouya.

tiffer
20
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Scotland
Posted: 21st Jan 2014 00:00
Quote: "In programming nothing is ever outdated."


You would have a struggle using pascal for dos.

Cwatson
Attila
FPSC Reloaded TGC Backer
21
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 21st Jan 2014 14:14 Edited at: 21st Jan 2014 14:16
@Mobiius: I downloaded the trial but there is no 3D (which seems logical because not all suported appliances can display 3D graphics). But maybe it is only missing in the trial or is planed for future implementation.

@tiffer: There is/was turbo-pascal for DOS, but pascal was never a widespread programing language (it was basically developed for students by Niklaus Wirth of the Zürich university ETH) and there is QBasic und even VisualBasic for DOS. Both running fine in DOSBOX (even working on Linux in the DOSBOX)

If you want to programm for DOS/DOSBOX look at http://www.qbasic.net/en/top-ten-downloads/. Those versions seem to be abandonware.

DOS is not dead (not yet), look for FreeDOS and all the DOS-Emulators for Linux. But writing programs for the DOSBOX is fun and will create programs that can although work on a linux system.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 23rd Jan 2014 20:36
Quote: "But maybe it is only missing in the trial"

This.

AGK does have 3D. It's very good so you should buy it! lol

tiffer
20
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Scotland
Posted: 26th Jan 2014 00:07
Might be fun to have a trip back in time!

Cwatson

Login to post a reply

Server time is: 2026-07-06 07:51:49
Your offset time is: 2026-07-06 07:51:49