DSiWare Forum

Topic: Petit Computer

Showing 3,101 to 3,120 of 9,304

AuthorMessage
Avatar

Discostew

3,101. Posted:

damolii wrote:

P.S: I need to find out what format or pixel count Petit Computer uses for sprites. thank you!!

They use 4-bit paletted. BGs and sprites have access to 16 rows of 16 colors each (actually 15 colors + 1 for transparency). The console/panel take from the BG palette. Writing to the CHR sections is done by 64-character strings that make up an 8x8 pixel block each, so 8x8 is the smallest size for any graphic cell. Each pixel in the string ranges from "0" to "F". Sprites, however, can only access on boundaries of 16x16. Sprites use a sequential list to form bigger sprites up to 64x64 pixels, so if you defines a 16x32 sized sprite, and had its source index to 0, it would read from index 0 to index 7 and display it like so...

0, 1
2, 3
4, 5
6, 7

If you had the source set at 1, it would offset by multiplying it by 4 (because 4 8x8 blocks make up a 16x16 block), so it would do it like this...

4, 5
6, 7
8, 9
10,11

Edited on by Discostew

"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

damolii

3,102. Posted:

@Discostew thank you Discostew. Very much appreciated.

I don't have a 3DS so what do I put here? -Damolii

AuthorMessage
Avatar

Bluerobin2

3,103. Posted:

@Nitras what should I troubleshoot?

Houston, We have a Syntax Error.

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

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

bigdog00

3,104. Posted:

http://www.mediafire.com/?wvxtvqacabrpuac
You must install Pygame (from pygame.org) and python 2.x (from python.org).
This is the recreation of CincOS., but better.
If you have any .png, .jpg, or .jpeg files on your desktop, it loads them all. It only works for Windows at the moment, so only execute the one that says "Jupee_GUI_Windows.py". Thanks!

I like petit computer! Asphault 3d is awesome!

3DS Friend Code: 0473-8697-6288 | Twitter: bigdogdt

AuthorMessage
Avatar

Nitras

3,105. Posted:

Bluerobin2 wrote:

@Nitras what should I troubleshoot?

Mostly just the fact that parts of some of the sprites mysteriously disappear when you zoom out (B button). Also, any comments or thoughts you have would be welcome.

Nitras

AuthorMessage
Avatar

Bluerobin2

3,106. Posted:

@Discostew @ranstring ah, I see... Thanks.

I have also wondered, Is it needed to assign BUTTON() to a variable? Pretty much all the programs I saw use BT=BUTTON(). Why not just use IF BUTTON()==16 THEN BLAH?

Houston, We have a Syntax Error.

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

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

Discostew

3,107. Posted:

Bluerobin2 wrote:

@Discostew @ranstring ah, I see... Thanks.

I have also wondered, Is it needed to assign BUTTON() to a variable? Pretty much all the programs I saw use BT=BUTTON(). Why not just use IF BUTTON()==16 THEN BLAH?

The reason for assigning BUTTON() to a variable is so you have access to that state throughout an entire frame as it can change within it. Take for instance BUTTON(2), which returns what buttons were instantly pressed. If you called BUTTON(2) again right after, or any time afterwards, the likelihood of it returning the same state as the first call is unlikely because the buttons were not instant in that second call. So why is this a problem? As an example, take these series of lines.

IF BUTTON(2) AND 16 THEN yaddayaddayadda
IF BUTTON(2) AND 32 THEN doobedoobedoo

This would not work well because you could have the B button (32) pressed during the first line, meaning the second line won't run its course. If you assigned BUTTON(2) to a variable, and used the variable in the IF statements, you'll get the result you're looking for. Even BUTTON(0) is affected by this, as you may end up releasing a button before the frame ends. Another example

