Forums

Topic: Petit Computer

Posts 7,821 to 7,840 of 9,621

Pixelrobin

@ramstrong @randomous where do you guys learn this stuff? Can I have a book,on generic programming methods?

@ramstrong Great to see you back! Heh. I REALLY need to continue work on ptc community :/.

Everybody do a chirp. CHIRP.

3DS Friend Code: 3007-9228-5126

twinArmageddons

now that the main gameplay of aottg is near complete, besides a few ai tweaks, i'm going to spend some time on aesthetics to make it look good. atm i added a falling animation for titans so they don't just disappear when they die, i added a short intro scene when you start a mission, and i added a few more attacks for the titans so you can no longer feel safe when near a titan d: because of these new attacks, playing in the forest with an npc has so much lag it's almost unplayable. i'm going to try doing what persson said and see if it makes it any better. i also worked on the colossal titan, and (spoiler alert) because he's actually just a titan shifter and not actually a titan it wouldn't make sense for him to just die so i made his human form appear and start running away and you have to capture him to win. on the wiki chat today, i noticed a lot of people complaining about the limited amount of swords and asking to make it infinite. i'm not going to do that because that would take away the challenge and easy is usually boring. if you want to use your swords without breaking them all right away, you have to start making your hits more accurate or it'll just wear out your blades. the only way you can kill a titan is with one hit to the neck. tl;dr not adding infinite swords. i was also thinking of adding deviant titans, but that would require more sprites and i still have to finish the other character sprites, and it would take a lot of coding and it would probably lag. i'm definitely going to attempt it though i'm also considering all (reasonable) suggestions that i get, so if you have any suggestions or requests just let me know.

get in loser we're going titan hunting

3DS Friend Code: 2879-0639-8952 | Nintendo Network ID: merp_aottg

ramstrong

Bluerobin2 wrote:

@ramstrong @randomous where do you guys learn this stuff? Can I have a book,on generic programming methods?

@ramstrong Great to see you back! Heh. I REALLY need to continue work on ptc community :/.

Nowadays, I use the Internet. Back before then, I used to just go to local University and buy books off their bookstore. Whenever I need more, I go to library and hit graduates' research papers. As long as I have the books, can link them to actual course numbers, I'm fine. It's not like they'll check your id unless you're checking out books and stuff. Time it during course registration period and no one cares.

Where is Morphtorok, anyway? I hope he didn't get Pokemon or we'll never get him back! Very addictive. It's the only game where I have withdrawal symptoms when not playing after a while.

EDIT:
Algorithms in C++ by Robert Sedgewick is a good generic all-purpose programming book. It's based on The Art of Computer Programming by Prof Donald E. Knuth. If you want game graphic specific, I can recommend Andre LaMothe's book. Or maybe Michael Abrash books. I hope I didn't just date myself. ^_^; But I can't find any good book of recent vintage. I'll have to hit man pages for SDL2.

@JLMan
Well, don't call it Pacman, then. Just call it, Odd Travellers in Mystery Maze or something.

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

Miblon

IAmAPerson wrote:

EDIT EDIT: @Miblon one equals sign (=) is used for assigning a value to a string/variable. Two equal signs (==) is for comparison.

I did that. For each direction, it assigns a number to variable DIREC like this:
@LEFT
code
code
code
DIREC=4
code
RETURN

And now I'm trying to get my character to slash, like this:
IF DIREC==4 AND BTRIG()==16 THEN GOSUB @SLASHLEFT
and it gives me a syntax.
Here's what I positively sure I have:
A @SLASHLEFT
The DIREC is assigned to a number
Two equal signs

Edited on by Miblon

This isn't a interesting signature. Go look at someone elses.
Friend Code: 5370-0889-8930

Discostew

Working on the fade-in/fade-out effect that happens in Quickman's stage (not available in any other stage). Plan is to make it an entity like everything else that (when entity comes into view) sets to either fade-out or fade-in the level. This will allow easy placement in the editor. Already have the Hot Head enemies deal with the fade-in/fade-out effect with the fire-like shade, but now I have to handle how to have both interact with each other.

