创建一个GImages数组

时间:2017-06-07 20:36:08

标签: java

因此,对于我的最终作业,我必须使用带控制台和GCanvas的分屏创建游戏。我已经设置了控制台,我找不到将GImages放到画布上的方法。现在,我认为给我带来麻烦的代码是:

function onEachFeature(feature,layer){
      if(feature.properties.name == "red"){ //do something that binds associated marker to red layer)
       else{//do something that binds associated marker to bluelayer}}

和方法:

String [] cards = {
  "apple-ConvertImage.gif",
  "pear-ConvertImage.gif", 
  "banana-ConvertImage.gif", 
  "peaches-ConvertImage.gif"
};

我也用这个方法调用 private void draw(String[] cards){ for (int i=0 ; i <= 3; i++){ GImage card = new GImage (cards[i],0,200); canvas.add(card); } }

我继续收到附加源代码错误,表示无法找到MediaTools.class

0 个答案:

没有答案