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 - Hayleia

Pages: 1 ... 78 79 [80] 81 82 ... 239
1186
TI Z80 / Re: [CSE Basic] Snake
« on: July 29, 2013, 05:47:27 am »
Well thanks all for judging the speed. In fact I am so used to Axe that I can't judge Basic speed anymore lol.

(However, please don't judge my skills at that game, I was holding the camera with my main hand and playing with the other one without seeing the calc screen due to the oversized Android, and without seeing the keys I was pushing either. I don't say that I play better when I have my two hands and when I am in front of the screen, but for once I have an excuse to say why I play badly).

Also, I just remember now that I have a gmail account so I may have a youtube account -.-°

1187
Miscellaneous / Re: What is your signature?
« on: July 29, 2013, 05:36:11 am »
Going to change my signature in a minute (to fit better the new rules). I use that post for two reasons :
-keep a copy of my old signature (nostalgia and all...)
-preview the new one (to avoid oversized text)

Spoiler For old signature:

Spoiler For image fails:



Spoiler For what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s

Spoiler For new signature:
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE

click here to know where you got your last +1s

1188
TI Z80 / Re: [CSE Basic] Snake
« on: July 29, 2013, 05:25:44 am »
Ok, I converted that video into a gif. The image is stretched for some reason but since the goal was to judge the speed I think it is not a problem.
And thanks Sorunome for your help anyway, even if I don't need it anymore.

1189
TI Z80 / Re: [CSE Basic] Snake
« on: July 29, 2013, 05:14:06 am »
Yeah, but it is a bit heavy to be uploaded lol. And I don't have a Youtube account so I can't put it there.

1190
Miscellaneous / Re: "What If" Discussion
« on: July 29, 2013, 05:13:05 am »
Same for me, What if I wasn't already too young when they wanted me to skip a class in elementary school ? I would have skipped a class, I would have met people I didn't and I would not have met people I did. How would my life be ?? I think I'd still be programming, this has to do with my parents, not my relations at school, but maybe I would have made more friends, I'd be getting out more often and I would be programming a lot less.

1191
TI Z80 / Re: [CSE Basic] Snake
« on: July 29, 2013, 05:09:54 am »
Lol, I have the CSE since April.
And yeah, I agree myself that an animated screenshot would be awesome. So if someone can do it, please do. In the meanwhile, I'll try to record a video and convert it as a gif somehow.

1192
TI Z80 / Re: [CSE Basic] Snake
« on: July 29, 2013, 04:18:19 am »
You should see if you can capture a video or a gif with an emulator. You know, for those of us without the CSE. ;)
Yeah, I thought about that (I always do that for the monochrome models) but I don't know what to record with : Wabbitemu doesn't work with the CSE (or I missed something) and jsTIfied asks for a ROM, and the only rom dumper I found needs TiLP which I always failed to install (so I use TI-Connect).

1193
Miscellaneous / Re: So what is everyone up to?
« on: July 29, 2013, 04:11:37 am »
Uh, did you post the 'right' reply in the wrong topic?
Or he was talking about "Hyrule: Total War", asking if that was a ROM hack or something.

1194
TI Z80 / [CSE Basic] Snake
« on: July 29, 2013, 03:54:39 am »
Latest update here

So yeah, I heard a lot of people complaining about speed on the CSE, then I saw xLib, CalcuZap and Buttonz not being so slow and I was wondering if Basic had a reasonable speed too (I am talking about pure Basic, not using libs like Legand of Zelda: Sord of Atari).

This is why I coded that Snake game. Don't expect too much of this, it is just a snake, without any surprise. Speed is acceptable but it is true that it would be better if faster. That may also be because of my inexistant optimizing skills in Basic.

edit also w00t, it fits in 29-1 bytes.

