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.

Geek Culture / OOP

Author
Message
cguy222
21
Years of Service
User Offline
Joined: 9th Dec 2002
Location:
Posted: 3rd Jan 2003 00:23
emm, ive been keeping my eye on darkbasic, and i'd like to know more about it before i buy. im wondering, is it object oriented?
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 3rd Jan 2003 00:26
yessir it is... o_O completely ^_^...

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/3072kbs Sat Con... I joined in!
cguy222
21
Years of Service
User Offline
Joined: 9th Dec 2002
Location:
Posted: 3rd Jan 2003 00:29
Cool, thanx. i was thinking it would be kinda hard to make those games in the showcase without oop...

cguy222
21
Years of Service
User Offline
Joined: 9th Dec 2002
Location:
Posted: 3rd Jan 2003 00:33
oh, and, how would i use the oop, do i just use classes and use them in the same directory. is there a tutorial on this for dark basic?

Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 3rd Jan 2003 00:43
there are no classes... o_O i was bummed when i saw that (version 1.0 is when i started using it... or whatever the first one they released was...)...

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/3072kbs Sat Con... I joined in!
cguy222
21
Years of Service
User Offline
Joined: 9th Dec 2002
Location:
Posted: 3rd Jan 2003 00:44
nnnnnooooooooooooooooooooooooo

Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 3rd Jan 2003 00:45
i know -_-... i know

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/3072kbs Sat Con... I joined in!
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 3rd Jan 2003 02:20
DB/DBP is not OOP and it works very fine without that.

I'm working on The Magic Land, some say it's the best looking game made with DB. Go to my site and have a look at what one man can do by himself using DBP. There are still some bugs in DBP that make TML not look as good as it's suposed to. But patch 4 is comming in Jan.

[b]Digital Awakening
Game in developement: 3D RPG - The Magic Land
Visit DigAw.com for more info and shots
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 3rd Jan 2003 05:17
i thought it was oop... o_O i guess not then ... sry cguy222... i like tml ^_^... O_O

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/3072kbs Sat Con... I joined in!
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 3rd Jan 2003 05:25
I'm surprised at you BarfPuff - you should have known its wasn't OOP.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 3rd Jan 2003 05:44
BarfPuff

never heard that one... guess its because of my dbstory posts... o_O ... i guess it isnt... but it has all the stuff an oop language has...

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/3072kbs Sat Con... I joined in!
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 3rd Jan 2003 05:48
Yes - your vomit posts were the catalyist for the BarfPuff idea. I wont get into the heated discussion about OOP, surfice to say its got some things. Well, one thing any way...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 3rd Jan 2003 06:54
pretty much... =\ then what would you call db... i guess its just a BASIC...

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/3072kbs Sat Con... I joined in!
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 3rd Jan 2003 06:57
Yes indeedly...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 3rd Jan 2003 06:58
yeh... indeedilydeedly

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/3072kbs Sat Con... I joined in!
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 3rd Jan 2003 07:02
Okiley dokely.

The Simpsons have got a lot to answer for...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 3rd Jan 2003 07:57
i know... o_O my friends dont like the simpsons for some reason...

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/3072kbs Sat Con... I joined in!
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 3rd Jan 2003 10:53
Daft lot.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 3rd Jan 2003 11:25
yeh i stopped hanging around them because i have "out grown them"... o_O i need new friends...

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/3072kbs Sat Con... I joined in!
Kale
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: United Kingdom
Posted: 3rd Jan 2003 14:48
DB Pro is not strictly OOP (no classes) but alot can be achieved by using user defined types! they only drawback to this though (recently discovered) arrays can not exsist in user defined types, but you can dim arrays from them.

What the flame does not consume, consumes the flame.
------------------------------------------------------------------------
AMD XP2100+, Geforce4Ti 4400, 512Mb DDR, Abit KX7, WinXP Home
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 3rd Jan 2003 17:54
Can anyone tell me why OOP would be better cause I have no problem with DBP as it is, I think it's perfect =)

[b]Digital Awakening
Game in developement: 3D RPG - The Magic Land
Visit DigAw.com for more info and shots
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 3rd Jan 2003 18:09
Here we go again...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 3rd Jan 2003 18:34
I don't want any war over this, I just want someone to calmly explain to me the benefits of OOP.