Discostew

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

Miblon

JLMan wrote:

Miblon wrote:

IAmAPerson wrote:

EDIT EDIT: @Miblon one equals sign (=) is used for assigning a value to a string/variable. Two equal signs (==) is for comparison.

I did that. For each direction, it assigns a number to variable DIREC like this:
@LEFT
code
code
code
DIREC=4
code
RETURN

And now I'm trying to get my character to slash, like this:
IF DIREC==4 AND BTRIG()==16 THEN GOSUB @SLASHLEFT
and it gives me a syntax.
Here's what I positively sure I have:
A @SLASHLEFT
The DIREC is assigned to a number
Two equal signs

Try doing BTRIG(0). May not work, though.

Syntax Error!

This isn't a interesting signature. Go look at someone elses.
Friend Code: 5370-0889-8930

LeviCelJir

@IAmAPerson um If I were... um to have 2 or more slimes in MCDS and have some of them be different textures... how would I do that?

Hi I'm Levi and I like Bloopys :^)

Discostew

Miblon wrote:

JLMan wrote:

Miblon wrote:

IAmAPerson wrote:

EDIT EDIT: @Miblon one equals sign (=) is used for assigning a value to a string/variable. Two equal signs (==) is for comparison.

I did that. For each direction, it assigns a number to variable DIREC like this:
@LEFT
code
code
code
DIREC=4
code
RETURN

And now I'm trying to get my character to slash, like this:
IF DIREC==4 AND BTRIG()==16 THEN GOSUB @SLASHLEFT
and it gives me a syntax.
Here's what I positively sure I have:
A @SLASHLEFT
The DIREC is assigned to a number
Two equal signs

Try doing BTRIG(0). May not work, though.

Syntax Error!

BTRIG(0)==16 causes a syntax error. BTRIG()==16 does not.

Discostew

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

TAINT_Zzyex

he gave up on the community

"Did somebody say Aincrad?"
"No, go back to your own game!"
"awwww"
"And make out with Asuna."
"Aww-I mean YAY"

Twitter:

Miblon

TexMurphy wrote:

@Miblon
I don't like posting others qr code, but this comes from the late PetitProfessor. Don't know where he is now. It is a character that walks around the screen slashing with a sword when you push the A button.
Untitled

The problem is, I can't read QR codes. My outer camera is broken, and I plan on getting it fixed soon. Could you, if possible, give me the code for the program using Notepad or Word or something? It would be helpful.

This isn't a interesting signature. Go look at someone elses.
Friend Code: 5370-0889-8930

InsertPi

@Leviceljir is this what you're talking about? It's new in 1.8
Untitled

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.

3DS Friend Code: 2148-9259-0831 | Nintendo Network ID: IAmAPerson620 | Twitter:

ramstrong

Miblon wrote:

And now I'm trying to get my character to slash, like this:
IF DIREC==4 AND BTRIG()==16 THEN GOSUB @SLASHLEFT
and it gives me a syntax.

Well, I typed that line and it doesn't give me syntax error. Either you typed it wrong in your device, or the error lies somewhere else. I suggest you condense it to the smallest program possible, and give the exact error message. That means the type of error and line number. Whatever your error is, it's not that line.

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

randomous

@ramstrong I've finally gotten around to posting the information @Discostew posted earlier about the GRP file format on the Wiki, along with the extra information @Calc84maniac provided. I'll add some sample code later, but for now, it seems all right. Hopefully people can find this information easily now, and can make their own external GRP manipulators.

http://petitcomputer.wikia.com/wiki/GRP_File_Format_(External)

@Discostew If you feel like you need more credit on the Wiki page, please let me know! You provided all the information lol.

Edited on by randomous

randomous

ramstrong

randomous wrote:

