I won't be able to do anything on this website during the summer because of my garden. Soon I will add the game "Cheese Quest",where someone killed all the cows in the world except his 2, so he can rich from the world's only cheese supply, and you need to stop him.
Date: 02 Jun 2014 13:46
Number of posts: 17
RSS: New posts
I am new to TiBasic(only about 2 or 3 weeks), so if you think that I did something completely wrong, please don't judge me, and comment below to help me make this a better program. Thank you.
Now for speed. There are a lot of places where a [Then…End] is not needed in your [If] statements. If there is only one thing you want done, you don't need a [Then…End]. For example:
If K=25 Then X+1→X End //Can Be If K=25 X+1→X
There is also a cool bit of code that makes movement in maps much faster. I HIGHLY recommend actually understanding it before applying it.
It isn't L1 and L2, it's ⌊1 and ⌊2, which represent lists. ⌊1 holds the X coordinates for the vehicles, and ⌊2 holds the Y coordinates.
Of course he does know that you meant ⌊1 and ⌊2, but L1 and L1 is just faster to write.
However, this does not change anything on the fact, that there are many easy code improvements left.
And regarding clearing the lists at the end: I have to defend you there. I also never add the clear lines at the end of my code, when I post it, since I think everyone should personally add or remove these lines. If I add them, they only make the code longer, but some users just still let them out
Wake me, when you need me.
Yes, I suppose it is a matter of preference. I always clear everything up, because it is faster to press clear to remove it than to add it in, plus I like maximum RAM. TI-84CSE is just a tad bit slow, so I keep as much RAM as possible.
But it does add lines of code, so it really depends on what you prefer.
About half a year ago, I also always added the Clear all Variables lines.
But after some time, I realized that it isnt really worth it.
All the real or even complex variables do not take that much RAM: It is always enough RAM left.
However, when my program uses matrices or huge lists or huge strings, I also add these clear lines, because then it is worth it. But this is the only exception, I dont see the sense of deleting a 18 Byte numeric variable, when you have 2-3k total physical memory available (factor 200)
Wake me, when you need me.
More movement optimization. Piecewise expressions simplify the moment code to:
Repeat K=45 :getKey→K :X-(Ans=24)+(Ans=26→X :Y-(K=34)+(K=25→Y :End
Like Zachatoo said, piecewise expressions can remove large bulky blocks of code, and (as long as the calculations don't take too long in each piece) can speed up your program while decreasing size.
-live the life because the life is good -vivir la vida, porque la vida es buena
-Vie la vie que la vie est bonne -quod est bonum vitae in vita
-lebe das Leben, weil das Leben ist gut -vivere la vita, perché la vita è buona
Can someone please add me to the member page?
To create a download for your games, use Cemetech's source coder 3.
From there, you can type in your code, then export it. (default file format is .8xp)
If your wanting to create a download without typing your code in, you need to get a cord that goes from your calculator to your computer. You can try TI Connectivity Kit from education TI com. There are some pretty neat tutorials and websites out there for this kind of stuff, but unfortunately I am currently restricted from posting website links on here… According to TI Basic Developer, "Guests and low-karma users are not allowed to publish links on this site."
What should I do???
It is keep saying invalid dim error every time I try to start this game
When the error pops up, where does "2:Goto" take you to? You might be typing something wrong. Remember, a little L signifies a list (found in [2ND] [STAT] [OPS]), and thats what was used here. However, if you wrote the wrong type of L, it wouldn't give you an error anyways…
I'm having the same error. I looked into it and it seems the error is coming from the command If L1(W)>16 near the start of the code. It's causing an error because it's trying to recall the 13th value from L1, which doesn't exsist. Not a genius at TI basic, so I though if maybe before it I add the following:
Tried to run it. Didn't get any errors, but it simply ran forever, didn't display anything. Just the yellow processing circle at the top right. Probably should mention I'm using a 84 Plus CE. Since I'm not a TI genius I don't know where to go from here.
Is It Possible to Make The "not" and "[", "]" On My TI-73 Explorer because I can find it on my TI-73 and I think there is no Test Menu on it.
Welcome to TI-Basic Developer! You may want to introduce yourself.
"0=" is the same thing as "not(" and I think the "[" is actually a "⌊" for a list. You can use L₁, L₂, L₃, etc.