Talk:P2D

From Robowiki
Jump to navigation Jump to search

General Questions

I really think it should preserve the DrawingBot name and with clear attributation. It is not as many changes as my version so I suggest to move this page to User:David Alves/DrawingBot anyway. » Nat | Talk » 05:36, 23 May 2009 (UTC)

@Nat, it's suppose to be a plug-in that evolves with time. I was going to change some of the functions to use the Point2D.Double variable and some new shapes. We can post the original, unedited version at the User:David Alves/DrawingBot. --HACKhalo2 05:57, 23 May 2009 (UTC)
About new shapes, beside Point2D, and xxx2D implements Shape, we can use Graphics2D.draw(Shape); and Graphics2D.fill(Shape); Just ideas. » Nat | Talk » 06:57, 23 May 2009 (UTC)

And why do you need to upload .jar file? Just copy and past from source page is enough. Robocode doesn't allow you to access other .jar, and it has only one .java. When some library are downloadable in .jar, it usually contains many files. » Nat | Talk » 05:40, 23 May 2009 (UTC)

Errors

NullPointerException

I just found this. java.lang.NullPointerException at Resources.P2D.drawCircle(P2D.java:104) at hackhalotwo.Gravity.run(Gravity.java:14) at robocode.peer.RobotPeer.run(Unknown Source) at java.lang.Thread.run(Thread.java:636) Now, I can't figure out why it's doing this when it was running fine yesterday. Usage: P2D.drawCircle(test, 15.0, Color.GREEN); where Point2D.Double test = new Point2D.Double(60.0, 60.0);. I don't know what i'm doing wrong :/ --HACKhalo2 13:39, 23 May 2009 (UTC)

There is no renderables = new Vector(); so renderables is null. » Nat | Talk » 13:44, 23 May 2009 (UTC)

You cannot post new threads to this discussion page because it has been protected from new threads, or you do not currently have permission to edit.

There are no threads on this page yet.