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 …

Member Avatar
Member Avatar
+0 forum 2

The code i'm using is fine in firefox and chrome but ie is keeping the bullet point as black. Anyone know how i can hack round it? [CODE].rightpane ul , .contentpane ul { padding:0; margin:0; margin-left:15px; text-align:left; list-style-type:disc; color: #007dc3; } .rightpane ul li:first-line , .contentpane ul li:first-line { color: black; padding:0; margin:0; list-style-type:disc; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size:14px; } [/CODE] had a quick google for the li:first-line pseudo class but it has left me more confused quite frankly! cheers, dave

Member Avatar
Member Avatar
+0 forum 4

Hi everyone. Well I've been trying to figure this out for a quite a long time now by looking at some examples and searching the web, reading some tutorials and so on, but I don't even know where to start yet. Can you explain to me about the sprites too and how I can use them or at least link me to a tutorial? But my main concern is how am I suppose to get the mouse click position and make the bullet travel in its direction until it disappears from the screen or it hits an object (Which I …

Member Avatar
Member Avatar
+0 forum 3

So I'm pretty far into development of my new game and I am trying to figure out how to do a bullet that will look like it fires from a plane sprite I thought of a way it didn't work so I went back to my old code. I would appreciate if someone could help code a bullet. I'll post my code only if asked for it.

Member Avatar
Member Avatar
+0 forum 4

The End.