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.

Author
Message
Jozers
20
Years of Service
User Offline
Joined: 19th Nov 2004
Location: If I knew I would tell you!!
Posted: 12th Nov 2005 20:08
I decided during the summer holidays to try to make a small RPG Game to try and improve my programming skills as a little project. I have managed to code a very very basic a uncomplete battle system which is triggered by a timer (not random).

However the battle system lacks movement, animation and the camera needs work. I am a little unsure what to work on next and if someone would take a look a my code and suggest what to work on next and how it could be improved that would be appreciated.

BTW it is in the style of the FF series turn based battle system. And most of the media for the game can be found in the DB media files.



Cheers Jozers

Life is like a box of chocolates...
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 12th Nov 2005 20:36
Media?
Jozers
20
Years of Service
User Offline
Joined: 19th Nov 2004
Location: If I knew I would tell you!!
Posted: 12th Nov 2005 20:54
sorry its a large file there is a lot of stuff in there which i am going to use later or have used and havn't got around to deleting

Life is like a box of chocolates...

Attachments

Login to view attachments
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 16th Nov 2005 02:42
The main thing I would suggest after looking at your code is that you should spend a little time restructuring it.

Your program layout isn't too bad actually, but it is starting to show signs of spaghetti code. If you start adding more without sorting the problems out now it will grow into a nightmare in the future.

Your program should only have one 'main loop' which is normally (but doesn't strictly have to be) a Do...Loop. You have more than one in your program, resulting in the need to use the diabolical Goto statement. I'll spare you my usual diatribe on that issue you'll be glad to hear!

If you put all your setup lines in a procedure you can call it at the start before dropping into the main loop, branching off to all the other procedures and functions from there.

If you want a simple 'all-purpose' skeleton program from which you can base any DB program on, you'll find one in my tutorials on program layout, (link to website in my sig below).

TDK_Man

Login to post a reply

Server time is: 2025-05-22 20:09:49
Your offset time is: 2025-05-22 20:09:49