DSiWare Forum

Topic: Petit Computer

Showing 2,681 to 2,700 of 9,296

AuthorMessage
Avatar

MrSirr

2,681. Posted:

TexMurphy wrote:

@MrSirr
This should get you started. Note: I did not use SPCLR in this example. This bit of code demonstrates moving sprites and collision.
Untitled

I have a question. What does the Initialize Variable part mean? X=15*8: Y=20*8
LNX1=22*8
LNX2=0

MrSirr

AuthorMessage
Avatar

Linput

2,682. Posted:

Hey, lib put here. Just been focusing on school work lately. Anyways, anyone want to help me make SALLY OS any better?

Linput-3DS friend code: 4725-8494-2702
Pokemon White 2 pal-pad code: 1979 9213 55

I'm currently looking for some peeps to make SALLY a website, facebook, and email. If anyone does this u will be mentioned as a producer in the SALLY OS credits! :)

AuthorMessage
Avatar

steriaca

2,683. Posted:

I haven't posted in a while. Basicly, right now I got tons of ideals for non-text games, and waiting for a pay period where I get lot of cash, and I don't have to dedicate most of my free cash. Why? So I can pick up one of the e-books about petit computer.

My question is...which version should I get for my black and white Nook? The Android one? The other one? Defently not the PC version of the e-book.

My Friend Code is 3368-1310-0690.

AuthorMessage
Avatar

justlink

2,684. Posted:

