Probably, I just didn't mess with it further and I actually have no idea what the units for the wait/delay/sleep/whatever command are.Shouldn't the minimum just be 1 frame?
Probably, I just didn't mess with it further and I actually have no idea what the units for the wait/delay/sleep/whatever command are.Shouldn't the minimum just be 1 frame?
CLS
CLEAR
SW=256
SH=191
XDIR=RND(1-9)
YDIR=RND(1-9)
XPOS=1
YPOS=1
DIM XP(49)
DIM YP(49)
DIM XD(49)
DIM YD(49)
FOR I=0 TO 28
XP(I)=RND(255)
YP(I)=RND(191)
XD(I)=RND(1-9)
YD(I)=RND(1-9)
NEXT
GCLS
COLOR 0
CLS
'CLEAR
@MAIN
VSYNC 1
GPAGE 0,2,0
GCLS 0
GBOX XPOS,YPOS,XPOS+10,YPOS+10,78
GOSUB @DRAWP
LOCATE 3,3RINT "PARTICLE DEMO V.001";
GOSUB @CHANGE
GOSUB @CHANGE2
GOSUB @PRESS
GPAGE 0,0,2
GOTO @MAIN
@REST
GLINE RND(200),RND(100),RND(200),RND(100),RND(150)
RETURN
@DOT
GCIRCLE RND(100),RND(100),RND(100),RND(100)
RETURN
@BOX
GBOX 1,1,5,5,RND(255)
RETURN
@CHANGE
XPOS=XPOS+XDIR
YPOS=YPOS+YDIR
IF XPOS>SW THEN XDIR=XDIR*-1
IF YPOS>SH THEN YDIR=YDIR*-1
IF XPOS<0 THEN XDIR=XDIR*-1
IF YPOS<0 THEN YDIR=YDIR*-1
RETURN
@DRAWP
FOR I=0 TO 28
GBOX XP(I),YP(I),XP(I)+10,YP(I)+10,RND(255)
NEXT
RETURN
@CHANGE2
FOR I=0 TO 28
XP(I)=XP(I)+XD(I)
YP(I)=YP(I)+YD(I)
IF XP(I)>SW THEN XD(I)=XD(I)*-1
IF YP(I)>SH THEN YD(I)=YD(I)*-1
IF XP(I)<0 THEN XD(I)=XD(I)*-1
IF YP(I)<0 THEN YD(I)=YD(I)*-1
NEXT
RETURN
@PRESS
BT=BUTTON()
IF BT==16 THEN BEEP
RETURN
nice demoWell, here's my first experiment and warm up if anyone is curious.
Just a little bouncing box demo. 29 boxes bouncing around the screen. Press A to Beep. LOL.
2. If the user enters a string (letters) instead of numbers. The program will automatically work through this, with a "?Redo from start" prompt, but I'd just like to make it look nicer.
3. The INPUT function always adds a question mark. I tried using the LOCATE function to just replace it with a space or nothing, but no change. Again, just something to make the finished product look nicer.
If there's an input command such as LINPUT that accepts blank lines, is a reasonable compromise printing a ? character manually, then calling the input command?If you use LINPUT, no question mark is generated. That doesn't solve the first problem (although LINPUT -will- accept blank lines for entry), but you might find it handy.
Technically, LINPUT is supposed to be for entering responses a line at a time, including special characters, but...
The memory error is because you're using GOSUB instead of GOTO for your loop. You're overflowing the stack.
If you use LINPUT, no question mark is generated.
You should be able to load the QR code(s), look what program(s) were loaded, go to write program, and type LOAD"ULTRATETRIS or something like that. That should load the program, and then you can just click the edit button to look at, modify, save-as, etc. the code.Is there a way to go from a QR code to basic for translating purposes and such?
Well now you've got something to write! And you can call it UTETRIS, for uTetris, as in microTetris, since it'll be a very simple and small version of tetris! So clever, huh.For a moment I got excited that ULTRATETRIS existed, but that would be too many characters, sigh.
So he bought a product without knowing what the product was? I see.
I'm a twitter user but I didn't see anything linking to a qr code.Updates and such for everyone...
1) Hunt the Wumpus appears to work fine. I'll polish up a few bits and put a QR code up soon. It's not optimized for the DS, though -- pure text game.
2) Someone on the SomethingAwful forums noticed http://petitcomputer.wikia.com and even made a contribution to it. Outside editors approach!
3) I made a simple vertical shooter-type game. I'm polishing it up and I'll offer a QR code.
4) DAMAXIAN DEEP LABEL (http://togetter.com/li/323144, http://www.youtube.com/watch?v=6lNUbZ8k-ns) looks neat, but I can't get the QR codes for it. The first link has a copy of them, but it's too poor quality to scan. I tried following the Twitter link, but it appears you need to be a Twitter user AND approved to see his post. If anyone does that, let me know, as I'd like to try the game out.
5) I haven't started on the Oregon Trail port yet. That should come soon.
So, I drew a box with GBOX, but now how I delete it? Is stuck on the console now even after I stopped the execution of the program. >_<
Downloaded the alarm clock. Will test it out tonight/tomorrow and give you feedback.I put up a really simple Alarm Clock for 3DS users who don't have one.
http://petitcomputer.wikia.com/wiki/Alarm_Clock
You should be able to load the QR code(s), look what program(s) were loaded, go to write program, and type LOAD"ULTRATETRIS or something like that. That should load the program, and then you can just click the edit button to look at, modify, save-as, etc. the code.
If memory serves me correctly at least.
Oh, I would expect there's a QR-to-edit tool for PC, I just don't know of it. I haven't tried the PC tools yet.I'd really prefer editing it from my PC. That way its easier to translate.
I put up a really simple Alarm Clock for 3DS users who don't have one.
http://petitcomputer.wikia.com/wiki/Alarm_Clock
Thanks for the answers. Can someone give me a quick rundown on how the DATA constructs works? Thanks in Advance.
Hmm.....I remember the manual claiming that programs would end after 145 minutes....
Or, maybe not, I dunno.
Section 16. System Variables --> Numeric System Variables
Next to MAINCNTL: "Frames elapsed since start of program (max. 145 minutes)"
Program on computer, use PC utilities to convert to QR code, scan that in and test.I futzed around with the JP release of this but I couldn't get over how much of a pain in the ass it is to program with the touchpen. Is everyone using that for input or is there some much easier method that I'm not aware of?
The semicolon prints the line without the carriage return (new line/line feed) - the next print statement continues from that point instead of a new line.What exactly does putting a semicolon at the end of a PRINT command do? For example:
PRINT "A";
I put up a really simple Alarm Clock for 3DS users who don't have one.
http://petitcomputer.wikia.com/wiki/Alarm_Clock
Great, thanks. I figured it had something to do with carriage return but it's great to have a confirmation.The semicolon prints the line without the carriage return (new line/line feed) - the next print statement continues from that point instead of a new line.
In your case, printing will advance to a new page -- printing at the bottom of the page drops the cursor to the next line, and thus moves the text up as the screen scrolls down.
No time, got to program large map scrolling! Making good progress!
Okay, so 4096=1 implies 2^-12 is the smallest number. It rounds numbers off to 0.001 when you print them, so 2^-12 displays as 0, so I try 1000*2^-12 and I get 0.244. Okay, so I try 1000*0.0002449, but it gives 0, even though 0.0002449 is greater than 2^-12, yet 1000*0.000245 gives 0.244 as an answer. It might seem like a small error, but it propagates: it registers 0.0007349 as 0.000488 and 0.000735 as 0.000732, even though 0.0007349 is greater than 0.000732. This thing thinks 100000*PI()=314135.742, which is an error of 23.523! So don't count on using this thing as a calculator, lol.
Uh..huh. I suspect there were bits of machine translation here and there. With no proofreading afterwards...Label Character String said:Charactor strings model variable containing the lavel name which starts with @ mark.