Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - meishe91

Pages: 1 ... 119 120 [121] 122 123 ... 207
1801
Portal X / Re: Portal X
« on: August 03, 2010, 05:01:21 pm »
Wow that is amazing. Great job! Can't wait!

1802
General Calculator Help / Re: Raylin's Rules for Making RPG's
« on: August 03, 2010, 04:52:19 pm »
I think that's basically what Rule 1 says.

1803
Yes, this is great.  we've turned Omnimaga into a friendly, helpful community.

Was it not already?

1804
I agree, great job everyone :)

1805
TI Z80 / Re: Battle Ship
« on: August 03, 2010, 02:57:14 pm »
Ok. So I decided to completely do a rewrite of my Battle Ship program because I thought it was to big and just wasn't satisfied with it. I was also to lazy to just go back and rework the code to work. But anywho, to the program.

I did succeed in making this one smaller by about 62 bytes while still making it better than the previous version (it stands at 990 bytes). It should work perfectly now but if anyone discovers a bug please let me know.

[2ND] - It is the enter button.
[ALPHA] - When setting the maps this is what flips it between vertical and horizontal movement.
[ENTER] - Used to exit the Pause after turns.

This version fixes the previous bugs that I knew about. Like I said before if you find one just tell me and I'll try to fix it.

I can't think of much else to say so I'll let you guys to it. Have fun and enjoy.

Here is the source code in case anyone else can find optimizations. I'm very tired so there is a chance I missed something.

Spoiler For To Keep it Shorter:
Code: (Battle Ship Final) [Select]
ClrHome
"3221110000→Str2
"MH  →Str1
0identity(16→[A]
DelVar TDelVar SDelVar LRepeat S=20 and T=20
ClrHome
For(A,1,8
Output(A,9-8L,"++++++++
End
Output(1,9-8L,"PLAYER
Output(1,16-8L,L+1
1→X
1→Y
DelVar G1→R
Repeat R=11
Repeat K=21
For(A,0,expr(sub(Str2,R,1
Output(X+AG,Y+Anot(G)+8L,sub("* ",2-[A](X+AG,Y+Anot(G)+8L),1
End
If Ans=31
not(G→G
min(8-Gexpr(sub(Str2,R,1)),max(1,X+sum(DeltaList(K={25,34→X
min(8-not(G)expr(sub(Str2,R,1)),max(1,Y+sum(DeltaList(K={24,26→Y
For(A,0,expr(sub(Str2,R,1
Output(X+AG,Y+Anot(G)+8L,"*
End
Repeat Ans
getKey→K
End
End
DelVar HFor(A,0,expr(sub(Str2,R,1
H+[A](X+AG,Y+Anot(G)+8L→H
End
If not(H
Then
For(A,0,expr(sub(Str2,R,1
1→[A](X+AG,Y+Anot(G)+8L
End
If L
T+1+expr(sub(Str2,R,1→T
If not(L
S+1+expr(sub(Str2,R,1→S
R+1→R
End
End
not(L→L
End
1→X
Ans→Y
randInt(0,1→L
Lbl 1
Repeat S=0 xor T=0
ClrHome
For(A,1,8
Output(A,1+8L,"++++++++
End
Output(1,1+8L,"PLAYER
Output(1,8+8L,L+1
For(A,1,8
For(B,9-8L,16-8L
Output(A,B,sub(Str1,4-[A](A,B),1
End
End
1→X
9→Y
Repeat K=21
Output(X,Y-8L,sub(Str1,4-[A](X,Y-8L),1
min(8,max(1,X+sum(DeltaList(K={25,34→X
min(16,max(9,Y+sum(DeltaList(K={24,26→Y
Output(X,Y-8L,"S
Output(3,4+8L,sub("ABCDEFGH",X,1
Output(3,5+8L,Y-8
Repeat Ans
getKey→K
End
End
If 1<[A](X,Y-8L
Then
Output(5,1+8L,"TRY
Output(6,4+8L,"AGAIN
Pause
Goto 1
End
If not([A](X,Y-8L
Then
Output(5,3+8L,"MISS
3→[A](X,Y-8L
not(L→L
Pause
Goto 1
End
If 1=[A](X,Y-8L
Then
Output(5,3+8L,"HIT!
If L
T-1→T
If not(L
S-1→S
2→[A](X,Y-8L
not(L→L
Pause
End
End
End
DelVar [A]ClrHome
not(L→L
Output(4,5,"PLAYER
Output(4,12,L+1
Output(5,7,"WON!

And thanks.

1806
TI Z80 / Re: Battle Ship
« on: August 03, 2010, 01:52:01 pm »
Thanks. I'm happier with this one because I got everything fixed and it's still smaller.

1807
Miscellaneous / Re: Birthday Posts
« on: August 03, 2010, 10:37:10 am »
Happy Birthday, Builder!

Edit:
By the way, wouldn't that be more accurately the Paul McCartney Birthday Song :P

1808
Site Feedback and Questions / Re: Seeing what posts we got respect for
« on: August 03, 2010, 10:33:29 am »
Ya, same here. I've been curious about that too when it happens :P

1809
I added this to the Tutorial thread.

1810
General Calculator Help / Re: Raylin's Rules for Making RPG's
« on: August 03, 2010, 10:32:11 am »
Very cool. Added it to the Tutorials thread.

1811
TI Z80 / Re: Battle Ship
« on: August 03, 2010, 04:43:42 am »
Thank ya.

1812
TI Z80 / Re: Battle Ship
« on: August 02, 2010, 07:14:26 pm »
Haha sounds good :P

1813
Other Calculators / Re: random stuffs
« on: August 02, 2010, 07:03:20 pm »
Did you mean to say it draws to the back-buffer? Because I thought you said it doesn't use the back-buffer ???

1814
TI Z80 / Re: Battle Ship
« on: August 02, 2010, 07:00:49 pm »
Oh, nice. Sorry to hear they all got deleted.

1815
Other Calculators / Re: random stuffs
« on: August 02, 2010, 06:33:11 pm »
That's kinda what I thought at first too, or at least in some kind of shape :P

Pages: 1 ... 119 120 [121] 122 123 ... 207