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 ... 120 121 [122] 123 124 ... 207
1816
TI Z80 / Re: Battle Ship
« on: August 02, 2010, 06:31:19 pm »
just tried it out, and i am impressed
i rarely play anything in basic anymore, but this one's a keeper. props =D
EDIT: i glanced through the code really quickly and didnt see any obvious optimizations (cept mebbe where you used 1->x:1->y and then later 1->x:ans->y), but i like i said i havent messed with basic in a while and never on a screen this large, so...
DOUBLE EDIT: here's the code
Spoiler For To keep this post smaller:
Code: [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!

Ya, I thought I had something like that but that doesn't make to big of deal though because both are really fast as is and it won't reduce the size any. You can take the source down though, I got it up onto the original post :) Thanks though :D

Making *any* game in a kilobyte or less is quite a task.  I myself had a pack of 1 kilobyte games in a folder somewhere but i dont have them anymore...

Really? I didn't realize it was hard to keep games like this under a kilobyte. What kind of games did you have?

1817
TI Z80 / Re: Battle Ship
« on: August 02, 2010, 06:21:38 pm »
Thanks, I'll upload the source to see if anyone else can do anymore with it. I don't think there is though, but I'm very tired so I might have missed something.

1818
Other Calculators / Re: random stuffs
« on: August 02, 2010, 06:19:20 pm »
Wow, those are really cool! I would love to see the source code :) Would like to see if I can understand it. Great job though :)

1819
TI Z80 / Re: Battle Ship
« on: August 02, 2010, 05:52:46 pm »
cool!  Do you think it will be small enough to put into ztrumpet's Homescreen Gamepack?

EDIT:  200th post!

Nah. Well technically it is but it will add almost a kilobyte to the program. I'm about to update the original post and upload this new one.

Edit:
The original post has been edited and the new version has been posted.

1820
Portal X / Re: Portal X
« on: August 02, 2010, 05:20:33 pm »
Haha ya, I know. I thought that was what happybobjr was talking about though :P

1821
Portal X / Re: Portal X
« on: August 02, 2010, 05:17:09 pm »
Heh, you can beat it, and this is how >:D



Well I meant more something like you can't beat it and continue in the game :P

1822
TI Z80 / Re: Battle Ship
« on: August 02, 2010, 04:59:37 pm »
Update:
So I have completely rewritten the game. I have fixed all the issues, I believe, and so far it is about 100 bytes less than it was. I have one bug that I'm working on right now then I will post the new one.

1823
Portal X / Re: Portal X
« on: August 02, 2010, 04:57:15 pm »
I don't think you actually can. It is just there for testing so you are just stuck in it. I could be wrong though.

1824
Other Calculators / Re: ERR: VERSION
« on: August 02, 2010, 04:07:59 pm »
I'm to tired to really understand what you said but from the sound of it basically we are seeing TI's laziness once again?

1825
Portal X / Re: Portal X
« on: August 02, 2010, 03:51:48 pm »
Ya, I found that one too.

1826
Has anyone created a quadratic solver in axe yet?

It should be grayscale and implement tilemapping. ;D

That would be awfully hard without floating-point integers implemented ;)

1827
Portal X / Re: Portal X
« on: August 02, 2010, 10:28:59 am »
Oh, so it's kind of like a means of being able to get into another room where a wall is blocking the way, right?

That's what it sounds like, but I could be wrong.

1828
Miscellaneous / Re: Programming Tutorials, Help, Etc.
« on: August 02, 2010, 10:27:15 am »
Thank ya :)

1829
Humour and Jokes / Re: The best xkcd ever (NOT a rickroll)!
« on: August 02, 2010, 03:24:51 am »
If that ever happens in a computer class I take I am so saying that now :P

1830
Portal X / Re: Portal X
« on: August 02, 2010, 03:22:58 am »
Right, ok haha. Just sounded force fieldish since you said you can shoot through it but not go through :P

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