|
Member
(07-20-2012, 03:43 PM)
|
#201
Ah, I guess I have to remember what the name is. I clicked edit and then load, but then I apparently had to manually type the name and I didn't experiment. :P Hopefully that means there's an equivalent save-as, also. It looks like the ingame help is fairly decent, which is nice.
The DSi store feels so weird to me. You get in, you see like 4 featured icons including the Petit computer, and it's like, here's this little image, it's recommended, you want to buy the game? I feel like most people wouldn't even know about it or have any idea what it is. I do think it's awesome that the DS/DSi gets some niche things like this and the Korg synth(s) though. |
|
|
|
Member
(07-20-2012, 03:56 PM)
|
#202
|
|
Will QA for food.
(07-20-2012, 04:33 PM)
|
#203
http://smileboom.com/special/petitcom/pochette.html
Lots of great code to browse and play around with for those just diving in. |
|
official chef to the
Evil Clown Brigade(tm) (07-20-2012, 04:52 PM)
|
#204
|
|
Member
(07-20-2012, 06:05 PM)
|
#205
And yeah, after loading a sample, you just click SAVE and type a name and hit enter, and you can edit it as much as you like. Maybe correct the mistake in the CHR editor when it asks if you want to load the "splite" palette. Or when you try to run in the dungeon game and get told "not got escape" or "get escape." |
|
Member
(07-20-2012, 06:17 PM)
|
#208
Oh wow, Basic huh, how different is it from Q-basic.
Childhood memories of course, coding some stupid games like a text based wrestling game where I tried to implement an "AI" and as like a elementary student found out that one piece of computer hardware will always tend to output similar numbers in a basic RNG, good times, past Shura was a bright kid :( Also "composed" the mission impossible theme in shitty pc beeps, the shame. Looks amazing, can some kind souls maybe shoot a few vids for people interested in what they've already put out?
Last edited by Shurayuki; 07-20-2012 at 06:53 PM.
|
|
Member
(07-20-2012, 06:37 PM)
|
#209
Wow...just checked the editor for the PX7 synthesizer I linked to earlier. It's 7,482 lines of code. I expected it to be huge, but damn.
edit:
![]() ![]() For some reason the QR code converter wouldn't resize the QR code images when I asked it to make them larger, so that's why the images are so tiny. I renamed it "Cycle Game" because it reminded more of the original Tron light cycle game from the 80s. Anyways, I can't get left and right d-pad controls to work for the 2nd player. I wonder if anyone here with more knowledge than me could fix it. It's otherwise a decent little mini-game.
Last edited by Wiggler; 07-20-2012 at 06:58 PM.
|
|
Member
(07-20-2012, 07:06 PM)
|
#210
|
|
(more a nerd than a geek)
(07-20-2012, 07:08 PM)
|
#211
|
|
(more a nerd than a geek)
(07-20-2012, 07:23 PM)
|
#212
I don't know if this is helpful to anyone, but I "set up" a tiny Petit Computer wiki at http://petitcomputer.wikia.com . Feel free to add links to individual QR codes and such... although I am still unsure whether or not it might be easier/better to simply branch off the Japanese wiki.
(I may regret doing this... a simple list of links in a message here might be better...)
Last edited by DavidDayton; 07-20-2012 at 07:44 PM.
|
|
(more a nerd than a geek)
(07-20-2012, 09:48 PM)
|
#215
Well, I appear to be clunky with Wikis, so if anyone has an alternate wiki site/location/idea, let me know.
|
|
(more a nerd than a geek)
(07-21-2012, 02:40 PM)
|
#222
Finally finished a simple conversion of Hunt the Wumpus -- I'll post a QR code later.
Random notes: * INPUT A$ will -not- take an empty line, or even a line with spaces. This is ... odd. * INPUT commands can't be appended to an existing display line by using a ; -- the input line always appears on the next line. * LINPUT can be appended to an existing print line with a ; and can also take a blank line for input... however, LINPUT won't display a ? prompt. * ON _A_ GOTO/GOSUB @10, @20, @30 Petit Basic starts counting from ZERO, not 1 (like most classic Basics). A=0, goes to @10 A=1, goes to @20 A=2, goes to @30 (and A=3 goes to @10 again -- it loops back around) * Similarly, arrays start from 0 and not 1. I can't remember if that's true in classic basics or not, but I -did- have to increase most array DIM statements by 1 to get things to work. If I get this working well, I have a lovely 1978 version of Oregon Trail to convert... |
|
Member
(07-21-2012, 05:28 PM)
|
#227
|
|
Junior Member
(07-21-2012, 06:58 PM)
|
#228
Edit: Nevermind. When viewing on my iPod it only displayed one code. |
|
Member
(07-21-2012, 07:48 PM)
|
"extremely basic painting program/tile engine" - documented code
#229
I found something useful, it's a bit of documented code to get people started.
Quote:
If you have any good tutorials that get into game programming, do share them ;) |
|
Member
(07-21-2012, 07:57 PM)
|
#230
I feel like making the comments NOT all caps would go a long way towards making them readable. Thanks for the tutorial though!
*edit* Here, I had a go at reformatting the comments to test my theory:
Quote:
Last edited by Blizzard; 07-21-2012 at 09:15 PM.
|
|
Member
(07-21-2012, 08:20 PM)
|
#231
Code:
PRINT "HELLO WORLD" 'Prints "HELLO WORLD" Code:
PRINT "HELLO WORLD" :'Prints "HELLO WORLD" |
|
Member
(07-21-2012, 08:21 PM)
|
#232
Also, would simply replacing all the ' with :' fix the code I posted above? I can do that if so. |
|
Member
(07-21-2012, 09:08 PM)
|
#233
Colon lets you put multiple lines on the same line, yes.
But you can usually put comments on the same line as commands...except for when you can't. Sometimes you'll just get syntax errors. For example, it doesn't like it if you put a comment on the same line as a READ X command. I'm not sure of all the circumstances that cause syntax errors, it might be best just to try to run the program and see which lines it doesn't like, fix them, run it again, etc. |
|
Member
(07-21-2012, 09:14 PM)
|
#234
|
|
(more a nerd than a geek)
(07-21-2012, 10:57 PM)
|
#235
The "it's barely there" PetitComputer wiki is vaguely there.
Feel free to tackle it, if you like. At the moment, you can add programs to the wiki by simply: 1) Visiting http://petitcomputer.wikia.com 2) Clicking on Contribute / Add a Page 3) On the new page, enter the title of the program and uploading the QR codes to the page. 4) Adding the Category tag of "Programs" to the page. Right now it's just got Tennis and the Trek/Star Trek game, but in theory this could be used to create an index of all sorts of things. Have fun! Edit: If you find a nice program hosted on another site, just enter a title/description and provide a link TO the page with the QR code. Unless they give permission to host the code, it would technically be copyright infringement.
Last edited by DavidDayton; 07-21-2012 at 11:04 PM.
|
|
(more a nerd than a geek)
(07-21-2012, 11:36 PM)
|
#237
|
|
Member
(07-22-2012, 03:38 AM)
|
#238
Is there a way to highlight and delete text? I see copy and paste buttons so I am guessing there is, but I couldn't find it in the help.
Side notes for anyone who didn't figure it out: L and R act as the shift button, and holding L or R (or shift) means you go up and down by whole pages in the code, which is helpful since there doesn't seem to be a jump-to-start or jump-to-end or jump-to-line-number editor feature. And yes I know I should just be using a PC editor and then sending the program to the device, but hey it's fun to sit in a theater waiting on a movie to start while editing a program. =P |
|
Member
(07-22-2012, 03:49 AM)
|
#239
Someone on gamefaqs found this awesome Petit Utility:
http://micutil.com/ptcutilities/top_e.html Features: Coding Sprite making QR Converter |
|
Member
(07-22-2012, 04:04 AM)
|
#240
|
|
Member
(07-22-2012, 06:17 AM)
|
#241
Holding down L (and probably also R?) and pressing Y deletes an entire line, which is pretty nice.
There is no multi-line selection for copy/paste, just another limitation of the program. The PC editor is nice, but it has a lot of weird problems. Not sure if they're mostly from being originally Japanese which uses different character encoding, or because the creator only works on a Mac and the PC version is an imperfect port. Sometimes copying and pasting in the editor will just plain crash on either XP or 7. It seems to crash more often if you're copying/pasting more at once. Also you cannot type in capital letters, though you can paste them in. Petit Computer automatically converts the lowercase letters to capital, except for in comments, so you may need to go back and correct the case. But it's still an awesome tool, you can just click the QR button, scan the program back in, and it's on your DSi/3DS ready to test and refine. |
|
(more a nerd than a geek)
(07-22-2012, 09:14 AM)
|
#243
It's weird that I can paste entire source listings from websites, but pasting my edited 80s BASIC programs can crash it. |
|
Member
(07-22-2012, 02:35 PM)
|
#244
Hmmm, just noticed that when you go to write a program it automatically spurts out how many bytes you have free, except I seem to have exactly 1 MB even when I add large files or delete them, so that confuses me, but I guess a MB should last a while if that is supposed to be about what we get.
|
|
Member
(07-22-2012, 06:43 PM)
|
#246
I think that functionality is built in for the "graphic" layer, i.e. the layer for drawing lines and squares. Look up 35 Graphic (Expert) in the manual for info about GPAGE. Here's another way you could do it, if the things you're drawing are on the background planes: The background is 512x512. This means you can fit four DSi-sized screens worth of stuff on it at once. Have a variable that alternates at the start of every frame, call it BUFFER. If it's 0, change it to 256, else change it back to 0. Every time you draw during a frame, add BUFFER to the x value of where it gets drawn, and at the end of the frame do BGOFS [layer],BUFFER,0 to instantly shift sideways to your hidden frame.
Quote:
|
|
Junior Member
(07-22-2012, 06:45 PM)
|
#247
There are 4 pages to choose from, and by default page 0 is on the top screen and page 1 is on the bottom screen. To double buffer on the top screen, do GPAGE 0,2,0 to show page 0 and draw on page 2. Draw your frame, then do GPAGE 0,0,2 to show page 2 (which you just drew) and draw on page 0. Rinse and repeat. |
|
Member
(07-22-2012, 06:52 PM)
|
#248
Thanks for the info though, I'm sure it will come in handy down the line. |
|
Member
(07-22-2012, 07:39 PM)
|
#249
In case you didn't notice it, one of the built-in examples (sample12 or something?) seems to be all about copying/swapping pages. I think it used vsync too. I don't know how fast you can do it, but I lowered the delay for the spinning wheel down to wait 5.
|