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 - LordConiupiter
Pages: 1 ... 11 12 [13] 14 15 ... 24
181
« on: September 13, 2010, 03:51:52 pm »
perhaps you should seperate the data in the AppVar with zero's? then you could use the length( command to see how long the nam is, and then add that to a pointer to the current program-name. here is some code which should do it: .READPRGS
GetCalc("apvrDATA")->D->P .get the pointer to the appvar DATA "prgm"->Str0ZZ .initialize Str0ZZ
While P<{D-2}rr-9 .check for reaching the end of the AppVar length(P)->L .store the length of the string at P to L, because it will be used more than once Copy(P,Str0ZZ,L) .annex data at current position to Str0ZZ P+L+1->P .add the length of the string at P to P to move P to the start of the next string .Code to do whatever you want with the program... End
this code is not tested, use at your own risk I don't know wheter Str0ZZ should be Str09 or not, because I thought only Str00 till Str99 were supported, but I'm not sure about that.
182
« on: September 13, 2010, 03:32:17 pm »
yes, I like it!
183
« on: September 13, 2010, 11:18:13 am »
I think that is doesn't work because you use Pt-Off, and not Pt-On. Pt-Off will just only turn off the pixels which are black on the sprite, nad not turn on the pixels that are white on the sprite. perhaps u could use the combination of Pt-On( and RectI( ? like this:
:.TEST :<data> :1->A->B :ClrDraw :Repeat getKey(15) :Pt-On(B/12,A/12,Pic1 :RectI(B/12,A/12,8,8 :Pt-On(B/18,A/18,Pic1+8 :RectI(B/18,A/18,8,8 :Pt-On(B/24,A/24,Pic1+16 :RectI(B/24,A/24,8,8 :DispGraph :ClrDraw :C-getKey(2)+getKey(3)->C :D-getKey(4)+getKey(1)->D :B+C->B :A+D->A :End
184
« on: September 11, 2010, 07:02:39 pm »
well, it is not just only for the Text token, it could be used for any token. it is just an example, which draws text to the buffer, using the r modifier. perhaps this was not the best example I could give, but it was meant to give the ability to write Axioms in Axe.
185
« on: September 09, 2010, 05:06:10 pm »
well, I got this error earlier, but right now it isn't happening. I'll try to replicate it, but I'm not sure if I will succeed before the contest ends
186
« on: September 09, 2010, 11:47:09 am »
ow! how stupid am I today! perhaps I'm working too much for the contest, and sleeping too little could you also add port reading in the future? I do not mean the I/O port etc, but ports like these: All ports by AddressEDIT: another feature for the next Axe version after 1.0.0: the Function command, for labels to be used as commands like subs. I'll explain what I mean with an example: normally, when you want to use a subroutine, you do: sub(SUB,1,2,"HELLOL" Return
Lbl SUB Exch(L3,L6,768) Text(r1,r2,r3) Exch(L3,L6,768) Return
but the idea of Function is that this could be done: Text(1,2,"HELLOL")r Return
Function Text(3)r Exch(L3,L6,768) Text(r1,r2,r3) Exch(L3,L6,768) Return
this is some kind of Axiom thing, but than in Axe itself, right? could this be added in Axe++?
187
« on: September 09, 2010, 11:04:52 am »
Can't you do that with the Euler's constant 'e'?
ow yes, youre right! thanks! could a command be added for changing the screen intensity? perhaps lcm( could be renamed to lcd(EXPR) with expr a value from 0 to 24 or something?
188
« on: September 09, 2010, 10:56:11 am »
when the calc is compiling, and laid away, and then an error occurs, and when I do nothing then, so APD is activated, and when I turn it on again, I get an
ERR: UNKNOWN ERR Code: 4423816
and after this a RAM clear.
when I write an App that is very small (455 Bytes), the parser gives me another unknown error, Code: 4435555
189
« on: September 09, 2010, 03:28:27 am »
iPart( would be a nice token for nib{ I think. could you also add a bit{ command? min( could be replaced by it. the following syntax could be used:
.bit{byteaddress, bitnumber}:
[0B->GDB1 .00001011 If bit{GDB1,1}=1 .true Disp "last bit on!" End If bit{GDB1,8} .false Disp "First bit on" End
190
« on: September 08, 2010, 05:21:40 pm »
register access! that would be really cool! for the 8bit and 16bit tokens: perhaps RADIAN -> 8bit and DEGREE -> 16bit? or wouldn't the words in the mode menu change when the token names are changed?
191
« on: September 07, 2010, 02:48:39 am »
Do you mean the first time you compile the error show up and the second attempt it won't? Do you need to do something inbetween (such as Garbage Collecting, archiving/unarchiving)?
yes, that's exactly what I mean. I do nothing in between, and then it suddenly compiles without any errors.
192
« on: September 07, 2010, 01:48:40 am »
And which frequency is the getKey command using? is it true that when I am going to add BGM, I can't use the getKey routine anymore?
193
« on: September 07, 2010, 01:41:16 am »
ninja'd? or double post? was the site acting weird, or is this message that important to you, so you posted it twice?
194
« on: September 06, 2010, 03:56:19 pm »
you can allways give it a try, why not, you'll see it. Or is this not something you are going to do? Is it a question for security reasons? that not somebody who came in lately and spent a very little time on coding his game will win the grand prize? I can't say it, but when the smallest game is the best, then that game will win the contest!
195
« on: September 06, 2010, 02:54:13 pm »
or perhaps EXPR[ # ], like arrays? EXPR would be the pointer to the data, and # could be any number/variable with any value. and when that's unrealizable, just constant 0 - 3.
a feature request: when I currently want to draw an Inverted Rectangle, I have to do:
Rect(X,Y,W,H RectI(X,Y,W,H
could you change invT( in the 2nd DISTR menu to Inv, so that we can type InvRect(X,Y,W,H)? or would this be too much work?
another thing I suddenly thought of: could DelVar perhaps be changed to DelCalc(, since it is a member of the Calc var handling system? IMO it would be nice to have GetCalc( and DelCalc( look similar, because of the same Syntax and use.
and the PTR in the documentation used in the External Variables part for GetCalc(PTR) is not the same PTR as for float{PTR}, or am I wrong at this point? Else it would perhaps be more consistent to use EXPR in stead of PTR.
one last note: in the documentation it says: Sub(, but in the editor it is sub( with a lower case S.
Pages: 1 ... 11 12 [13] 14 15 ... 24
|