Spoiler For the code:
:AxesOff
:FnOff
:ClrDraw
:26?D:10?L:L?C
:TextColr(BROWN
:For(?,1,20
:   Text(~1,2,?*12,"?
:   Text(~1,137,?*12,"?
:End
:For(?,1,8
:   Text(~1,?*15+2,0,"?
:   Text(~1,?*15+2,252,"?
:End
:TextColor(GREEN
:DelVar ?XDelVar ?Y
:seq(12-L+?,?,1,L??X
:seq(32-L+?,?,1,L??Y
:Fill(12,?X
:Fill(32,?Y
:32?A:24?B
:Repeat K=45
:   getKey?K
:   If not(min(abs(K-{24,25,26,34:K?D
:   1+?C+1,L-1?N
:   ?Y(C)+15((D=34)-(D=25?V
:   ?X(C)+12((D=26)-(D=24?U
:   N?C
:   If Pxl-Test(V+7,U+4
:      Goto Q
:   Text(~1,?Y(N),?X(N),"
:   V??Y(N:U??X(N
:   Text(~1,V,U,"*
:   Pxl-On(V+7,U+4
:   If U=B and V=A
:   Then
:      augment(?X,{0,0,0,0??X
:      augment(?Y,{0,0,0,0??Y
:      L+4?L
:      Repeat not(Pxl-Test(A+7,B+4
:         12randInt(1,20?B
:         2+15randInt(1,8?A
:      End
:      TextColor(RED
:      Text(~1,A-2,B,"o
:      TextColor(GREEN
:   End
:End
:Lbl Q
:ClrDraw
:DelVar ?XDelVar ?Y
:ClrHome
:Output(1,1,"Game Over

edit edit Stretched gif (don't ask me why it is stretched, I don't know).



edit edit edit @Xeda : I finally didn't use your code to check if there are two occurences of the same point in the lists because I was fearing that the speed of the calculations would depend on the length of the lists.

1195
The Axe Parser Project / Re: Features Wishlist
« on: July 29, 2013, 02:08:29 am »
How do you guys feel about that syntax?
I like the idea of having one token for everyone and using letters to see who is who, but the → is a bit confusing according to me. Why not parentheses instead, like .THING() for default, .THING(I) for Ion, etc ? Or if you want to use the →, why not .M→THING instead of .THING→M ?

The idea was that you're "storing" the compiled data into the target variable type. Does that win you over at all? :P I find the parentheses method confusing myself because it suggests to me that the file is some massive routine with input arguments, and I mentioned why I like the store approach in the order first suggested.

If you still aren't a big fan of the original syntax suggestion, it can certainly be changed. It would be good to hear input from a few others before any kind of decisions are made.
In fact, reading your post again makes me think that your syntax is the best. It stores the THING program into a M(irageOS) program, so it is basically THING→M.

1196
TI-BASIC / Re: Check if two "occurences"
« on: July 28, 2013, 03:30:09 pm »
Yeah, I can do that or use two temporary lists that I don't care if they get swapped (but that method would use more RAM).
Anyway, thanks, your code seem to work perfectly.

1197
TI-BASIC / Re: Check if two "occurences"
« on: July 28, 2013, 03:19:39 pm »
Oh, I didn't know that SortA could have several arguments !
Thanks, indeed I think that "something like this" should work (if not your code, something similar).

1198
TI-BASIC / Re: Check if two "occurences"
« on: July 28, 2013, 03:13:04 pm »
The best I can think of right now is:
DelVar ZFor(I,1,dim(LX
For(J,1,I)
If (LX(J)=LX(I)) and (LY(I)=LY(J
1->Z
End
End

Well yeah, I know that this would work, but I was wondering if there was not a fast method.

1199
TI-BASIC / Re: Check if two "occurences"
« on: July 28, 2013, 03:07:28 pm »
sum(not(abs(LX-LY
It doesn't work (both examples return 1) and it doesn't surprise me : doing LX-LY (and adding some commands after) would check if there is an equality X(n)=Y(n), but not (X(n),Y(n))=(X(m),Y(m)).

1200
The Axe Parser Project / Re: Features Wishlist
« on: July 28, 2013, 02:55:29 pm »
How do you guys feel about that syntax?
I like the idea of having one token for everyone and using letters to see who is who, but the → is a bit confusing according to me. Why not parentheses instead, like .THING() for default, .THING(I) for Ion, etc ? Or if you want to use the →, why not .M→THING instead of .THING→M ?

Pages: 1 ... 78 79 [80] 81 82 ... 239