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 / Could you guys take a sec and look at this? Thanks

Author
Message
renegader bj
18
Years of Service
User Offline
Joined: 25th Feb 2007
Location:
Posted: 25th Feb 2007 22:33
Hi, I'm brand new to db classic, and after a couple of weeks noob practice; aka,reading the book, experimenting with commands,etc. I decided to try and start a turn-based game. I wrote this code and it works, but I want you guys to tell me if it REALLY works, or if it is messy and held together with bubble gum, so to speak. Remember I'm a noob, but please feel free to tear this apart. A couple of notes, I haven't added collision yet, and you have to hold the spacebar down to keep your characters switched. I know how to fix these issues, but right now I just want to know if I'm on the right track. Thanks!

P.S. THIS WAS WRITTEN IN DB CLASSIC!!!

Attachments

Login to view attachments
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 26th Feb 2007 01:47
Hi renegader,

The program works pretty well. The result looks ok. But the code, well, a couple of things would make it easier for others to look at and easier for you to manage. One thing, if you reference and load bitmaps, objects, sounds, or any external media in your program, you should include it with your download. Not everyone has the media or may not have it in the same location as your program references, so that will keep people from even looking at your code (because they can't run it).

Structure:
This is quite important and many people have their owns ways of structuring their programs but there are a few general rules to follow that just make the code easier to read and easier for you to edit later on. If I were to say what the main problem with your program was, I would say structure.

You should check out TDK's tutorials that will help you with variables and structuring your code. You should read through the examples and ask questions on anything that doesn't quite make sense. Here's a link:

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

Enjoy your day.

Login to post a reply

Server time is: 2025-05-26 02:32:44
Your offset time is: 2025-05-26 02:32:44