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 / How to start an RPG

Author
Message
Alien 001
19
Years of Service
User Offline
Joined: 4th Jul 2005
Location: Gateshead UK
Posted: 5th Jul 2005 19:43
I have started an 2D rpg game. Here is some help for people that just started useing Dark basic and want to make a 2D RPG game.

Start makeing small snippets of code. e.g. Credits , Main Menu , Game Menu , Map scroller.

Here is a example of my game sorry does not work. just show you the lay out that i use.

system settings

rem go subes
gosub _Load_Bitmaps
gosub _Varibles
gosub _Intro
gosub _Credits

REM main do loop
DO
CLS 0

IF Game_Started = 0
Gosub _Main_Menu
Else
IF Game_Menu_Show = 0
IF Map_Loaded = 0 then gosub _Load_Map
Gosub _game
ELse
Gosub _Game_Menu
Endif
endif

Sync
LOOP

You should use gosubs. It means that you do not have many line of code in the main do loop. Put an _ at the start of the name to tell you that it is an gosub not an varible. Also tabs should be used.

e.g. of an gosub
_Varibles:
Game_Started = 0
Game_Menu_Show = 0
Map_Loaded = 0
return
kRx
20
Years of Service
User Offline
Joined: 2nd Apr 2005
Location: Canterbury, Kent, UK
Posted: 6th Jul 2005 06:33
not sure if u will have the same problem but DBC sucks at 2D especially for RPGs as they require lots of memory, well so i found out. i found 3D RPGs so much easier as DBC is better for 3D stuff for some reason

kR
Alien 001
19
Years of Service
User Offline
Joined: 4th Jul 2005
Location: Gateshead UK
Posted: 6th Jul 2005 19:34
So for in my game is (21 K , 265 lines of code). The trick is to keep all MAP , BITMAPS , All other data in txt files. You just read them when you want them. My game can only handle 100 Bitmap for use in maps. i only use (##) per map data.

It run about 59-60 frams per second if i use my graphic can 140+ frams a second.
Computer Nerd
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: What do you care?
Posted: 8th Jul 2005 03:10 Edited at: 8th Jul 2005 03:12
Thanks man that'll help out after I finish Zapptrix and work on Destiny. Have a screenshot of Zapptrix my game to prove it exists. I found DBC
excells at 3D but stays a bit away from 2D too. Well I guess that's a good thing but my company only makes 2D or Text Games I'm kinda old-school I guess. Maybe I'll make 3D later.

Working On Azure Destiny 2D RPG Game.
Founder and CEO Of Magick Software.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-05-22 20:38:55
Your offset time is: 2025-05-22 20:38:55