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 / 2d game programming help

Author
Message
Guitarist Jason
17
Years of Service
User Offline
Joined: 22nd Nov 2007
Location: Elkton, Kentucky
Posted: 7th Nov 2009 09:32
I wish to make a 2d topdown zelda style game. I have read both Hands on DarkBasic Pro 1 & 2 cover to cover and they didn't really help. The reason for this, I believe, is that I learn differently. I first started programming with QBasic several years ago. It was taught to me by a friend and the way he taught me was by showing me source code for a simple, but complete program for making a low graphics, turn based RPG. I was hoping someone here would be willing to help me in the same way. All I want is to see some well commented code the allows for a sprite to be moved and have 2 maps. If I could get something like that then I could study it and research to expand to where I want to be.

Thanks in advance,
Jason

Life is a disease
Humans are a virus
mike5424
16
Years of Service
User Offline
Joined: 30th Mar 2009
Location:
Posted: 7th Nov 2009 09:48
i can't give you a code but i can tell you what you would need to know

1. basics of moving and positioning sprites (including controls)

2. sprite animations

3. checking for the edge of the map and going to the next map

4. checking collision

5. buttons and menus

that's all you need for a basic 2d top down platformer

---
Mike5424
Guitarist Jason
17
Years of Service
User Offline
Joined: 22nd Nov 2007
Location: Elkton, Kentucky
Posted: 7th Nov 2009 10:04
I can find how to do those things individually but it seeing it all together in a working manner that will make it click. Could someone tell me if this is the best way to do it in DBpro, (it was the best I could come up with in Qbasic). I read in data from a file and stored it into an array. each piece of data was a integer that represented a tile. I would then place the tiles on screen using the array. I used case select for all controls. Its been about 4 years since I've really programmed anything.

Life is a disease
Humans are a virus
Grog Grueslayer
Valued Member
20
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 7th Nov 2009 17:27
Yup that's basically all you do. A lot of the core commands are just like GWBasic/QBasic. Just look up each command since Darkbasic does it a bit differently than QBasic sometimes.

Phaelax
DBPro Master
22
Years of Service
Recently Online
Joined: 16th Apr 2003
Location: Metropia
Posted: 7th Nov 2009 20:08
Here's a 2D scrolling tilemap tutorial:
http://dbchallenge.com/?page=tutorials

Login to post a reply

Server time is: 2025-06-10 06:02:52
Your offset time is: 2025-06-10 06:02:52