[b]Digital Awakening
Game in developement: 3D RPG - The Magic Land
Visit DigAw.com for more info and shots
Megaman X
21
Years of Service
User Offline
Joined: 21st Oct 2002
Location: Sweden
Posted: 3rd Jan 2003 19:02
The Magic Land looks great . I just wish I could make the same good looking skies as u have. The idea of using spheres in you game rocks, so u don't have to stay looking after a modeler which takes 4 months to give u a model u wont like or only one model . Yet, looks pretty good like that too.
I think peoples consider OOP important, once DB was written in C++/directX which is an OOP. I see no benefits on it. But, if u insist having a OOP with DB, maybe u should try C++/DirectX directly or even Jamagic . Simple, use another program...

--Ryu :-]
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 3rd Jan 2003 19:16
Ryu:
Thanks =) The sky was made with SkyTracer2 in Lightwave7.5. The characters are not my design, I modeled them from 2D images from Astral Entertainment. This game will be put on a CD with other games featuring the same main character.

[b]Digital Awakening
Game in developement: 3D RPG - The Magic Land
Visit DigAw.com for more info and shots
Martyn Pittuck
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 3rd Jan 2003 19:30
OOP is more organised (according to Rich - that was a direct quote).

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 3rd Jan 2003 20:07
MP:
But what does that mean?

[b]Digital Awakening
Game in developement: 3D RPG - The Magic Land
Visit DigAw.com for more info and shots
Martyn Pittuck
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 3rd Jan 2003 21:40
Me not know, i just asked Rich whether he used OOP.

He said "Yes, Casue it is more organised"

So errrm, i will do into my corner now, no-one disturbe me fo a bit please.

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 4th Jan 2003 00:54
i'm still confused about OOP ... and i've had pro's and amatures alike trying to explain it all.

to be quite honest i'm gonna call DarkBasoc Pro a Semi-OOL
so its like DBP+ instead of DBP++
i mean the types are objects and the programming is orientated about them, however they're not completely what the programming is about.

Now is everyone else agrees, we'll call it a Semi-OOL

Anata aru kowagaru no watashi!
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 4th Jan 2003 01:50
da hell is oop
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 4th Jan 2003 02:57
so its like DBP+ instead of DBP++

O_O um raven... what the hell... c++ is the step up from c... the ++ is an incrementation... i dont know what a DBP+ would be... O_O... and other raven:
Object
Oriented
Programming
....
classes... such... definning variables... blarg...

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/3072kbs Sat Con... I joined in!
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 5th Jan 2003 01:27
Correct me if I'm wrong here but would OOP be like this:

object.position.x(#)

There is one thing I sometimes miss in DBP and that's being able to change like only one value of the position. Doesn't happen often though. I don't think it should be hard making it possible to write: OBJECT POSITION X(#) = #.

[b]Digital Awakening
Game in developement: 3D RPG - The Magic Land
Visit DigAw.com for more info and shots
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 5th Jan 2003 01:28
Or X POSITION OBJECT #,# to make it true to DB.

[b]Digital Awakening
Game in developement: 3D RPG - The Magic Land
Visit DigAw.com for more info and shots
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 5th Jan 2003 07:40
o_O yeh..

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/3072kbs Sat Con... I joined in!
Kale
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: United Kingdom
Posted: 5th Jan 2003 17:04
Not again! arggggg! object orientated programming is,.. well.... *sigh*, see here:
http://www.jpl.nu/~magnus/oo-itvt/object_orientation.html

and a piece of OOP code written in Python to show objects in action (the whole application is written as an object which could then be inherited by another object and extented upon later, etc..):


What the flame does not consume, consumes the flame.
------------------------------------------------------------------------
AMD XP2100+, Geforce4Ti 4400, 512Mb DDR, Abit KX7, WinXP Home
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 5th Jan 2003 17:43
Ok, I can see the flexibility of it but I can also see the complexity of it. I'm a simple minded person, I like it when I can talk english to the code =)

[b]Digital Awakening
Game in developement: 3D RPG - The Magic Land
Visit DigAw.com for more info and shots
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 5th Jan 2003 17:44
Oh, and with types I got what I want from OOP =)

[b]Digital Awakening
Game in developement: 3D RPG - The Magic Land
Visit DigAw.com for more info and shots
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 5th Jan 2003 17:46
I found this on the link you provided:

