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 / Programming my own city-building game. Crazy attempt?

Author
Message
old_School
15
Years of Service
User Offline
Joined: 29th Aug 2009
Location:
Posted: 25th Feb 2012 00:25
Sounds great Yoda, great to hear you are advancing in your programming skills. I cant wait to see it in C# when you create it.
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 25th Feb 2012 13:02 Edited at: 25th Feb 2012 13:03
DBP is great, as I'm sure you know Yoda and it is capable of a lot of things and this kind of thing might be possible with the right work arounds. DBP is very powerful in the right hands and I love the damn thing. But of course there's tools out there that are better equipped. I am learning C#+XNA myself, so naturally I'll be interested in seeing how you progress.

Also, Old_School, I see you're very much in love with using .NET tools, Visual Basic most in particular, have you ever thought about giving XNA a shot? I know you've attempted games with VB before and mentioned something about an RPG project.


Yodaman Jer
User Banned
Posted: 25th Feb 2012 18:37
Yeah, I love DBP! Most specifically I love the plugins for it that enhance it as well, especially IanM's matrix1 commands (they save so many headaches!).

I haven't worked on programming anything the last couple of days because I managed to catch the plague, so today I think I'll re-organize some code and see if I can't finish some features for the level editor.

Yodaman Jer
User Banned
Posted: 26th Feb 2012 01:49
I've discovered something interesting and I'm not quite sure what's going on.

I'm doing this to tell the program in the future what kind of object to make in the game:



I'm using the array insert at bottom command with the objID variable to assign the index, and then I tried to do the same with my OBJ().objType = 1 or 2 line of code, but it would ONLY work if I typed it without the objID variable in it, and yet when I loaded the array back into the program and printed the information all of the correct info was there! How is that possible? Do I really only need to tell the program what index to use in the array insert at bottom command?

old_School
15
Years of Service
User Offline
Joined: 29th Aug 2009
Location:
Posted: 26th Feb 2012 03:15
Looks very wordy for a simple function. Surely there is a better method.
Yodaman Jer
User Banned
Posted: 26th Feb 2012 04:01 Edited at: 26th Feb 2012 07:46
I don't really see how...

The only reason it's so wordy is because of how I have the function set up. It needs a number to determine what kind of object is to be created, which I then check with select/endselect because if statements would be a lot more wordy than that. I know this because I tried it once.

I mean, I *could* use variables to hold the cursor's position instead of using object position x(cursor), but meh, that'd actually create more lines of code.

Got a video of the editor up.



old_School
15
Years of Service
User Offline
Joined: 29th Aug 2009
Location:
Posted: 27th Feb 2012 23:57
Hmm never used the editor before looks nice but I did not understand the point of the "game".
Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 28th Feb 2012 03:03
@old_School - I think that's Yodaman's editor, which is why you've never used it before.

The function didn't seem too wordy to me, although I'd probably have it return the objID so you could call the function as so:

newID = createObject(1)


Senior Developer - CBS Interactive Music Group
Yodaman Jer
User Banned
Posted: 28th Feb 2012 03:51
Yeah, that's my editor which is proving to be quite the little challenge to make right now.

Not really sure what you mean by not understanding the point of the game... do you mean why I'm building the editor? It's for a platform game I want to make in the future, however with how DBP handles array lists it's proving quite infuriating!

Yodaman Jer
User Banned
Posted: 25th Apr 2012 02:38
Hi everyone! Just so you know, this project isn't dead. I decided on using Panda3D for development so that fellow Linux and Mac OS X users can play it too, and P3D is a MUCH simpler language than C#/XNA. Although I do still plan on making an XNA version in the future, that will be a ways off yet...

I still have to learn Panda3D so I can't quite start this project yet, but I will let you all know when I do get something going.

Login to post a reply

Server time is: 2025-05-22 02:12:19
Your offset time is: 2025-05-22 02:12:19