hi. I have returned. I am wondering, how do you save and reload numbers for a certain variable. I'm working on a program (tba l8r). Plz help. The reason i haven't been on is because of school. :(

justlink

AuthorMessage
Avatar

randomous

2,685. Posted:

@TexMurphy Well thank you! And I was just kidding about the stitcher haha. There's a bunch of music programs here: http://petitcomputer.wikia.com/wiki/Category:Applications . I think one of those (Petit Composer) does exactly that, so I'd rather not reinvent the wheel.

@justlink Loading and saving to a variable? Just a variable?

Saving:
MYVAR = 8

Retrieving:
PRINT MYVAR
OTHERVAR=MYVAR
etc...

randomous

AuthorMessage
Avatar

Bluerobin2

2,686. Posted:

@justlink...

Saving
SCORE=0
-SCORE UPDATE, GAME STUFF, BLAH BLAH-
HISCORE=SCORE
MEM$=STR$(HISCORE)
SAVE "MEM:NAMEHERE"

Info
•mem$ is the loading + saving string
•str$ turns a variable into a string
•Using save (mem) will save the contents of the mem$ string to a mem file.

Loading
(Put near beginning)
LOAD "MEM:NAMEHERE"
HISCORE=VAR(MEM$)
etc...

More Info
•During saving a variable, If it is a high score, you may want to do something like this to the saving code:
IF SCORE>HISCORE THEN SAVE"MEM:NAMEHERE"
•var turns a string into a variable

Hope it helps! Good luck!

Houston, We have a Syntax Error.

Blog: bluerobin2.blogspot.com
Backloggery: backloggery.com/bluerobin2

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

Bluerobin2

2,687. Posted:

I have tried and failed use of sphome. I know what it does but cannot make it cooperate. Could anyone supply an instance?

Houston, We have a Syntax Error.

Blog: bluerobin2.blogspot.com
Backloggery: backloggery.com/bluerobin2

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

ramstrong

2,688. Posted:

steriaca wrote:

I haven't posted in a while. Basicly, right now I got tons of ideals for non-text games, and waiting for a pay period where I get lot of cash, and I don't have to dedicate most of my free cash. Why? So I can pick up one of the e-books about petit computer.

My question is...which version should I get for my black and white Nook? The Android one? The other one? Defently not the PC version of the e-book.

I don't know. I'm still waiting for it to come to Amazon for my Kindle.

@bluerobin2
I think my Asteroid program uses it. Look for it under Petit Computer Journal. Have you tried rotating sprites after you do SPHOME?
Edit: Petit Computer Journal: Trigonometry

I think I need to ease off my Fire Emblem Awakening. It's been pushing 100 hours so far. I could have written a few programs for that kind of time!

Edited on by ramstrong

Petit Computer Journal
Old site http://ramstrong.blogspot.com

Let's just call a spade, a spade.

3DS Friend Code: 1091-7596-4855

AuthorMessage
Avatar

MrSirr

2,689. Posted:

ramstrong wrote:

steriaca wrote:

I haven't posted in a while. Basicly, right now I got tons of ideals for non-text games, and waiting for a pay period where I get lot of cash, and I don't have to dedicate most of my free cash. Why? So I can pick up one of the e-books about petit computer.

My question is...which version should I get for my black and white Nook? The Android one? The other one? Defently not the PC version of the e-book.

I don't know. I'm still waiting for it to come to Amazon for my Kindle.

@bluerobin2
I think my Asteroid program uses it. Look for it under Petit Computer Journal. Have you tried rotating sprites after you do SPHOME?
Edit: Petit Computer Journal: Trigonometry

I think I need to ease off my Fire Emblem Awakening. It's been pushing 100 hours so far. I could have written a few programs for that kind of time!

wow

MrSirr

AuthorMessage
Avatar

Discostew

2,690. Posted:

Bluerobin2 wrote:

I have tried and failed use of sphome. I know what it does but cannot make it cooperate. Could anyone supply an instance?

Think of SPHOME as a second adjustment for the sprite. You use SPOFS to position the sprite on the screen, but you can use SPHOME to additional offset the sprite from the position given to SPOFS, though this offset is the negative of what you give it. SPHOME also changes the point of rotation for the sprite.Think of it like this.

You generate a sprite of 16x16. When created, the SPOFS is set at 0,0. SPHOME is also set at 0,0. This means the point of origin is at the top-left corner of the sprite, and the sprite itself is displayed at the top-left corner of the screen. If you rotate the sprite like this, you'll see it rotates along that top-left corner, but can rotate in and out of view of the screen. If you set SPHOME to 8,8, the sprite shifts to the left 8 pixels and 8 pixels up. Based on the SPOFS still being at 0,0, you'll only see the bottom-right section of the sprite. Setting SPOFS to 8x8 will now show the sprite fully at the top-left corner of the screen as if SPOFS and SPHOME were set to 0,0. So, what's the point? Well, now try to rotate the sprite. Instead of rotating along the top-left corner, it now rotates in the exact center of the sprite.

Hope that gives you an idea of what you can do with SPHOME.

"What fun is there in making sense?"
Lazer Light Studios - Home of the MM2 PTC project

Pokemon 3DS Friend Safari - Ice - Spheal, Sneasel, Lapras

3DS Friend Code: 4425-1477-0127 | Nintendo Network ID: Discostew

AuthorMessage
Avatar

randomous

2,691. Posted:

I made a new version of QuikNote over on the QR code thread. What's funny is that I actually used the program while it was in development to draw the plans for the rest of the features. I wonder if the makers of paint and other applications like this did the same thing? Like writing the code for Notepad... on an unfinished version of Notepad haha. I'm sure they did.

Edited on by randomous

randomous

AuthorMessage
Avatar

MrSirr

2,692. Posted:

http://imageshack.us/a/img13/6375/qr0.png
http://imageshack.us/a/img203/596/qr1.png

Ok so I'm doin really good on my game. Its a simple car dodge game like frogger only its solely a survival game. Now if you time it just right, you can just go in circles and avoid the cars easily. Can someone give me a suggesion to fix it? Thanks. P.S. I got the idea from Car Accident, so credit to the creator.

EDIT: You might need this:

http://imageshack.us/a/img832/3692/qr0z.png
http://imageshack.us/a/img802/596/qr1.png
http://imageshack.us/a/img21/8189/qr2.png
http://imageshack.us/a/img716/8813/qr3f.png

Edited on by MrSirr

MrSirr

AuthorMessage
Avatar

Bluerobin2

2,693. Posted:

@Discostew thank you.

Houston, We have a Syntax Error.

Blog: bluerobin2.blogspot.com
Backloggery: backloggery.com/bluerobin2

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

MrSirr

2,694. Posted:

randomouscrap98 wrote:

I made a new version of QuikNote over on the QR code thread. What's funny is that I actually used the program while it was in development to draw the plans for the rest of the features. I wonder if the makers of paint and other applications like this did the same thing? Like writing the code for Notepad... on an unfinished version of Notepad haha. I'm sure they did.

lol dude thats freakin awesome

MrSirr

AuthorMessage
Avatar

randomous

2,695. Posted:

@MrSirr Wow, thank you so much!

randomous

AuthorMessage
Avatar

MrSirr

2,696. Posted:

randomouscrap98 wrote:

@MrSirr Wow, thank you so much!

No problem lol, thats a genius idea, and I think those other people shouldve done that (if theyre smart)

MrSirr

AuthorMessage
Avatar

MrSirr

2,697. Posted:

anybody have any suggestions? I actually gave u a program this time!

MrSirr

AuthorMessage
Avatar

steriaca

2,698. Posted:

ramstrong wrote:

steriaca wrote:

I haven't posted in a while. Basicly, right now I got tons of ideals for non-text games, and waiting for a pay period where I get lot of cash, and I don't have to dedicate most of my free cash. Why? So I can pick up one of the e-books about petit computer.

My question is...which version should I get for my black and white Nook? The Android one? The other one? Defently not the PC version of the e-book.

I don't know. I'm still waiting for it to come to Amazon for my Kindle.

Honestly, I don't think it will show up on the Amazon shop (heck, I know it will not be avalable at the Barns And Noble e-shop eather). The pdf file must be bought directly from the suplyer (link on the american english Petit Computer site).

My Friend Code is 3368-1310-0690.

AuthorMessage
Avatar

Bluerobin2

2,699. Posted:

Could someone point me towards some basic (pardon the pun) mml? I can play the music using DATA and BGMPLAY and BGMSETV but, I do not fully understand what to put into the DATA segments. I was able to make a standard "do ra mi" but that's about it. All I know about that is that you can use c-b and then ‹c› for a higher c. What do I use for a pause? What do I use for lower notes? HELLP PLEASE!
@randomouscrap98?
Oh yeah, Btw, ive adapted yiour text wrap program for my game. Credit will be given. Thank you for the awesome example!

Houston, We have a Syntax Error.

Blog: bluerobin2.blogspot.com
Backloggery: backloggery.com/bluerobin2

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

MrSirr

2,700. Posted:

Bluerobin2 wrote:

Could someone point me towards some basic (pardon the pun) mml? I can play the music using DATA and BGMPLAY and BGMSETV but, I do not fully understand what to put into the DATA segments. I was able to make a standard "do ra mi" but that's about it. All I know about that is that you can use c-b and then ‹c› for a higher c. What do I use for a pause? What do I use for lower notes? HELLP PLEASE!
@randomouscrap98?
Oh yeah, Btw, ive adapted yiour text wrap program for my game. Credit will be given. Thank you for the awesome example!

U have 2 know about musicn notes. Im in band so I know. You have to put a number after the note. 8 makes it an eighth note, 16 a 16th, 4 is a quarter note, 2 is a half note and i think one is a whole note. whole note is 4 counts, half note two counts, so on. hope this helps.

Also type an R whenever to rest which is one count.

Edited on by MrSirr

MrSirr