I feel sick, I have been working on a program for forever, and the emtire thing was just deleted. I was really happy with it and was going to post a QR code for it tomorrow. 😵😵😵😵
DSiWare Forum
Topic: Petit Computer
Showing 621 to 640 of 2,793
| Author | Message |
|---|---|
|
621. Posted: Thu 27th Sep 2012 05:51 BST |
|
meng 😐 | |
| Author | Message |
|
622. Posted: Thu 27th Sep 2012 05:57 BST Oh wow I'm sorry to hear that. I usually try to save my "big" programs to the SD card every now and then to have back ups if I do anything stupid. On an unrelated note, I bought "Atari's Greatest Hits Vol. 2" for the DS some days ago, it comes with a lot of "Petit Computer-izable" game ideas I can't wait to try when my new stylus arrives... It also comes with a BASIC compiler that I can't understand at all lol, but I already have Petit Computer for that. Edited on Thu 27th September, 2012 @ 05:58 by Morphtorok |
|
Oh look! A Morphloggery. Oh, and a Morphsite too. 3DS Friend Code: 0173-1330-0080 | |
| Author | Message |
|
623. Posted: Thu 27th Sep 2012 06:02 BST I'm going to get on the soap box here for a while, please excuse me. We have a good, nay, a GREAT chance to make this forum THE place to be for Petit Computer. Can you tell me where else, on the internet, can you find good Petit Computer resource, that isn't in Japanese? I can't find any. The other forums are too fragmented, and not enough contributors. This forum is alive and well, especially since we have Morphtroid God of Petit Computer here with us. We have the chance to make this place a great place for everybody. But no one wants to wade through irrelevant posting to find their answer. It's bad enough that it took several postings for Cocobanana to post his code, which allows me to solve his problem in one post. Cocobanana still defaults to the post "It doesn't work". So does triotip. Which is false, and not at all contributing to the forum. Expect to see me say "It does work." because Petit Computer works. No one wants to see "It doesn't work" "It works" "No, it doesn't" "Yes, it does" repeated ad infinitum, yet here it is. Why does that happen? Why do people have trouble with the most basic stuff, and instead of admitting ignorance, just blame the tool? Look, if you have problem with something, you can ask, and I will answer, but not if your whole and complete post consists of "It doesn't work". POST YOUR CODE! But not your buggy program. Eliminate the problem, then WRITE A WHOLE NEW PROGRAM just to illustrate the problem in the simplest, easiest manner possible. No one wants to see 200 lines of buggy code, either. At the very least, be able to answer the question "At what point do you start having trouble?" Post the answer along with your question, because without it, I cannot help you. I cannot read your mind. Please help me make this forum great. Thanks, BTW, to Nintendo Life for hosting this forum. It this forum really takes off, that's quite a bit of bandwidth we'll be using! Anyway, please keep signal to noise ratio to a high level. To all newcomers here: Welcome! This is a friendly place where you will get help. PLEASE READ ALL THE POSTING IN THE TUTORIAL THREAD. It acts as FAQ, and that will answer most of the questions. Any other question, please use the search box. Most of your questions are already answered. You just have to find it. Then have fun! Computer programming is definitely fun. It makes you smart, and lets you have free games of your own design. Imagine that, a game made JUST FOR YOU! Thank you for reading. |
|
Petit Computer Journal 3DS Friend Code: 1091-7596-4855 | |
| Author | Message |
|
624. Posted: Thu 27th Sep 2012 06:11 BST Icebender7 wrote:
If you google "Petit Computer how to use buttons", you should see my blog where I did a lot of explanations on buttons and how they work. There's also a post on QR code thread on reading dpad/buttons. Look for @SETB5 subroutine. But if I read you right, I suggest that you abandon the dpad idea and just use A for OK, and B for CANCEL. It's cleaner and easier that way. |
|
Petit Computer Journal 3DS Friend Code: 1091-7596-4855 | |
| Author | Message |
|
625. Posted: Thu 27th Sep 2012 06:14 BST portealmario wrote:
Ouch! That must really hurt! I wish I can say "I know how you feel", but I don't. When my program gets accidentally deleted, it usually occurs in the middle, not the day before posting! And if I can have my way, that'll never happen again. I'm triple back up now. And all my stuff gets uploaded to the blog at earliest opportunity. |
|
Petit Computer Journal 3DS Friend Code: 1091-7596-4855 | |
| Author | Message |
|
626. Posted: Thu 27th Sep 2012 06:39 BST I do have a question to the group. Shall we start a new thread to act as Source Code repository? I like source codes. I think it gives people a chance to get familiar with the language effortlessly. I began by copying code into the computer. But so far, I'm the only one? Is there anybody beside me who wants to share code? Because if so, let's create that repository. Otherwise, I'm content with collecting them on my blog. |
|
Petit Computer Journal 3DS Friend Code: 1091-7596-4855 | |
| Author | Message |
|
627. Posted: Thu 27th Sep 2012 06:51 BST Well, you are free of creating any threads you want as long as they have a purpose that requires another thread. I say go for it. If TBD decides not to lock it, it means it's good. Maybe we could ask for a Petit Computer subforum to be created BTW, you should try editing your comments to merge them together, multiple posting is usually not cool. Edited on Thu 27th September, 2012 @ 06:53 by Morphtorok |
|
Oh look! A Morphloggery. Oh, and a Morphsite too. 3DS Friend Code: 0173-1330-0080 | |
| Author | Message |
|
628. Posted: Thu 27th Sep 2012 06:59 BST Morphtroid wrote:
I only do that if I post on a single subject. Multiple subjects gets multiple posting. I'm not about to combine Sprite's post with PortealMario's. And the source code forum post is supposed to be on soap box post, but my addled brain somehow missed it. Gah! Sorry! Edit: Edited on Thu 27th September, 2012 @ 13:56 by ramstrong |
|
Petit Computer Journal 3DS Friend Code: 1091-7596-4855 | |
| Author | Message |
|
629. Posted: Thu 27th Sep 2012 18:13 BST ramstrong wrote:
thx I'll use A for yes and B for no, until I get better Edited on Thu 27th September, 2012 @ 18:15 by Icebender7 |
|
Icebender7 | |
| Author | Message |
|
630. Posted: Thu 27th Sep 2012 18:55 BST So, I guess I will start a new project. Maybe there is an early version on the sd card. @ramstrong I am definately going to use that website, I have been trying to fiqure button use out for a long time, but when I see other people using it, it is too unfamilliar to recognize. |
|
meng 😐 | |
| Author | Message |
|
631. Posted: Thu 27th Sep 2012 18:57 BST @ramstrong I totally agree with your soapbox post Edited on Thu 27th September, 2012 @ 19:18 by portealmario |
|
meng 😐 | |
| Author | Message |
|
632. Posted: Thu 27th Sep 2012 20:52 BST Portealmario i feel so bad for you. I know what its like to lose all of your data. Mine was in a different circemstance so yours must feel 100 times worse. Hope ypu find a backup Edited on Thu 27th September, 2012 @ 21:44 by Sprite |
|
I'm not saying let's kill all the stupid people, I'm just saying let's take off the warning labels, and see what happens. Friend Code: 1075-1228-4183 | |
| Author | Message |
|
633. Posted: Thu 27th Sep 2012 21:34 BST Thanks @Sprite! |
|
meng 😐 | |
| Author | Message |
|
634. Posted: Fri 28th Sep 2012 11:49 BST Morphtroid wrote:
I acctually picked that up for those reasons, that it included the Atari 400 emulator as well as... Atari Basic Programming (12 lines with a comically named 'Keyboard controller'), but back to the Atari 400 I was a bit curious how easy/difficult it would be to translate Basic code for the Vic20/Coimmodore64 to it as uses a similar peek/poke system (although some minor language changes would be made of course). These sorts of collections are great places for inspiration though. My current project is currently inspired from Activision Anthology, which I should have some conceptual stuff up soon. Professor Layton was a pretty obvious inspiration for my first (as well as The 7th Guest), and some collections I could recommend to others are Atari Anthology and Intelivsion Lives. Failing those Morphtroid I WILL be expecting a Petit Computer version of Atari Basic Programming ;p (joking, of course) Edited on Fri 28th September, 2012 @ 11:49 by 81Rambler |
|
81Rambler | |
| Author | Message |
|
635. Posted: Fri 28th Sep 2012 15:48 BST So, I have another question. It's about the DIM command, and arrays. I just don't understand what they do. As in, the Petit Computer help automatically assumes I understand the word array. Would somebody oblige and explain to me the concept of an array and what it can be used for? |
|
Tingle | |
| Author | Message |
|
636. Posted: Fri 28th Sep 2012 17:54 BST @Rambler: I managed to do a little program with Atari Basic, but the terminal emulator really lacks some basic functions, like DPad support. To move around your code you need press a button combination every time you want to move a single space so it gets tiresome and boring, Petit Computer is clearly the superior choice. That doesn't means it's not fun to play around with though. It's fascinating in it's own historical kind of way. There are also tons of premade codes you can find online. The 2600 BASIC game is pretty bad though... I may need to read the 27-pages instruction book again if I want to get anything from that one. Wikipedia wrote:
|
|
Oh look! A Morphloggery. Oh, and a Morphsite too. 3DS Friend Code: 0173-1330-0080 | |
| Author | Message |
|
637. Posted: Fri 28th Sep 2012 18:51 BST @Morphtroid @Tingle The computer is just a bunch of numbers. A variable will occupy one of those numbers (or memory address). So, when you do something like A=10, that means somewhere in memory, say address#4532, it will have a value of 10. Also somewhere else, there will be an entry "&A=4532" <- this here is a pointer (indirection). An array is simply a bunch of variables together. An example would be a row of ducks, Solar panel arrays, string is an array of characters, etc. A lot of times, we want a group of variables to denote the same thing, with several different elements. Taking an example of ducks, we can say, "Shoot the 3rd duck from the left" which something like DUCK[2]=TRUE. 3 is the reference number. If we take memory address of DUCK is #3231, then DUCK[2] because array starts from zero. However, the computer will need to know how many DUCK variables are there, because, eventually, you want to put another variables after it. So, we use DIM, as in DIM DUCK[5], which means "Let there be 5 DUCK variables going from 0 to 4". BASIC takes care of the internal memory allocations so you don't have to worry about it. But you do need to declare how many elements an array have before it can be used. This is also why you can't resize the DIM because you'll be in danger of overwriting other variables. So, you CLEAR the memory first, before allocating variables using DIM. The nice thing about it is that we can use a variable as reference. That means we can do this: Why variable "I"? It's tradition, same as we use the term "Debug" when we mean correcting errors. "Debug" means getting rid of bugs, in this case a moth. The variable I is used as convention because in FORTRAN, variable I to N defaults to integer, and we use integers (as opposed to real) in loops. Edited on Fri 28th September, 2012 @ 18:53 by ramstrong |
|
Petit Computer Journal 3DS Friend Code: 1091-7596-4855 | |
| Author | Message |
|
638. Posted: Fri 28th Sep 2012 20:10 BST @ramstrong Brilliant explanation! Edited on Fri 28th September, 2012 @ 20:10 by portealmario |
|
meng 😐 | |
| Author | Message |
|
639. Posted: Fri 28th Sep 2012 21:05 BST Example of using Sprite Collision. Note that SPHITNO is set by the system automatically. ACLS:CLEAR @LOOP FOR SPNUM=1 TO MAXSP IF SPHIT(0) THEN GOSUB @FLING @FLING @MOVE |
|
Petit Computer Journal 3DS Friend Code: 1091-7596-4855 | |
| Author | Message |
|
640. Posted: Fri 28th Sep 2012 21:15 BST Just wondering, but does anyone here have any background in software development, or experience with programming other than BASIC? |
|
LittleKing |
- « Previous
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- Next »
I was wondering how to make the program ask yes or no, not by typing it in but by moving with the + pad and the A button, and then get different results depending on the answer using the GOTO command.
(jk, I highly doubt that would happen).