Tim McLean

Results 17 comments of Tim McLean

Based on a thought from Phrack, instead of calling the "contains" calculation in isHit, could we use a targetView function call that has a manual calculation such as: ``` if...

This seemed to work but for some reason I felt like it did not work as well as hitting an actual re-positioned target. Have not tested on multiple targets yet....

All of this is trying to correct for the lag. There is still a problem with leading the target. The shot can be in the space in front of the...

Thanks for the response. I agree about shot travel time being a totally separate issue but I am not interested in calculating lead times. In my opinion, a shot should...

I have worked another solution that improves this issue. Still use an arraylist to record the times in setPosition and a hashmap to record the times as a key and...

``` @Override public void setPosition(double x, double y) { targetGroup.setLayoutX(x); targetGroup.setLayoutY(y); long unModifiedPosTime = System.currentTimeMillis(); synchronized (timeList){ if(timeList.size()>=20){ timeList.remove(0); }//end if if(timeList.add(unModifiedPosTime)){ synchronized (timeMap){ timeMap.put(unModifiedPosTime,targetGroup.getBoundsInParent()); }//end synch timeMap } else{...

I don't have exercises to add for now. Allowing URL's to a developers own plugins.xml file would also unburden you from the responsibility of updating the shootOFF plugins.xml file every...