http://calcg.org/newlogo2.png Not Logged in.
Login | Register

General Discussion Board \ Calculator Discussion \ Another Active Topic

Click here to log in (you must be logged in to post comments).

AuthorComment
haveacalc
Guardian
avatar
Posted: 26 Jul 2006
21:07 GMT
Total Posts: 1111
Only because it was mentioned.

So, anyone have plans for what they're programming this summer?

---
-quoted directly from most movies that don't exist (and some that do).
allynfolksjr
Administrator
avatar
Posted: 27 Jul 2006
06:44 GMT
Total Posts: 1892
<.<
Zachary940
Wraith
avatar
Posted: 27 Jul 2006
08:13 GMT
Total Posts: 714
Well I have nothing that I am planning to work on but you never know some thing may pop up.

---
It is much easier to suggest solutions when you know nothing about the problem.
mechatech84
Dragoon
avatar
Posted: 27 Jul 2006
19:29 GMT
Total Posts: 96
I'm doing that contest by TIFreak so I can't tell anyone..... not you... or you... not anyone!!!!!!!!!!!!!



P.S. Muhahahahahahahahahahahahahahahaha :alien:

---
My personal (unofficial) records on 3x3x3 Rubik's Cube: regular-24.06 sec, one-hand-50.67, with feet-5:40, number of people taught (in person)-at least 15.
haveacalc
Guardian
avatar
Posted: 27 Jul 2006
19:43 GMT
Total Posts: 1111
It's suprising how few programmers I've seen here who have had decent knowledge of sines, cosines, and tangents. Even though BASIC programs that use them are pretty sluggish, they almost always yield cool results.

Asteroids, Bust-a-Move, Missile Command (or Warhead), and Slime Volleyball are some good ones.

---
-quoted directly from most movies that don't exist (and some that do).
Zachary940
Wraith
avatar
Posted: 27 Jul 2006
20:49 GMT
Total Posts: 714
hey you mean that there are other uses for sines cosines and tangents other than passing a geometry test.

SWEET Learn something new every day

---
It is much easier to suggest solutions when you know nothing about the problem.
haveacalc
Guardian
avatar
Posted: 27 Jul 2006
21:56 GMT
Total Posts: 1111
If you were serious, then I'll list some simple ways here:
Note: I always work in radian mode (not degree).

A = degrees
B = radius
* = degree thing

Drawing an n-gon:

