Forums

Topic: Petit Computer

Posts 5,401 to 5,420 of 9,618

swordx

@Randomouse can you...erm....help me get the QR codes for Dungeon Adventure 1.1 onto the Wiki? Sorry for bothering you...

swordx

SmokedSausage

Soooo...uh i sorta accidentally deleted Petit Fantasy....
I hope nobody was looking forward to it but to redeem myself i am writing a small program its an RPG but its focusedon battle with unlimited waves!

Hi, I'm SmokedSausage and i like meemoos :^)

X:

boot

Hansausage wrote:

Soooo...uh i sorta accidentally deleted Petit Fantasy....
I hope nobody was looking forward to it but to redeem myself i am writing a small program its an RPG but its focusedon battle with unlimited waves!

0: Its ok the other game sounds cool. I always make a backup of my game (;

Just your average talking boot. FC: 0791-4881-1672 for Smash and Pokemon.

randomous

@swordx Yes, just send me an email with the stuff attached. Or use whatever method you like.

randomous

swordx

randomous wrote:

@swordx Yes, just send me an email with the stuff attached. Or use whatever method you like.

kk...I'll do it after this episode of Game Grumps. I watch it while I program. lol

swordx

Discostew

IAmAPerson wrote:

ramstrong wrote:

IAmAPerson wrote:

Or just
FOR I=C2 TO C1 STEP -1

We're talking about Morphtorok, here. I'm sure he knows that already, so I took it to the next step.

I always try my best to simplify...

And that's a good thing. The less work, the better. What I like to do is develop method that allow the least amount of processing to do things that normally would take longer. Take for instance this routine...

FOR I=0 TO CN:A=ARRAY(I+20):NEXT

It's a simple routine, but CN has to be examined each iteration, which means parsing the variable, then searching for it among the variable list that PTC creates each time. One could say if you went from CN to 0 with Step -1, that would help because instead of examining a variable, it examines a fixed number.

FOR I=CN TO 0 STEP -1:A=ARRAY(I+20):NEXT

Unfortunately, you've now messed with the STEP increment, so instead of it handling +1 internally, it now has to parse that section each time. Not only that, but now you're working in reverse, which means it might be a problem if you require it to be from low to high. You could change the data in the parenthesis to be flipped, resulting in...

FOR I=CN TO 0 STEP -1:A=ARRAY(40-I):NEXT

But that still ends up having to parse the STEP command. So, here's what I came up with to combat it.

FOR I=-CN TO 0:A=ARRAY(40+I):NEXT

This is likely the fastest method to handle the original method. It does require that additional negation, but that is checked only once for the entire loop, not each iteration. It counts from negative CN up to 0, so no additional parsing of STEP required (now done internally), and it checks 0, meaning no parsing a variable each time. The expression in the parenthesis also work from low to high.

[Edited by Discostew]

Discostew

Switch Friend Code: SW-6473-2521-3817

swordx

randomous wrote:

@swordx Yes, just send me an email with the stuff attached. Or use whatever method you like.

Alright, I just sent it after some testing. Thank you!!!

swordx

InsertPi

@Discostew can you help me with the raycasting engine of Minecraft DS? I need help with block IDs. I can't seem to get it to work. •cough• I'll give you credit •cough•

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.

X:

Discostew

IAmAPerson wrote:

@Discostew can you help me with the raycasting engine of Minecraft DS? I need help with block IDs. I can't seem to get it to work. •cough• I'll give you credit •cough•

I honestly don't have enough knowledge about your project and how it works to even know where to begin. Been working with my project for so long that it's all I can think of. General programming advice is one thing, but project-specific requests are another.

Discostew

Switch Friend Code: SW-6473-2521-3817

SmokedSausage

Awesome just finished the game i was working on because i deleted petit fantasy😥😰
It is called skill! Basically it is a very simple game similar to witch in a way but its an rpg with unlimited waves of enemies its actually pretty fun i will probably release it late tonight or sometime tomorrow!

Hi, I'm SmokedSausage and i like meemoos :^)

X:

InsertPi

Hansausage wrote:

Awesome just finished the game i was working on because i deleted petit fantasy😥😰
It is called skill! Basically it is a very simple game similar to witch in a way but its an rpg with unlimited waves of enemies its actually pretty fun i will probably release it late tonight or sometime tomorrow!

Did you see where I added ur FC? Add me plz (oh and you might wanna update your sig)

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.

X:

Arn0ld

Currently working on an action rpg called Night and Day, still learning SmileBAsic but I'm making decent progress. So far I'm making/finished a prolouge cutscene and the first battle. The game's story uses tloz like elements while playing like a kingdom hearts game if it were in 2D and made in the early 90's. Don't expect too much or anything anytime soon as I'm still learning the basic(pun intended) of SmileBasic, but I'm just saying I'm back on the forums and working on making something special.

Botw > OoT

SmokedSausage

IAmAPerson wrote:

Hansausage wrote:

Awesome just finished the game i was working on because i deleted petit fantasy😥😰
It is called skill! Basically it is a very simple game similar to witch in a way but its an rpg with unlimited waves of enemies its actually pretty fun i will probably release it late tonight or sometime tomorrow!

Did you see where I added ur FC? Add me plz (oh and you might wanna update your sig)

I did add you it says you are my friend?Ot doesnt show it for u?!

Any way i cannot release the qr's for Skill for a while because i have no access to a working computer...sorry guys but to show i'm not trolling i will be posting some screenshots

@Iamaperson My internet is being really crappy and will not connect to the servers for the friend app that may be why.

Hi, I'm SmokedSausage and i like meemoos :^)

X:

InsertPi

Hansausage wrote:

IAmAPerson wrote:

Hansausage wrote:

Awesome just finished the game i was working on because i deleted petit fantasy😥😰
It is called skill! Basically it is a very simple game similar to witch in a way but its an rpg with unlimited waves of enemies its actually pretty fun i will probably release it late tonight or sometime tomorrow!

Did you see where I added ur FC? Add me plz (oh and you might wanna update your sig)

I did add you it says you are my friend?Ot doesnt show it for u?!

Any way i cannot release the qr's for Skill for a while because i have no access to a working computer...sorry guys but to show i'm not trolling i will be posting some screenshots

@Iamaperson My internet is being really crappy and will not connect to the servers for the friend app that may be why.

Oh I see you now. Lol your message. #MCDS

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.

X:

ramstrong

Discostew wrote:

And that's a good thing. The less work, the better. What I like to do is develop method that allow the least amount of processing to do things that normally would take longer. Take for instance this routine...

FOR I=0 TO CN:A=ARRAY(I+20):NEXT
(snip)

I think you're confusing FAST with SIMPLE. In Morphtorok case, it goes from
IF C2>C1 THEN FOR I=C1 TO C2 ELSE FOR I=C2 TO C1
to
FOR I=C1 TO C2 STEP SGN(C2-C1)
which is very simple. One can argue that swapping variables is just as simple, but I fail to see how IAmAPerson solution is better.

Which brings me to your case. Have you timed all your alternative solutions? Because, I would think that this would be better:
LO=20:HI=LO+CN:FOR I=LO TO HI:A=ARRAY(I):NEXT
Well?

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

Let's just call a spade, a spade.

randomous

@swordx I'm sorry, I'm really busy right now. I'll get it up as soon as I can.

randomous

swordx

randomous wrote:

@swordx I'm sorry, I'm really busy right now. I'll get it up as soon as I can.

Kk, thank you!

swordx

InsertPi

ramstrong wrote:

Discostew wrote:

And that's a good thing. The less work, the better. What I like to do is develop method that allow the least amount of processing to do things that normally would take longer. Take for instance this routine...

FOR I=0 TO CN:A=ARRAY(I+20):NEXT
(snip)

I think you're confusing FAST with SIMPLE. In Morphtorok case, it goes from
IF C2>C1 THEN FOR I=C1 TO C2 ELSE FOR I=C2 TO C1
to
FOR I=C1 TO C2 STEP SGN(C2-C1)
which is very simple. One can argue that swapping variables is just as simple, but I fail to see how IAmAPerson solution is better.

Which brings me to your case. Have you timed all your alternative solutions? Because, I would think that this would be better:
LO=20:HI=LO+CN:FOR I=LO TO HI:A=ARRAY(I):NEXT
Well?

Often speed and simplicity go together. Take this for example:

FOR X=2 TO 10 STEP 2
GLINE X,(X+1)•2,Y,(Y+1)•2
GLINE X,(X+2)•2,Y,(Y+2)•2
NEXT

...and...

FOR X=1 TO 5
XA=X•2:XB=(X+1)•2:YA=(Y+1)•2
GLINE XA,XB,Y,YA
GLINE XA,XB+1,Y,YA+2
NEXT

Which one is faster? The second one. Which one is simpler? The second one.

[Edited by InsertPi]

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.

X:

ramstrong

IAmAPerson wrote:

Often speed and simplicity go together. Take this for example:

FOR X=2 TO 10 STEP 2
GLINE X,(X+1)•2,Y,(Y+1)•2
GLINE X,(X+2)•2,Y,(Y+2)•2
NEXT

...and...

FOR X=1 TO 5
XA=X•2:XB=(X+1)•2:YA=(Y+1)•2
GLINE XA,XB,Y,YA
GLINE XA,XB+1,Y,YA+2
NEXT

Which one is faster? The second one. Which one is simpler? The second one.

The first one is simpler. I have no trouble understanding it. The second one is confusing. I still don't get it after staring it for a while.

Aren't you missing Y loop? Can you give the timing values on these codes?

EDIT
Besides, neither is simple. Especially considering that the two code fragments do different things. I don't know what it is you're trying to do, but I'm sure there'll be a simpler way to do it.

[Edited by ramstrong]

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

Let's just call a spade, a spade.

Sorry, this topic has been locked.