Click here to Skip to main content
15,883,558 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to draw x,y co-ordinate in frame ( small area on computer screen) then i want to put a small object ( like a small ball) and it starts motion according some known instruction (Algorithm).

the frame ( small area) should be as that, i could be able to put some other ball , some obstical ( wall type objects)

simillarly i would like to remove some obsticals.

i need some basic idea. how to develop??

that fram..
how to put ball??
etc?

should i create a class like with the Name of Area. and it should contains list ( or Array) of ball , walls, holes, etc in it??

thanks in advance
Posted
Comments
Sergey Alexandrovich Kryukov 28-Apr-13 20:21pm    
I want to write an opera. I already have a libretto. I need some basic idea. How to write all the notes? What instruments do I need to use? How to write the scores, if I need to provide a party for each instrument? What to do with voices? How to decide what musical line should be performed by each singer? What the instruments should do while each characters sings one's party? How to put each vocal party in the performance?
—SA
Muhammad Tufail 1979 29-Apr-13 12:33pm    
sorry to say, i just need the basic idea, i am student not programmer.
i need some initiatives. not idea about idea please................
Sergey Alexandrovich Kryukov 29-Apr-13 12:43pm    
I don't think you understand the idea of being a student. You just listen to your lecture and should try to apply your knowledge as you do it. The initiative should come from you, not others. I mocked your post to explain how it really looks to us strangers; please, no offense. We don't know your background. It looks like you need all at once, but this is merely a Questions & Answers forum.

We can make everything your project needs (well, I'm more than 100% sure about myself, and many other experts will do it, too), but we don't know what you are missing. You cannot expect that someone make your work for you.

—SA
Muhammad Tufail 1979 30-Apr-13 5:30am    
its okay, but i want to take start. and then i will share my code and idea with you people that where i am going now??
Actually i have been assigned a task of simulator. i have to develop a simulator type program in java, in which there should be a moving object( say a small ball ) the motion of the ball will be according on some algorithm.
user should be allowed to interact with the environment of that moving object, mean that,
some other moving object can be put in, some obstacles can also be put in it. now the motion should be according to that environment
and there are alot of information as well
Now, i want to start as, First to draw x,y coordinate on a panel (Frame area). then add a ball (object )to this area and then it will take start motion. i will record the x,y position of that ball in some list or array ( for further investigation).
i will find the central point of the moving object and on the bases of that central point i will keep the track of that object.
Now about the implementation, i do not know how to draw a graphical area (x,y coordinate) and then how to add a small object ( ball) and how to keep the track of that object.
Simellarly , how much number of pixel per centimeter is ?
thanks

1 solution

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 29-Apr-13 13:27pm    
Sure, a 5.
—SA

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