DSiWare Forum

Topic: Petit Computer

Showing 2,521 to 2,540 of 9,493

AuthorMessage
Avatar

Gimmemorecoinz

2,521. Posted:

VincentFaraday wrote:

VincentFaraday wrote:

I'm planning on making a program this summer that can solve differential equations by building onto my quadratic solver. I know that petit computer can't float very many numbers, but I thought that this would be a fun thing to do this summer. When it comes to math, I have finished Calculus and I have just finished a course on differential equations. If anybody here has an expertise in this area of programing/mathematics, then let me know. :]

I forgot to mention that the reason that I am going to build on my quadratic solver (which is on the qr sharing page) was so that I could use that program to find the roots of characteristic equations of certain DEs.

Wow you're picking one project to do? I've got atleast 12 lined up o.o but not all for petit computer and I'm constantly in over my head with trying to learn stuff xD

Got a project? PM ME on here!
Youtube: lostkitty64x
Want help with coding? PM ME! PM ME PM ME!! XD
FC: WIll post later.
Systems I own: ds lite, 3DS, PC/gaming, steam platform. I play alot of games. Just ask ! Minecraft anyone? :D

AuthorMessage
Avatar

randomous

2,522. Posted:

@VincentFaraday You know, I was planning on making a graphing application myself. One of the things I need in order to make it work a little more nicely is a DE solver. If you manage to make it work, it would be really cool if I could use it for the grapher.

randomous

AuthorMessage
Avatar

VincentFaraday

2,523. Posted:

randomouscrap98 wrote:

@VincentFaraday You know, I was planning on making a graphing application myself. One of the things I need in order to make it work a little more nicely is a DE solver. If you manage to make it work, it would be really cool if I could use it for the grapher.

Well, a DE solver won't help you graph anything, but it could save you some time when dealing with homogenous linear equations (which is what I want to work on first). I'm also interested making graphing software for petit computer, but as I am sure you know petit computer can't handle it when x>10^6 (I found this out when I wrote a program that could calculate factorials and the program crashed at 10!) and that it can't float very many numbers. In spite of all this it is possible to create a semi-decent graphing program. I thinks it's great that there is someone else out there that is working on math applications for this software. :)

I wish I was on the Enterprise.

3DS Friend Code: 1048-8460-1195

AuthorMessage
Avatar

randomous

2,524. Posted:

@VincentFaraday I was going to use the DE solver to calculate min/maxes for equations. What I want to be able to do is analyze an equation and try to best determine an appropriate range for it. Otherwise, the user would have to set a range for each equation. For instance, if I have:

y=sin(X)

VS:

y=17sin(x)

One of those is going to look ugly if the same range is used for both.

randomous

AuthorMessage
Avatar

VincentFaraday

2,525. Posted:

randomouscrap98 wrote:

@VincentFaraday I was going to use the DE solver to calculate min/maxes for equations. What I want to be able to do is analyze an equation and try to best determine an appropriate range for it. Otherwise, the user would have to set a range for each equation. For instance, if I have:

y=sin(X)

VS:

y=17sin(x)

One of those is going to look ugly if the same range is used for both.

Oh, I understand. You are planning on using the first derivative test to find max /min. Yeah, I can see how you would want a program that can calculate derivatives. If I can write a program that is fairly good at finding dy/dx I'd be glad to share it with you.

I wish I was on the Enterprise.

3DS Friend Code: 1048-8460-1195

AuthorMessage
Avatar

TexMurphy

2,526. Posted:

Vincent,
I have been trying to use the equation of an ellipse to create a rotating cube. Everything looks great but the left and right side should move out as it rotates. The equation is (x-h)^2/a^2 +(y-k)^2/b^2 = 1 where a>b. Solving for y in petit language you get: y=SQR(POW(B,2) - POW(B,2)*POW(I-H,2)/POW(A,2))+K. In petit, this equation in a For loop can throw alot of error messages if not set up correctly. My For loop range is not correct but it worked. H and K can be set to zero and handled outside of the equation.
Untitled

Edited on by TexMurphy

TexMurphy

AuthorMessage
Avatar

steriaca

2,527. Posted:

Eveyone. I think I am ready for my next 'text' game. I am thinking of calling it "Greedy". It is basicly a "Pac"ish maze game. Your man picks up "$" symbles while avoiding blue men (cops).

Only...I have no ideal about movement...exactly how to move charaters. Anyone know a good demo on movement inputs, and how to prevent a charater from moveing off the screen?

My Friend Code is 3368-1310-0690.

AuthorMessage
Avatar

boot

2,528. Posted:

I found a very fun game called hunt the wumpus! Its on the wiki

Just your average talking boot. The Boot that can program.

AuthorMessage
Avatar

Bluerobin2

2,529. Posted:

@Sterica, That would pretty much be a retextured version of pacman. Why not just try to port pacman?

Everybody do a chirp. CHIRP.

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

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

Bluerobin2

2,530. Posted:

Final Temple Raid will be realesed today soon. I am really proud of the sounds so please crank that volume up :).

Everybody do a chirp. CHIRP.

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

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

damolii

2,531. Posted:

Wow I have not been on in awhile...... my question will sound very noobish but there goes. I have a battle not unlike ones like pokemon, but I am having trouble with the random damage. When the first atk is unleashed, everything is fine. But then after that, two things occur. 1:After a certain number, the Hp wont go down anymore. 2: the Hp starts increasing. If you need to see some code, I would gladly offer it. Thank you.

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

