Posted: Sun Jun 03, 2007 12:07 pm Post subject: Re: Mslug-Beta
Since my last release, i have done that (Stop drawing when off screen), for everything, and i forgot to put frame rate into my last version, now this version has it. If it still runs pretty slow then i'm not sure what else i can do, i took off whatdotcolor and that increased the speed dramatically, all my calculations are Math based. Hmmm....any ideas?
Sponsor Sponsor
CodeMonkey2000
Posted: Sun Jun 03, 2007 12:16 pm Post subject: RE:Mslug-Beta
Make an option to not draw the back ground. Or have a reappearing back ground cycle (warn you this may be time consuming). It's at a decent speed on my comp now. You could have an option for how much of a delay time you want (on slow comps it will be low on fast comps it will be high).
DIIST
Posted: Sun Jun 03, 2007 4:10 pm Post subject: Re: Mslug-Beta
Do not use PicUnderMerge! Man that thing makes everything slow. Another thing would probably be to chop up your back ground into to screen bits! You dont want to draw the entire background. Also if you want to speed up your math reduce any redundancies, overly repetitious code.
DifinityRJ
Posted: Sun Jun 03, 2007 4:17 pm Post subject: Re: Mslug-Beta
I don't use PicUnderMerge... Where did you get that idea from?
DIIST
Posted: Sun Jun 03, 2007 5:27 pm Post subject: Re: Mslug-Beta
DifinityRJ @ June 3rd 2007 wrote:
I don't use PicUnderMerge... Where did you get that idea from?
Probably should have said "if you are using it then stop". Sorry
But none the less, i wouldn't worry too much about speed. It runs fine on my computer, the latest build that is. BTW are you using classes in your code or are you just using procedures and functions?
DifinityRJ
Posted: Sun Jun 03, 2007 6:16 pm Post subject: Re: Mslug-Beta
I am not sure what classes are, I'm pretty new to Turing, I'm just using Procedures, Functions and Records. Recently learned flexible arrays, I learn languages a lot faster when I make games.
Would you care to explain?
DIIST
Posted: Sun Jun 03, 2007 6:35 pm Post subject: Re: Mslug-Beta
Writing class would probably make this game more efficient. Classes make your code expandable and reduce some redundancies of functional programing. Its also easier to code and read when you write your program. A class is like a special kind of struct(record), which has its own function and own properties that defines its self. It is the "cooker cutter" or template for an object. The object being your player or your tank, or another thing. There is a bunch of great tuts on the tutorial section about writing classes. Once you start coding in classes you'll see what i mean, and im pretty sure you may end up liking it. After that you should also look into inheritance of classes and polymorphisms. Its some really cool stuff that may interest you if you are making GUI.
If you want me to send code snippets of what you can do with classes or explain for you in detail. Just PM me or add my MSN.
superpaolo2001
Posted: Sat Oct 25, 2008 6:53 am Post subject: Re: Mslug-Beta
hi,
i'm an italian student of computer science.
i'm finding information about METAL SLUG game develop.
i have to do a java project about metal slug clone.