Click here to Skip to main content
13,045,019 members (39,076 online)
Rate this:
Please Sign up or sign in to 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??

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 28-Apr-13 12:26pm
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?
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.

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 ?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Sergey Alexandrovich Kryukov 29-Apr-13 13:27pm
Sure, a 5.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 29 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100