So I wanted to write a card game, I wanted to draw a card after clicking at the deck
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
public class Deck extends Game
{
public void act()
{
if (Greenfoot.mousePressed(Deck())) //cannot find symbol - method
{
addObject(new Card(), 107, 1680);
}
}
}
I know it there can be more errors, but I'm really new and couldn't find the mistake.