Page 8 of 9
Posted: Thu 26 May, 2005 3:34 pm
by thecheat
err the maximum.... I keep my ram clear.
Posted: Thu 26 May, 2005 3:38 pm
by Toaster
Looks like mabey I used too many gotos.
Will fix this in next version also try doing a garbage collect. Go to the catalog and then to the g section should be there.
Posted: Thu 26 May, 2005 3:39 pm
by thecheat
ok.... (ti84SE) should have more ram anyways.
Posted: Thu 26 May, 2005 3:49 pm
by Toaster
True I guess I over did on the gotos will fix soon.
Posted: Thu 26 May, 2005 3:50 pm
by thecheat
ok good. is there any code that can be optimised so that the guy moves faster because he moves pretty slow...
Posted: Thu 26 May, 2005 7:20 pm
by Toaster
I am not good at optimizing so yes there is lots of optimizing to do.
But the maps should run fast if you do a garbage collect!!
Posted: Thu 26 May, 2005 8:06 pm
by merthsoft
You want me to go through and optimize what I can?
Posted: Thu 26 May, 2005 8:08 pm
by Toaster
No not really but I will post stuff here to see if you can modify it dont go through the code though.
Dont want you to see some of my secrets.
LOL like I have any secrets.
Posted: Thu 26 May, 2005 8:11 pm
by merthsoft
Your programs arn't locked...
Posted: Thu 26 May, 2005 8:19 pm
by Toaster
Yep I know no need to the game is gona be open source!!
So I dont really care if you steal the code as long as you give me credit.
Anyways could someone optimize this...
ÃÂÂ
Posted: Thu 26 May, 2005 8:27 pm
by merthsoft
Some really simple stuff first:
If áMAP(1)=5:Then
If 5=áMAP(1:Then
If [A]((Y/8)+T,(X/8)+S+1)=58:Then
If 58=[A]((Y/8)+T,(X/8)+S+1
Then
Just stuff like that saces a little
If Y=0 and T=0
If Y=0 and not(T
If [A]((Y/8)+T+2,(X/8)+S+1)=0 or [A]((Y/8)+T+2,(X/8)+S+1)=26 or [A]((Y/8)+T+2,(X/8)+S+1)=10:Y+8üY
Y+*([A]((Y/8)+T+2,(X/8)+S+1)=0 or [A]((Y/8)+T+2,(X/8)+S+1)=26 or [A]((Y/8)+T+2,(X/8)+S+1)=10üY
Because of how often these kinds of statements come up, that should save quite a bit, and instead of lables, it mgiht be a good idea to use many subprograms (like Kevin does)...
Posted: Thu 26 May, 2005 8:38 pm
by Toaster
Not a good Idea to use sub programs.
Inless its for a battle system or for the menu if you use flash gordan than it will go slower and slower each time you use it.
Whats with all the emoticons??? thanks for the new code I will try to add it today!!
Posted: Thu 26 May, 2005 8:44 pm
by merthsoft
Oops... if you have
Without the code command, you get a
Posted: Thu 26 May, 2005 8:47 pm
by Toaster
LOL You could do it this way....
Code: Select all
If áMAP(1)=5:Then
If 5=áMAP(1:Then
If [A]((Y/8)+T,(X/8)+S+1)=58:Then
If 58=[A]((Y/8)+T,(X/8)+S+1
Then
If Y=0 and T=0
If Y=0 and not(T
If [A]((Y/8)+T+2,(X/8)+S+1)=0 or [A]((Y/8)+T+2,(X/8)+S+1)=26 or [A]((Y/8)+T+2,(X/8)+S+1)=10:Y+8üY
Y+*([A]((Y/8)+T+2,(X/8)+S+1)=0 or [A]((Y/8)+T+2,(X/8)+S+1)=26 or [A]((Y/8)+T+2,(X/8)+S+1)=10üY
Posted: Thu 26 May, 2005 9:15 pm
by merthsoft
Yeah, oh well...