Click here to Skip to main content
15,889,889 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a cannon that slides left to right and I want it to shoot the bullet I have in the code (it will only shoot straight up). I have the bullet png in its own div on my html. I don't know how to make the bullet come out the moving cannon.

I am new to coding so I don't have a clue what to do.

What I have tried:

(This is my first time making a simple game with java, I'm new to it)
Posted
Updated 1-Dec-17 16:54pm
Comments
Peter Leow 1-Dec-17 22:52pm    
Java? JSP? JSF? Bean? JavaScript? Which one? Is it web? Note that Java and JavaScript are two different things.

1 solution

Check this out jQuery Effects - Animation[^]
You need to prior knowledge of HTML, CSS, JavaScript, and of course jQuery. Good luck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900