AuthorMessage
Avatar

mystman12

2,532. Posted:

I'm trying to make a character keep moving when I hold a button down. I'm using the BTRIG command, but I have to press it over and over again to keep moving. So how would I loop the movement over and over?

I don't believe it! I won't believe it! There isn't a pinball right here! What kind of world do we live in, where there isn't a pinball right here? Well, I'm going to do my part! I'm gonna— umm... build a pinball! - Homestar Runner (Sort of)
Future Pinball blog
Infinite Office for PTC!

3DS Friend Code: 0259-0292-5888 | Nintendo Network ID: mystman12 | Twitter: mystman12

AuthorMessage
Avatar

Bluerobin2

2,533. Posted:

@mystman12 Use button
Code:
if button()==[number code here] then...
in between the button () things, you can specify what sort of button press you want. By default button(), It is zero but you can do things like button(2).
Here is what the numbers mean if I can remember correctly
0=If the button is pressed (or held down) at all
1=Returns true as soon as the button is pressed
2=Returns true if the button is pressed then released
3=Returns true if the button is released.
In your case, you want button(0) or button(). Hope I did not confuse you too much.
@damolii lets see that code.

Edited on by Bluerobin2

Everybody do a chirp. CHIRP.

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

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

mystman12

2,534. Posted:

@bluerobin2 Thanks a lot! That helped.

I don't believe it! I won't believe it! There isn't a pinball right here! What kind of world do we live in, where there isn't a pinball right here? Well, I'm going to do my part! I'm gonna— umm... build a pinball! - Homestar Runner (Sort of)
Future Pinball blog
Infinite Office for PTC!

3DS Friend Code: 0259-0292-5888 | Nintendo Network ID: mystman12 | Twitter: mystman12

AuthorMessage
Avatar

randomous

2,535. Posted:

@Gimmemorecoinz I'm sorry, I probably won't be able to make your song for a while. I've got to study for my finals next week.

randomous

AuthorMessage
Avatar

steriaca

2,536. Posted:

bluerobin2 wrote:

@Sterica, That would pretty much be a retextured version of pacman. Why not just try to port pacman?

A) Pac-Man is copyrighted, "Greedy" is not. I'm shure BandaiNamco is really protected about their copyright, especially considering what an icon Pac-Man is.

B) It has nothing to do with eating. It is more akin to "Lupen the 3rd" than that.

My Friend Code is 3368-1310-0690.

AuthorMessage
Avatar

Morphbug

2,537. Posted:

And again, I really doubt namco would really care about you making a pacman clone, even if they somehow do notice you (which is pretty unlikely) they would probably just say "eh" and move on.

Then again, it's your game and you are free to do anything you want with it.

Oh look! A Morphloggery.
Oh! eShop Gurus.

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

AuthorMessage
Avatar

Bluerobin2

2,538. Posted:

actually, Temple Raid started as a port of pac-man but I realized that if I make up my own gameplay, I have a lot more freedom. In fact the program is still called 'pacman' on my 3ds not 'tempraid'. 'tempraid' is like a backup.

Everybody do a chirp. CHIRP.

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

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

randomous

2,539. Posted:

Since I won't be able to work on Village for a while, I figured that I'd post another demo on the off chance that anybody actually wants to try it out. I mean, I don't expect anyone to actually want to try out a 38 QR code unfinished game, but I want to put this here anyway: http://db.tt/53xhb7Fw

Here's what you can do so far:
-Enter your name and village name
-Generate a new village with your house and a shop (along with trees/flowers/weeds)
-Walk/Run around your village (hold B to run)
-Pick/move flowers and pull weeds
-Pick fruit off trees
-Trees regrow fruit in 2 days
-Weeds grow every day
-Sell anything at the shop
-Buy anything at the shop
-Shovel is a working item: dig holes, plant fruit/new tree seeds. Trees take 4 days to grow. Use the shovel to obtain otherwise unobtainable weeds.
-Other colors of trees sell their pickings for 10X regular fruit selling price
-Place statues/benches/lamposts/rocks around town. When the hammer works, you can use the hammer to reclaim these items.

randomous

AuthorMessage
Avatar

damolii

2,540. Posted:

@bluerobin2 here is my codes without the sprite parts of it.. this is going to be long cuz I am lazy :(
ACLS
HP=100
HPE=100
@START
WAIT 100
ACLS
SYSBEEP=FALSE
"MOST OF THIS IS SPRITE FUNCTIONS SO I WILL NOT BOTHER"
@FIRE
SPPAGE 0
SPSET 6,41,0,0,0,0
SPOFS 6,0,50
SPOFS 6,200,45,45
GOTO @ETURN
@ETURN
WAIT 20
HP=100
HPE=100
"HERE'S THE PROBLEM
IF SPHITSP(6,7) THEN HPE=HPE-10-RND(5)-RND(5)
IF SPHITSP(6,7) THEN HP=HP-10-RND(5)-RND(5):GOTO @START
GOTO @ETURN

On the first atk, it works fine, but after that it starts gaining Hp. Thanks for looking into my question. and bluerobin2, do you remember when you said you found a way to make circular movements. Tell me more....

Btw, to everyone, does anyone need music in their game. I have recently made a minecraft music demo, and if anyone would like some music in their game, I would be happy to help.

Edited on by damolii

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