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 / RGB tutorial

Author
Message
Kequor
21
Years of Service
User Offline
Joined: 6th Feb 2004
Location: United States
Posted: 29th Mar 2004 19:45 Edited at: 29th Mar 2004 22:35
Are there any tutorials on how to make a rpg in Darkbasic classic? If so were are they?

Dont worry and keep a cool head.
John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 29th Mar 2004 21:09
RGB, rpb or RPG?

If you mean rpg then check out the work in progress section as I'm sure there was someone working on an open source one.

Level Maker 3D: www.levelmaker3d.co.uk/levelmaker3D.asp
DarkBasic Professional Editor: www.levelmaker3d.co.uk/ide.asp
also: www.levelmaker3d.co.uk/KrazyKarts/ & www.DigitalOmega.Net
John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 29th Mar 2004 21:10
http://www.thegamecreators.com/?m=forum_view&t=21479&b=8

Level Maker 3D: www.levelmaker3d.co.uk/levelmaker3D.asp
DarkBasic Professional Editor: www.levelmaker3d.co.uk/ide.asp
also: www.levelmaker3d.co.uk/KrazyKarts/ & www.DigitalOmega.Net
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 29th Mar 2004 21:56 Edited at: 29th Mar 2004 21:57
If you really do mean RGB, RGB is short for red, green, blue; as in the color guns used in your monitor or TV. By combining these numerical values you can get millions of colors ranging from pure black (0,0,0) to pure white (255,255,255). The color values are based on 8 bits which can range from 0 to 255. The basic colors are:

black (0,0,0)
red (255,0,0)
green (0,255,0)
blue (0,0,255)
yellow (255,255,0)
cyan (0,255,255)
purple (255,0,255)
white (255,255,255)

Shades of gray are achieved by keeping the color values balanced. So, (30,30,30) would be a dark gray while (225,225,225) would be a light gray. Of course, you can increase or decrease these values to make redish/greenish/or blueish grays.

RGB() is a command in Dark BASIC. For example, RGB(255,255,0) would return the numeric value for yellow. It is commonly used with the INK command. So, INK RGB(255,255,0),RGB(255,0,0) could be used to print yellow text on a red background.
--
TAZ

[edit for typos]

Kequor
21
Years of Service
User Offline
Joined: 6th Feb 2004
Location: United States
Posted: 29th Mar 2004 22:36
Oh man oh man oh man oh man! Icn't beleive I spelled that wrong! I meant rpg.

Dont worry and keep a cool head.
Kequor
21
Years of Service
User Offline
Joined: 6th Feb 2004
Location: United States
Posted: 29th Mar 2004 22:38
Rpgamer's in in pro not classic.

Dont worry and keep a cool head.
Peter H
21
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 30th Mar 2004 00:39
Quote: "Oh man oh man oh man oh man! Icn't beleive I spelled that wrong! I meant rpg.
"

LOL!

ooh ooh i got this great idea master yoda we could make a game! and the game's story line would be...
"Your wife is death. How? NO idea. But it is murder. REVENGE!!!!!!!!!"
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 30th Mar 2004 00:55 Edited at: 30th Mar 2004 00:58
It should give you a good idea of how to do it, currently its the only RPG Tutorial available, so work with what you got RPGs are hell to make in classic due to the lack of TYPES. Hello multiple arrays! In pro you can simply

Type MainCharStats
Health As Integer
Mana as Integer
Vigor as Integer
End Type

Dim MainCharStats(1) as MainCharStats
MainCharStats(1).Health = 50
MainCharStats(1).Mana = 30
MainCharStats(1).Vigor = 30

In classic, you would have to have 3 global arrays containing vigor, health, mana for EVERY single monster in the game. So you might have character 1 in slot 1, monster 34098 in slot 34098...so youd have to be jumping through all the arrays looking for monster data. With pro its much more organised, efficient and faster (and easier!)

Pet Rat says he might be able to convert it to classic when I finish it in pro (which should be very soon for the battle engine!)

Im almost done with the battle engine hardcoding, after that Ill have to make it flexible and optimized and what not, but its almost done

RPGamer


We need help! Email us! [email protected]
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 30th Mar 2004 00:56
@ RPGamer: sweet, i eagerly await the DBC release

Dragael Software
Current Project: 2D RPG Editor (DragnEdit 2D)
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 30th Mar 2004 00:59
Lol Im just glad I wont be converting it - RPGs (that are flexible) are hell in classic! Pro rules! Step up when you can


We need help! Email us! [email protected]
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 30th Mar 2004 01:27
oh yeah, i definately plan to.

Dragael Software
Current Project: 2D RPG Editor (DragnEdit 2D)
Kequor
21
Years of Service
User Offline
Joined: 6th Feb 2004
Location: United States
Posted: 30th Mar 2004 02:29
I can't wait!

Dont worry and keep a cool head.

Login to post a reply

Server time is: 2025-05-23 03:41:19
Your offset time is: 2025-05-23 03:41:19