Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Noah Faust

Greenhorn
+ Follow
since Mar 07, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Noah Faust

Thanks Paul!, I had changes the window size from 1000x1000 to 700x700, but I must have missed changing the center point (500 to 350) on the very first Y value. It works perfectly now that you caught that.
10 years ago
I made a program that creates shapes and stars, but I keep getting one extra line whenever I do stars as seen here.
I can't seem to find a straightforward way to fix it that doesn't screw up regular shapes (not stars)
Here is the code:

Any good way to get rid of it?
10 years ago
Just curious, why no automatic wraparound?
10 years ago
I apologize. I will try to make my code more readable in the future.
10 years ago
You can choose whether or not you would like to read it. If minor inconvenience deters you from helping someone solve their programming problems, then chances are you don't have much to say anyway.
10 years ago
Ritchie,
1. TI-BASIC is a TI 84+ calculator programming language
2. I'm not going to rearrange my code so that one line is shorter
10 years ago
That worked! Thanks! I figured out that the line() wasn't working because it only accepted whole numbers. Here's the final code and a screenshot.

[edit]Newlines to break very long line of code[/edit]

10 years ago
I changed asin and acos to sin and cos, for some reason the website I found for using sine and cosine said to put a's before it, but I'm still getting an error in Eclipse. It wants me to cast my variables as floats, I think the problem has something to do with the range of input and output allowed for sine and cosine, but I don't know what that is. I attached a picture of what it looks like in eclipse
10 years ago
mousePressed isn't the problem, I'm trying to use sine and cosine but I get values of NaN and even when I don't it still does not draw a line.
10 years ago
eclipse wants me to put "float" before everything, I feel like I'm using the wrong sort of variable or something, but I know the idea works because I've done it in TI-BASIC
10 years ago
I can read one key at a time just fine with the keyPressed function, but how would I read multiple keys at once?
11 years ago
Thank you for the link, I was trying to find more information but couldn't seem to find a details page.
11 years ago
I see, I think this is less a java question than a game development question. Are there any good programs to run jar files with? I can't run the jar I made.
11 years ago
I exported it into a .jar file, but when I tried to upload it to Kongregate, it said it was an invalid file type.
11 years ago