0->D
ClrDraw
ClrHome
Prompt A,B
ClrHome
360/C
For(A,0,360+Ans,Ans
Line(Bcos(D*),Bsin(D*),Bcos(A*),Bsin(A*
A->D
End
DelvarADelvarBDelvarCDelvarDDisp

The little "o" (reachable from the Angle menu) can be replaced with 180/pi, but it's a little slower that way. Also, the polygons may be a bit skewed if you have stupid window settings.

To display a point at an angle:
cos( for X
sin( for Y

Pt-On(radius * cos( degree * 180/pi), radius * sin( degree * 180/pi


To get an angle (in radians) given a point:

If X<>0
tan^-1(Y/X)+180(Y<0)
If A=0
90+180(Y<0

The only reason for having the If statements is avoiding the "Divide by 0" error, so it's unnecessary if your game would never come across that.

That last example would be good for an overhead-view game where the computer always has his gun pointed in your direction. It would also work if you chose to make Bust-a-Move incredibly easy.

Uh, there are other ways, too. I know you don't like being taught, but it's one of the best ways to learn things :img19:.

---
-quoted directly from most movies that don't exist (and some that do).
Zachary940
Wraith
avatar
Posted: 28 Jul 2006
07:39 GMT
Total Posts: 714
Hey I enjoy learnning new things it is just when my work is dismissed and rewritten the "better" way, that is what I don't like. Any way thanks haveacalc. I never knew that geometry class would actually be usefull. :img19: :img19: :alien: :beer:

---
It is much easier to suggest solutions when you know nothing about the problem.
Liebe ist Krieg
Wraith
avatar
Posted: 28 Jul 2006
19:11 GMT
Total Posts: 542
if you knew some advanced physics, you could apply them to the same concept and get the same result without sin cos and tan.

---
~~~~LiK~~~~
haveacalc
Guardian
avatar
Posted: 29 Jul 2006
10:40 GMT
Total Posts: 1111
That would only be worth doing if it could be calculated faster. Can it?

---
-quoted directly from most movies that don't exist (and some that do).
darksideprogramming
Guardian
avatar
Posted: 29 Jul 2006
18:43 GMT
Total Posts: 1005
Using trig is a really easy way to draw cirlces and fill them, too. TIVB can do it.
haveacalc
Guardian
avatar
Posted: 29 Jul 2006
19:10 GMT
Total Posts: 1111
I remember that being the first time I saw shaded circles being drawn on a calculator (like more than a year ago).

---
-quoted directly from most movies that don't exist (and some that do).
mechatech84
Dragoon
avatar
Posted: 30 Jul 2006
15:49 GMT
Total Posts: 96
so how would you draw a circle without using the circle( command? (like for assembly)

-MechaTech84 :alien: :sunglasses: :alien:

---
My personal (unofficial) records on 3x3x3 Rubik's Cube: regular-24.06 sec, one-hand-50.67, with feet-5:40, number of people taught (in person)-at least 15.
haveacalc
Guardian
avatar
Posted: 30 Jul 2006
19:04 GMT
Total Posts: 1111
Actually, the circle tool is slow enough that it might as well be re-written in BASIC.

Look at my earlier post on a polygon-drawer. Once you have enough sides, it looks like a circle (less sides means faster drawing but not as exact).

---
-quoted directly from most movies that don't exist (and some that do).
mechatech84
Dragoon
avatar
Posted: 31 Jul 2006
07:17 GMT
Total Posts: 96
I got the circle/n-gon thing working, but is it possible to move them to different coordinates?

Do I just add the x coordinates to the first and third in the line( command and add y for the second and fourth? sounds close enough imma gonna try it :alien: :sunglasses2: :alien:

---
My personal (unofficial) records on 3x3x3 Rubik's Cube: regular-24.06 sec, one-hand-50.67, with feet-5:40, number of people taught (in person)-at least 15.
Hydralisk5201
Wraith
avatar
Posted: 31 Jul 2006
13:06 GMT
Total Posts: 576
since im here
might as well dance
>o>
<o>
<o<
oya
and yes
i look like an "o" with two arrows coming out of me
how i type this fast and well is beyond me

---
Flintlock Durden says "The things you eat end up eating you"
Xero Xcape
Marine
avatar
Posted: 31 Jul 2006
13:26 GMT
Total Posts: 29
If you want to type faster, then put a song into a media player and type the lyrics as they sing them. I can do a good few metalica songs and nine inch nails... maybe it would be the worlds worst game if I made it xD

---
BASIC flames are for n00bs, you don't want to be a n00b do you? | My other calc is a Porsche.
haveacalc
Guardian
avatar
Posted: 31 Jul 2006
15:23 GMT
Total Posts: 1111
You're right. "Keyboard Hero" just wouldn't work.

---
-quoted directly from most movies that don't exist (and some that do).
Hydralisk5201
Wraith
avatar
Posted: 31 Jul 2006
19:45 GMT
Total Posts: 576
lmao

nine inch nails-awesome
metallica-ehhh depending on which one your talking about

and actually the reason why i said "how i type ths fast is beyond me" is cus i type really frekin fast.
seriously.

[Edited by Hydralisk5201 on 01-Aug-06 04:46]

---
Flintlock Durden says "The things you eat end up eating you"





Portal | My Account | Register | Lost Password or Username | TOS | Disclaimer | Help | Site Search | File Archives Copyright © 2002-2019 CalcG.org