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.

Newcomers DBPro Corner / Would this game be possible to make with Darkbasic Pro?

Author
Message
Alaror
13
Years of Service
User Offline
Joined: 9th May 2011
Location:
Posted: 9th May 2011 17:14
Hey everyone!

I wanted to run a game idea past this forum to see if Darkbasic Pro is what I should use to create the game. My main concern lies with how many objects would need to be loaded at one time.

The game I'd like to create would be 2d with a platform style view, taking inspiration from Terraria but diverging heavily from what they're doing. At the start of the game a massive, procedurally generated world would be created--each map being different from another--comprised of small blocks which can be removed, picked up and placed elsewhere.

Would something like this be possible to create and run at decent speeds? What methods would be used to reduce the strain all those objects could place on the computer (eg, chunk/region based loading)?

Thanks in advance for your help
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 9th May 2011 19:15
Yes it's possible.

There are quite a few things that could be done to avoid any kind of real strain for large worlds. If you generate from a 'random' seed you can create huge levels but only display the parts that are visible on screen.

Blocks that are moved can be flagged using UDT(User Defined Type) based arrays making it quick and easy to tell when a block no longer exists in its spawn point and whether a block exists that wasn't there originally.

It really isn't worth going into much more detail than that right now. I would do some tutorials and learn some 2D stuff and continue thinking about your game as you learn.

Good luck!

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 9th May 2011 19:15
What do you mean by lots of objects?

True 2D would be 2 polys per block. You could easily have a couple of thousand blocks on the screen, before you start worrying about reloading.

Quel
15
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 9th May 2011 23:15
You shouldn't load in all the millions of objects of the whole level, just the ones enough for one screen. Then place them to their new locations according to visibility.

-In.Dev.X: A unique heavy story based shoot'em ~25%
-CoreFleet: An underground commander unit based RTS ~15%
-TailsVSEggman: An Sonic themed RTS under development for idea presentation to Sega ~15%
Alaror
13
Years of Service
User Offline
Joined: 9th May 2011
Location:
Posted: 11th May 2011 21:30
Thanks for the replies everyone!

I've been going over some tutorials the past few days and will continue to until I have at least a basic level of comfort using DarkBasic.

One thing that came to mind is the best way to store the world data. Would a 3 dimensional array be ideal, giving each object type a number so it can be loaded? Would it be better to save all the world data on one huge file or break it up into several smaller ones?
blue fire games
13
Years of Service
User Offline
Joined: 29th Apr 2011
Location:
Posted: 11th May 2011 22:56
im no professional here so dont completely trust what i say but you could do it the way you said and i dont know a better method so go for it also tell us when your game is done i look foward to playing it also i wanna know what special aspect do you have minecraft is brilliant for building terraria is better for exploration so what special aspect will you add so you dont have 4 million people at your door step saying you copyed minecraft and terraria me i will support you but just wanted to know
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 12th May 2011 14:05
Blue fire games, I suggest you use punctuation in your posts, I'm getting a headache!

Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 12th May 2011 18:33
Wow, and I thought I was bad with run-on sentences.


@ Alaror:

You should check out TDKs Tutorials and pay particular interest in the one about arrays.

http://forum.thegamecreators.com/?m=forum_view&t=99497&b=10

When you're confident in working with arrays check out this one about UDTs (User Defined Types) by Zotoaster:

http://forum.thegamecreators.com/?m=forum_view&t=110324&b=7

Alaror
13
Years of Service
User Offline
Joined: 9th May 2011
Location:
Posted: 12th May 2011 18:47
@blue fire games

Without going into too much detail the main thing I want to do is bring a real "survival" feel to the game. Think Alien Breed + Terraria. Once there's at least a partially working game I'll probably post a WIP topic.


@Grog Grueslayer

Awesome, thanks for the info! I'll be giving them a read through for sure.

Login to post a reply

Server time is: 2024-11-22 22:20:00
Your offset time is: 2024-11-22 22:20:00