"Object-orientation might seem like the answer to all eternal questions, but it does introduce some new problems. For instance, finding programming errors can sometimes be harder to find because all operations are divided into many small parts, and you sometimes have a hard time getting a good overview. Sometimes, however, it can be just the opposite.

If performance is crucial, you might want to stick to more traditional programming. Even though objects make the life easier for the programmer, they can sometimes actually make the program larger and slower than the equivalent program without objects. However, the price you pay for the possible extra speed of the finished program is often far to high in relation to the longer development time."

[b]Digital Awakening
Game in developement: 3D RPG - The Magic Land
Visit DigAw.com for more info and shots
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 5th Jan 2003 18:43
"To describe how to make the classic Swedish peasoup with pork"

That's called "ärtsoppa" and it's never without pork =) And it's yummy =9

[b]Digital Awakening
Game in developement: 3D RPG - The Magic Land
Visit DigAw.com for more info and shots
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 6th Jan 2003 07:38
and python is a simple language... O_O the most complex thing you can really create is hangman... o_O but its a damn fast linker... my favorite

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/3072kbs Sat Con... I joined in!
Kangaroo2
21
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 6th Jan 2003 08:14
Whilst DBP is not exactly OOP the fact that you can load objects as numbers and check for interaction between them means it kinda is... I certainly think its fine as it is. The only posible improvement I would like is not to have to refer to them as numbers - eg:

load object "player1.x",1:load object "wall.x",2:if object collision (1,2)=1 then end -would be
load object "player1.x",player1:load object "wall.x",wall:if object collision (player1,wall)=1 then end

This would be easier to keep track of

* If the apocalypse comes, email me *
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 6th Jan 2003 14:08
Kangaroo - I've got a plug-in that lets you use words instead of numbers for things like loading/saving etc...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 6th Jan 2003 15:28
Kang:
Not that hard making an editor that does it for you. You will never make anything bigger then a tiny game if you are gonna load the objects hard coded anyway. And if you use multiple instances of an object you would refer to them with the same name.

[b]Digital Awakening
Game in developement: 3D RPG - The Magic Land
Visit DigAw.com for more info and shots
Kangaroo2
21
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 6th Jan 2003 22:39
Good points DG but I just thought it would be nice if it were automstic Thanks TAT is it on your site? I might well have a look

* If the apocalypse comes, email me *
Kale
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: United Kingdom
Posted: 7th Jan 2003 02:20
Quote: "
Whilst DBP is not exactly OOP the fact that you can load objects as numbers and check for interaction between them means it kinda is...
"

when objects are talked about regarding OOP, it refers to encapsulated pieces of code which are called objects (usually constructed using the 'class' keyword) which can be 'plugged' into your exisiting code and extended like a virtual object.

Quote: "
and python is a simple language... O_O the most complex thing you can really create is hangman
"

you can get quite a bit more complicated than that using Python see the game called 'Severance - Blade of Darkness', a hack 'n' slash 'em up, coded almost entirely in python

What the flame does not consume, consumes the flame.
------------------------------------------------------------------------
AMD XP2100+, Geforce4Ti 4400, 512Mb DDR, Abit KX7, WinXP Home
Puffy
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United States
Posted: 7th Jan 2003 04:26
o_O python is fast ... but it needs to be more flexable... let me put it that way...

AMD Athlon XP 2100+ OC to 3Ghz/1.5gigs ram/128mb ti4200/120gigs hd/19" monitor/Sound Blaster Audigy Platinum EX/3072kbs Sat Con... I joined in!
Kale
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: United Kingdom
Posted: 7th Jan 2003 14:48
i beg to differ, Python is about as flexible as they get anyway i'll shutup now! this is a DB Forum after all

What the flame does not consume, consumes the flame.
------------------------------------------------------------------------
AMD XP2100+, Geforce4Ti 4400, 512Mb DDR, Abit KX7, WinXP Home
Kangaroo2
21
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 7th Jan 2003 18:48
Yeah thanks I know (kinda rusty on it tho lol) I just meant in the literal sense "Object Orientated Programming", and thinking well yes its orientated towards dealing with instances as objects, rather than simpler but eventually more troublesome ways of programming of old

* If the apocalypse comes, email me *

Login to post a reply

Server time is: 2024-03-29 10:33:36
Your offset time is: 2024-03-29 10:33:36