Beispiel #1
0
 public void render(Graphics2D g) {
   g.setColor(Color.WHITE);
   g.fillRect(0, 0, m_drawArea.getWidth(), m_drawArea.getHeight());
   m_fruitBasket.render(g);
   m_mouseSword.render(g);
 }
Beispiel #2
0
 public void update(long dtMs) {
   m_fruitBasket.attemptCuts(m_mouseSword.getCurrentPoint());
   m_fruitBasket.update(dtMs);
   m_mouseSword.update(dtMs);
 }