Would anybody care if I reused the felt pattern from Solitaire for Othello? I really like it lol.
Oh yeah, a fun tidbit (well, I think it's fun): the felt background in the two Solitaire games is randomly generated each time you start the game. That means you could see different patterns each time you play! That is, if you're into looking at the patterns in backgrounds lol.
There are no real prizes, just virtual badges for the Wiki, so it's all a bit of fun, but it would still be nice to be appreciated by fellow PTC users. Positive and critical feedback encourages future growth.
So, please scan in Drench, have a play and vote for it.
Would anybody be interested in Othello/Reversi on Petit Computer?
Humm... Yes, that would be a nice program.
Other games waiting to be writen, but as of yet not, are:
Blackjack
Poker
War (the card game)
Clock (the solitar game)
Camp Blood (the card game, rules fleshed out based on the rougth rules told in a Friday the 13th movie)
(snipped)
And I've got a question of my own! I've been trying to copy a PTC file from my SD card to my computer, code it on the computer, and then use PTC Utilities to generate QR codes, scan those in, and test it. A) Is there a better way to do it? B) The QR codes keep cutting off the last bit of code. What can I do to fix this?
Can somebody please answer my questions? Also, why can't I put capital letters in PTCUtilities' PRG Editor?
And don't forget schoolwork. It consumes time, that's why I can't work on Apocalypse Rising immediately when I get on sometimes.
I need shooting, and Trinitro21 on GameFAQs helped me, but my inexperience doesn't allow me to translate this nor understand...
GameFAQs Flashback:
Apocalypse Rising is actually nearly done, yesterday I implemented basic walking. I still need to animate it, but that's fine. I need SHOOTING, and I remembered how to do that, but the information doesn't come to mind at all...
I needed some assistance, so I decided to make a thread for help instead of making a thread for every problem I run into.
So shooting. How do I do that again...?
You'd have a 2D array to store the bullets' data(if it exists, x, y, direction). Then you'd have a subroutine to go through all the bullets, check if they exist, change their x values, and offset them. To shoot, go through the array, find a blank spot, assign the correct values, and set the sprite.
A) PTC Utilities is so unstable that coding anything with it will likely take you more time than actually doing it on your actual system, plus it's impossible to test in PTC so you might as well get used to using PTC itself.
B) Add extra REM statements at the end of your code, maybe?
C) Because PTC Utilities really isn't a great editor. It's so buggy that other than for using it to create QRS it's pretty much useless.
B) Add extra REM statements at the end of your code, maybe?
I completely agree. But why would it do that in the first place?
Anyhow, Carrot OS 0.2 is out in a few minutes. It's not very much changed from 0.1 on the outside but it's got a bit of a plugging-in API. Details in the QR post.
Why can't I put capital letters in PTCUtilities' PRG Editor?
It was coded for the Japanese, so it doesn't recognize shift+letter. You can copy and paste from notepad, wordpad, etc. but it's pretty unstable so try to do that only when using quotes, since commands are autocapitalized when run, and save often.
If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.
They are definitely sprites, but are manually enlarged from 16x16 to 64x64, copying into the last couple of sprite slots (since each 64x64 sprite frame takes up 1/4 of a slot). The sprites themselves can then be scaled up via SPSCALE, allowing up to double their original size before sprite clipping occurs (though sprite clipping can occur when rotating them).
Oh, I thought I remembered it using gputchr to enlarge the sprites.
Edit: nevermind
@Ralph I typically use GPUTCHR for text that i want to use a graphic coord instead of LOCATE, I want it bigger or smaller, or I want to change spacing.
GPUTCHR X coord,Y coord,type of CHR,numerical value,color,scale
For text, I'd do:
TEXT$="How are you?"
FOR I=0 TO LEN(TEXT$)-1
GPUTCHR I*10,(y coord),"BGF",ASC(MID$(TEXT$,I,1)),0,1
NEXT
If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.
new profile pic.
Also anyone know a good large map editor without using r/l sort of like scred but bigger?
also anyone who plays clash of clans join ptc users.
"Did somebody say Aincrad?"
"No, go back to your own game!"
"awwww"
"And make out with Asuna."
"Aww-I mean YAY"
If sphit(0,2)!=true then goto @loop Else goto @d Return
Gives an error. Whats false?
first off, dont add the RETURN at the end. try that. i dont completely know how sprites work
If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.
If sphit(0,2)!=true then goto @loop Else goto @d Return
Gives an error. Whats false?
Could you please tell us what the error says? just by looking at the code, I could guess a few things.
If you do have a sprite using index 0, then it will likely case an error.
The "Return" statement at the end is another possible error. Because GOTO goes directly to another label without ever coming back, the "return" will never be executed. Not exactly an error, but if you are wanting it to come back to this point of execution, then the GOTO needs to be a GOSUB. But, as afar as errors are concerned, because you are not separating the two statements with a ":", the interpreter will think it is all one statement rather than separate statements, and will probably bring up with an error.
Discostew
3DS Friend Code: 4425-1477-0127 | Nintendo Network ID: Discostew
I have a question. (Rare I ask these.) What's faster? IF statements or math. Example: is it faster to do:
IF BUTTON() AND 16 THEN X=X+1
or is it faster to do:
X=X+1*(BUTTON() AND 16)/16
I try as hard as I can to avoid IFs and use math instead. Is this the best and fastest method? Or is there a better way? While I'm at it, one more question. Is it faster to use a series of IFs or ON? I don't know, since ON requires a GOTO/GOSUB.
If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.
Forums
Topic: Petit Computer
Posts 7,001 to 7,020 of 9,620
Please login or sign up to reply to this topic