0

I've decided to try to create a small (very) game in Javascript + HTML, using the Canvas element. So far, its gone pretty well, but recently I started on bullets. This also has gone well. I've decided to try to implement a bullet-goto-mouse type thing. I know this uses trigonometry, but, as I havn't had that class, and won't for a few more years, I went to Google. This got me a few more steps, and now I have a partially working system. There are a few problems:

  • It doesn't want to actually go to the right part of the Canvas. It will go on the right angle, but in a diffrent direction.
  • Its not always right

I've attached the code to this post (the zip file).

Thanks,
Jack

Attachments
2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by jackmaverick1
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.