@ramstrong I've finally gotten around to posting the information @Discostew posted earlier about the GRP file format on the Wiki, along with the extra information @Calc84maniac provided. I'll add some sample code later, but for now, it seems all right. Hopefully people can find this information easily now, and can make their own external GRP manipulators.

Excellent! I ought to print that page already. So, where'd you put the "sprite on touchscreen" info?

edit:
So, am I correct in assuming that this code will "unscramble" the data so that loading on PC will yield straight data?

ACLS
FN$="G0":'GRAPHIC FILENAME
LOAD "GRP1:"+FN$,0
PNLTYPE "OFF"

CX=0:CY=0
FOR J=0 TO 2:FOR I=0 TO 3
FOR Y=0 TO 7:FOR X=0 TO 7
FOR YY=0 TO 7:FOR X=0 TO 7

GPAGE 1
C=GSPOIT(CX,CY)
GPSET CX,CY,0
CX=(CX+1)%256
IF CX==0 THEN CY=CY+1
GPAGE 0
GPSET (I*64+X*8+XX),(J*64+Y*8+YY),C

NEXT:NEXT
NEXT:NEXT
NEXT:NEXT

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

Pixelrobin

@ramstrong It would be rather short...

SPPAGE 1
LOAD"SPU0:‹sprite sheet name here›"

Don't tell me you didn't know that!

Everybody do a chirp. CHIRP.

3DS Friend Code: 3007-9228-5126

ramstrong

Bluerobin2 wrote:

@ramstrong It would be rather short...

SPPAGE 1
LOAD"SPU0:‹sprite sheet name here›"

Don't tell me you didn't know that!

No, I didn't know that. As I remember it, the explanation was rather long. There's a note (p. 37) saying "User characters cannot be displayed on this screen" thing, so I never bothered to learn it. So, one page sprite is okay?

Also, I thought the name is SPS0: Is that right?
I've been using GPUTCHR instead, so I guess I'm ignorant in that respect.

Edit:
Just tried it. Here it is:

ACLS
PNLTYPE "OFF"
SPPAGE 1
LOAD "SPS0:CHRFILE"
SPSET 1,0,0,0,0,0
SPANIM 1,64,20,0
WAIT 6000

So, the pages are SPS0 and SPS1. You can use upto 117 characters.

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

Pixelrobin

@ramstrong sorry. Yes, its SPS0. I was tired :3

Everybody do a chirp. CHIRP.

3DS Friend Code: 3007-9228-5126

Pixelrobin

@IamAPerson did you find my terrain generator useful? Any gripes or compliments?

Everybody do a chirp. CHIRP.

3DS Friend Code: 3007-9228-5126

ramstrong

On second thought, this is to unscramble the pic so it goes straight to PC

ACLS
FN$="G0":'GRAPHIC FILENAME
LOAD "GRP1:"+FN$,0
PNLTYPE "OFF"

CX=0:CY=0
FOR J=0 TO 2:FOR I=0 TO 3
FOR Y=0 TO 7:FOR X=0 TO 7
FOR YY=0 TO 7:FOR X=0 TO 7

GPAGE 1
C=GSPOIT((I*64+X*8+XX),(J*64+Y*8*YY))
GPSET (I*64+X*8+XX),(J*64+Y*8*YY),0
GPAGE 0
GPSET CX,CY,C
CX=(CX+1)%256
IF CX==0 THEN CY=CY+1

NEXT:NEXT
NEXT:NEXT
NEXT:NEXT

WAIT 6000

EDIT:
No. This isn't right either. This stuff is giving me a headache. In the end, I forced the issue. I think the right method will scan it venetian-blind like, 8 steps at a time. It's too late, and I'm tired. Will try it again tomorrow.

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

Pixelrobin

@ramstrong I'm having trouble too. I'm programming pathfinding ai. And I have a SORT that doesn't want to sort.

Everybody do a chirp. CHIRP.

3DS Friend Code: 3007-9228-5126

Top

Please login or sign up to reply to this topic