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

Pages: 1 ... 290 291 [292] 293 294 ... 375
4366
Portal X / Re: Portal X
« on: April 12, 2010, 02:59:56 pm »
Yeah i tried that a while back and it doesnt work :( for reasons calc84 understands.  Do you think there is any way around dividing directly by 5?  Maybe involving multiplication and bit shifts?  Or should i try to convert everything to 4x4?

4367
Portal X / Re: Portal X
« on: April 12, 2010, 12:53:51 pm »
Hmmmm divisions are very slow, and all these divisons by 5 are killing me for collision.  Any way to make them faster?  Or should i think about converting the map size into 4x4 of 8x8?

4368
Axe / Re: SortA() in Axe?
« on: April 11, 2010, 11:54:09 pm »
Here is an implementation of a quick bubble sort.  Its not very fast, but i couldnt get the merge sort to work.  It can sort 100 elements in about a second

List is sorted in place in L1 (no other lists needed)
N is length

Code: [Select]
1->S
While S
0->S
For(F,0,N-1
If {L1+F}>{L1+F+1}
Expr(L1+F,L1+F+1,1
1->S
End
End
End

4369
Axe / Re: SortA() in Axe?
« on: April 11, 2010, 10:14:24 pm »
Wait is this data numbers?  Or something else?  Alphabetically? o.O

We should have an Axe sorting competition ^^

4370
The Axe Parser Project / Re: Axe Parser
« on: April 11, 2010, 06:35:06 pm »
Methinks because strings in Basic programs are not the same as strings in compiled axe programs?  Not sure...

4371
The Axe Parser Project / Re: Features Wishlist
« on: April 11, 2010, 06:27:56 pm »
Nope, Axe does not have decimal support, so you can only have whole numbers.  You can kind of multiply by 1.5 by doing

L*3/2->B

But you wont get the precision of using floating point numbers, it will drop the decimal places.

4372
General Calculator Help / Re: Debugging on the Calculator
« on: April 11, 2010, 01:32:39 am »
Or it could be like what weregoose does where he just keeps putting together random tokens until he gets the most efficient and speedy solution. ;)

4373
General Calculator Help / Re: Debugging on the Calculator
« on: April 11, 2010, 01:10:07 am »
Debugging is simply fixing problems with your code so that it will work correctly.  Often times in games bugs can be hard to find, so to debug your games, you will both run the game through a couple times, and also try to get into weird scenarios that are not expected, trying to find problems.

As for using Rcl, i dont know what he was using it for o.O

4374
The Axe Parser Project / Re: Features Wishlist
« on: April 11, 2010, 12:52:01 am »
The switch statement is this:  Sometimes you have data you want to be loaded, or specific things to do under specific circumstances.  Usualy you have to do this with a list of If statements like this:

Code: [Select]
If A=1
Blah
End
If A=2
Blalala
End
If A=3
Bluhuh
End
If A=4
Wooo
End
If A=5
Rickroll
End
If A=6
Grrrr
End

but with a switch statement you could do something like this

Code: [Select]
Switch(A)
1:Bla
2:Woooo
3:Grrrr
4:Rickroll
5:Chocolate rain
6:Lobser
End

Which is a lot easier on the eyes :) Although it probably would have zero affect on compiled size or speed.  Normaly it is just a feature to make things look nice

4375
Portal X / Re: Portal X
« on: April 10, 2010, 02:16:56 pm »
Haha soon :P let me just get it up really quick...

4376
Portal X / Re: Portal X
« on: April 10, 2010, 02:14:34 pm »
I have it as 4 times slower, and it is looking good ^^

4377
Portal X / Re: Portal X
« on: April 10, 2010, 02:08:27 pm »
Okay so i just made a small modification.  The two portals now always have different speeds, the most recent one is still fast, but the less recent one is slower.  That means that when you shoot a portal, the slow one will disappear and become the new one.  And you can press 5 to switch the fast and the slow one.

More like that?

4378
Portal X / Re: Portal X
« on: April 10, 2010, 01:58:25 pm »
Yep, sounds good to me, I will have the 'stuck' portal either stop animating altogether or just animate slower.  That way when you press 5 you know which one is stuck.  And then if its not the right one... Hmm press 5 again? 

4379
TI Z80 / Re: 15 number tile game thing c3 editition
« on: April 10, 2010, 01:56:20 pm »
Here is an example of how to suffle L1 using the Fisher-Yates algorithm:
Code: (TI Basic) [Select]
dim(L1→N
For(I,1,N
randInt(I,N→A
L1(A→B
L1(I→L(A
B→L1(I
End

A faster method would be to do this (stolen from Weregoose):
Code: (TI Basic) [Select]
rand(dim(L1→L2
SortA(L2,L1

Remember to Sir, you cant just randomize the tiles around because exactly half of all combinations cannot be solved.

4380
Portal X / Re: Portal X
« on: April 10, 2010, 01:54:19 pm »
Mmm so like when you press 5, the most recent Portal that has been shot becomes the only one that you can shoot?  And then when you press 5 again it goes back to normal?

Pages: 1 ... 290 291 [292] 293 294 ... 375