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 - AngelFish
Pages: 1 ... 213 214 [215]
3211
« on: August 16, 2010, 07:20:00 pm »
These are actually bugs in HEXPIC, not Axe. But, being as they're both part of the same package, I figured this would warrant: There are several lines in HEXPIC that bring up various errors and prevent the program from running in the 0.4.3 version. The first bug I noticed was the line pxl-Test(58-Z, X+1->P below the label conditionals. The line appears to reference a pixel outside of the screen and it brings up an error when I try to run it. Changing it to pxl-Test(58-Z, X->P fixes the problem for me. The second error occurs in Lbl F at the line coded not(pxl-Test(50-Z/7,70+X/7->P 70+X/7 is a decimal, so testing the pixel is impossible. This is also easily fixed with the simply addition of a round() command like not(pxl-Test(50-Z/7,round(70+X/7,0->P The third problem is the same as the second one and occurs just below it. Change the 70+X/7 to a round(70+X/7,0 and the problem is fixed. Fixing those causes the program to run for me, although the cursor is a bit off. It's still usable though.
3212
« on: August 16, 2010, 02:38:27 am »
Builderboy, how did you implement gravity in Zedd? I'm pretty sure my formula Y-VT² is off.
3213
« on: August 16, 2010, 01:14:54 am »
No decimals? I suppose that I'd have to approximate with 10, then. That works, although it appears that I'll have to modify my formulae to get a more realistic "bounce." This simulation would be a lot more suited to a mathematically inclined language like TI-BASIC. Oh well, what's a challenge if not a chance to learn [and clear your RAM in the process]?
3214
« on: August 16, 2010, 12:42:05 am »
I'm not entirely sure about the variables in Axe either.
I was trying to code a basic gravity simulation using a single pixel as a ball. What I ended up writing was:
.AA ClrDraw 47->X 5->Y 0->V Rect(0, 60, 96, 4) For(A, 0, 200) DispGraph V-9.8->V Y+V->Y Pxl-On(X,Y) Pause If Y+2V>60 -V->V End End When the code is compiled and run, it displays the initial graphics and then runs the rest of the program without moving the pixel. Looking at the documentation accompanying Axe, I can see that the included Pong program uses similar variable assignment, so I'm unsure of what exactly the problem is. Any help would be greatly appreciated. Axe takes a bit of getting used to, although the speed is a breath of fresh air after TI-BASIC.
3215
« on: August 15, 2010, 10:17:38 pm »
The Axe language in general has very high similarity to both Assembly and Basic, so a strong background in either one will definitely help with programming. An assembly tutorial will have some very useful information for you about how some things actually work and a Basic tutorial would help with program flow since the syntax is similar, however the optimizations are completely different and hardly any basic "tricks" can actually be carried over. What programming languages do you have a background in?
I have a background in some Python, and TI-BASIC with a little bit of experience in other languages. The language I'm most familiar with would definitely be TI-BASIC though. However, I wouldn't say I'm anything more than passable in any computer languages. Just [another] quick question: How do you do grayscale in Axe?
3216
« on: August 15, 2010, 06:44:02 pm »
[Facepalm]
Another "Duh" moment. I guess I had assumed it was like TI-BASIC and graph instructions brought up the graph screen.
3217
« on: August 15, 2010, 06:01:02 pm »
I noticed the >Dec in the Documentation after I posted that, but thanks. Does anyone happen to know of a good tutorial on Axe with things like user interaction, such as an Axe equivalent of the Input() command in BASIC? Even getting the Pxl-On command to work would be great. Just Pxl-On(x, y) doesn't appear to draw anything on the screen, although that's likely because I'm confused by the whole buffers concept.
3218
« on: August 15, 2010, 03:21:05 pm »
Thanks. That fixed the name problem, although apparently I got my arguments wrong. BASIC-like Syntax would be a good description of Axe from what I've seen. It behaves nothing like the TI-BASIC I'm familiar with. Disp Var gives a lot of weird scrolling text in symbols I've never seen on the calculator before.
And I'll be sure to post in the Bugs thread next time. I must have missed it.
3219
« on: August 15, 2010, 03:42:45 am »
I'm extremely new to Axe, so this is probably just User error, but for me, Axe doesn't appear to want to compile programs. I copied an extremely simple sprite control from the documentation PDF to get a feel for how the language worked without accidentally destroying my RAM. When I tried to compile it in Axe 0.4.3, it gave me a File name error. Looking at the list of errors, supposedly I designated the compiled program as the source. However, I was never given the opportunity to designate any program names for the compiled code.
And just for reference, here's the code:
:.Steel A Parser :[3C7EDBFFBDDB663C]→Pic1 :For(A,0,19) :rand^88→{A+L1} :rand^54→{A+L2} :End :For(A,0,19) :Pt-On({A+L1},{A+L2},Pic1) :End :DispGraph
In all likelihood, any help will be a "duh" moment. But thanks.
Ps: I did search the forum for similar topics, but I didn't see any.
Pages: 1 ... 213 214 [215]
|