• 大小: 294KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-29
  • 语言: Java
  • 标签: java  java代码  

资源简介

贪吃蛇网络版 java代码

资源截图

代码片段和文件信息

package logic;
import java.awt.*;

public class BackGroundCanvas extends Canvas {

private static final long serialVersionUID = 1L;
Image image;
BackGroundCanvas()
{
setSize(800600);
Toolkit t = getToolkit();
image = t.getImage(“bg.jpg“);
}

public void paint(Graphics g)
{
g.drawImage(image00800600this);
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        226  2005-12-08 23:01  Newsnakee\.classpath

     文件        505  2005-12-08 23:26  Newsnakee\.project

     文件      61239  2005-12-08 18:50  Newsnakee\img\background.jpg

     文件      10598  2005-12-08 18:48  Newsnakee\img\barrier.jpg

     文件      10430  2005-12-08 18:49  Newsnakee\img\foodImg.jpg

     文件      10120  2005-12-08 18:46  Newsnakee\img\mypartImg.jpg

     文件      10240  2005-12-08 18:47  Newsnakee\img\otherpartImg.jpg

     目录          0  2005-12-09 00:20  Newsnakee\img

     文件        886  2005-12-09 12:04  Newsnakee\logic\BackGroundCanvas.class

     文件        353  2005-12-09 12:04  Newsnakee\logic\BackGroundCanvas.java

     文件       1275  2005-12-09 12:04  Newsnakee\logic\CommandSender.class

     文件        859  2005-12-09 12:04  Newsnakee\logic\CommandSender.java

     文件        238  2005-12-09 12:04  Newsnakee\logic\Directable.class

     文件        139  2005-12-09 12:04  Newsnakee\logic\Directable.java

     文件       1013  2005-12-09 12:04  Newsnakee\logic\Food.class

     文件        671  2005-12-09 12:04  Newsnakee\logic\Food.java

     文件        455  2005-12-09 12:20  Newsnakee\logic\GameUI.class

     文件        126  2005-12-09 12:20  Newsnakee\logic\GameUI.java

     文件       1324  2005-12-09 12:04  Newsnakee\logic\KeySender.class

     文件        936  2005-12-09 12:04  Newsnakee\logic\KeySender.java

     文件       3935  2005-12-09 12:04  Newsnakee\logic\Player.class

     文件       4010  2005-12-09 12:04  Newsnakee\logic\Player.java

     文件        441  2005-12-09 12:04  Newsnakee\logic\ServerSnake.class

     文件        172  2005-12-09 12:04  Newsnakee\logic\ServerSnake.java

     文件       1621  2005-12-09 12:04  Newsnakee\logic\ServerThread.class

     文件        998  2005-12-09 12:04  Newsnakee\logic\ServerThread.java

     文件       4313  2005-12-10 23:54  Newsnakee\logic\Snake.class

     文件       4536  2005-12-10 23:54  Newsnakee\logic\Snake.java

     文件       1190  2005-12-09 12:41  Newsnakee\logic\SnakeCanvas$KeyHandler.class

     文件      10229  2005-12-09 12:41  Newsnakee\logic\SnakeCanvas.class

............此处省略44个文件信息

评论

共有 条评论