IF BUTTON(0) AND 16 THEN yaddayaddayadda (which takes up the entire 100 characters on the line, but you have more to assign)
IF BUTTON(0) AND 16 THEN yaddayaddayadda (which sets everything that couldn't be fit in the first line)

This scenario would not work in the instance where the button is released right after the first BUTTON(0) is examined, because that can happen. The set up is meant for both to execute, or neither. By using a variable to hold the state, you can follow through with both lines.

I hold that helps.

"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

ChangeV

3,108. Posted:

Nitras wrote:

Bluerobin2 wrote:

@Nitras what should I troubleshoot?

Mostly just the fact that parts of some of the sprites mysteriously disappear when you zoom out (B button). Also, any comments or thoughts you have would be welcome.

that's limit of petit computer's scaled sprite engine.

here is quick test for petit computer sprite flicker(disappearing scaled sprites)
Untitled

here is more info about hardware sprite and number of sprite on scanline.
http://en.wikipedia.org/wiki/Sprite_%28computer_graphics%29

ChangeV

AuthorMessage
Avatar

Bluerobin2

3,109. Posted:

@Discostew Thanks yet again! Temple Raid Deluxe will be released soon. I will cease work on it as of now for it has gotten to the point where I have nightmares about it. I will just quit programming that thing :p.

Houston, We have a Syntax Error.

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

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

bigdog00

3,110. Posted:

Has anyone tried that new GUI? Is it better than CincOS? or not yet?

I like petit computer! Asphault 3d is awesome!

3DS Friend Code: 0473-8697-6288 | Twitter: bigdogdt

AuthorMessage
Avatar

bigdog00

3,111. Posted:

Sorry, I may make my own thread somewhere to talk about that. Here isn't the place, I know.

I like petit computer! Asphault 3d is awesome!

3DS Friend Code: 0473-8697-6288 | Twitter: bigdogdt

AuthorMessage
Avatar

Discostew

3,112. Posted:

ChangeV wrote:

Nitras wrote:

Bluerobin2 wrote:

@Nitras what should I troubleshoot?

Mostly just the fact that parts of some of the sprites mysteriously disappear when you zoom out (B button). Also, any comments or thoughts you have would be welcome.

that's limit of petit computer's scaled sprite engine.

here is quick test for petit computer sprite flicker(disappearing scaled sprites)
Untitled

here is more info about hardware sprite and number of sprite on scanline.
http://en.wikipedia.org/wiki/Sprite_%28computer_graphics%29

To add to this, this is actually a limitation of the DS/i hardware. The hardware is only capable of 32 rotatable/scalable 2D sprites per screen. They couldn't use the 3D hardware because everything done with the 3D hardware is written to a single 2D layer, preventing the use of priority against other 2D layers on an individual sprite basis.

"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

Bluerobin2

3,113. Posted:

@bigdog00 honestly, I don't feel like downloading all of those libraries. On the other hand, CincOS was great, but not very original. You should think of something brand new that nobody has ever seen before. Kind of like Windows 8. Next, if you would like to make a real OS, Search Tinkernut OS on youtube. Tinkernut uses C but this might be done with other languages. If that is too complicated now, try writing off the linux platform like Chrome OS did.

Houston, We have a Syntax Error.

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

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

bigdog00

3,114. Posted:

@bluerobin2 Thanks! We have a few original ideas up our sleeves, @hamjam00 and I do. Also, you only have to install 2 things, pygame and python2. 3rd, I am learning C/++, and fourth, I am at the time of this message working on a new original thing to go into the OS. I will post the link to a new thread somewhere else soon.

I like petit computer! Asphault 3d is awesome!

3DS Friend Code: 0473-8697-6288 | Twitter: bigdogdt

AuthorMessage
Avatar

damolii

3,115. Posted:

I'm having a little trouble with my Explor-A-World, and it is because of sprites. 1: Would anyone mind making a few medieval ones for me, please. it would be appreciated. 2: I am using background scrolling (not Discostew's, a much easier version that works), and I'm having trouble with making it look like the npc's are moving also. How would I pull that effect off??

P.S: I can add my codes if needed.

Edited on by damolii

I don't have a 3DS so what do I put here? -Damolii

AuthorMessage
Avatar

Moorpheel

3,116. Posted:

The default sprites that come with the app are all pretty medievalish, why don't you try these?

Edited on by Moorpheel

Moo

Oh look! A Morphloggery.
Oh! eShop Gurus.

3DS Friend Code: 0173-1330-0080 | Nintendo Network ID: Abgarok

AuthorMessage
Avatar

damolii

3,117. Posted:

@Morphtorok true, the witch, wizard, and bones are nice, but I would like to add a king, and maybe a royal adviser that's actually a monsters disguised as a human XD. I am using the default ones for my early developing though. Sorta like place-markers.

I don't have a 3DS so what do I put here? -Damolii

AuthorMessage
Avatar

Hairmanban19

3,118. Posted:

Xtremetdifan wrote:

Im making an action rpg game sorta like kingdom hearts but with 2d sprites but Im still learning smilebasic so it may take a while. I think randomous made a loz song, how do I put it in edit not console mode and make it play? As for the tutorial website, how about P.T.C Community?

I thought you were making a Sonic game?

Nintendo ID: Hairmanban19. Working on a secret PTC project... If you're wondering why the knight in my profile pic has a shovel, here is the explanation: http://yachtclubgames.com/shovel-knight/

3DS Friend Code: 3136-7615-5907

AuthorMessage
Avatar

Bluerobin2

3,119. Posted:

@bigdog00 please put it in a .zip file next time :)

Houston, We have a Syntax Error.

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

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

Bluerobin2

3,120. Posted:

Honestly. We need to decide on a finsl name before I start creating the final website. Something simple, but catchy we could all agree on.

Houston, We have a Syntax Error.

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

3DS Friend Code: 3007-9228-5126