登录
首页 » Java » 贪吃蛇源代码

贪吃蛇源代码

于 2022-02-03 发布 文件大小:1.57 kB
0 97
下载积分: 2 下载次数: 1

代码说明:

package com.fred.test; import java.awt.event.KeyListener; import java.awt.event.KeyEvent; import java.awt.Graphics; import java.awt.Point; import java.awt.Color; import java.util.Random; import java.util.List; import java.util.LinkedList; import javax.swing.JPanel; import javax.swing.JFrame;   class Food{     Snake snake;     int x,y;     boolean flag;     Food(Snake snake){         this.snake = snake;         flag = true;         int x = 0;         int y = 0;         while(flag){             flag = false;             x = Math.abs(new Random().nextInt()%40);             y = Math.abs(new Ran

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • smp75
    应用了文本框 文本区域 通过文本框输入数据和文字(Applied to the text box text area through a text box to enter the data and text)
    2009-12-21 13:39:14下载
    积分:1
  • coffe
    咖啡机,可投币,可退币,可加糖,加水,加咖啡,然后出来浓咖啡,淡咖啡等。(Coffee machine, coin, currency retreat can sugar, add water, add coffee, then out espresso, light coffee.)
    2013-09-12 13:13:17下载
    积分:1
  • Spring boot demo程序源码
    此demo程序使用spring boot  maven 工程管理的一个DEMO程序,数据库采用MYSQL,数据库是JPA实现,此demo程序使用spring boot  maven 工程管理的一个DEMO程序,数据库采用MYSQL,数据库是JPA实现,此demo程序使用spring boot  maven 工程管理的一个DEMO程序,数据库采用MYSQL,数据库是JPA实现
    2022-08-22 06:43:49下载
    积分:1
  • magent-0.5.tar
    现在国内众多系统中都采用了memcache集群,用magent作为memcache集群代理起着至关重要的作用。(Now many domestic systems have adopted the memcache clusters, with magent memcache cluster plays a crucial role as a proxy.)
    2014-08-06 17:56:21下载
    积分:1
  • 进程调度时间片轮转算法窗口化实现
    模拟实现了时间片轮转算法的动态调度,利用简单的窗口进行演示
    2022-07-11 22:10:35下载
    积分:1
  • Datee
    对于任意三个整数,判断其是否为一个合法的日期值。给定一个日期值,计算若干天后的日期值,(For any three integers, determine whether it was a valid date value. Given a date and calculate the value of a number of days of the date,)
    2010-05-08 16:53:29下载
    积分:1
  • own slate to be a simple line drawing and other graphics can choose View picture...
    自己做一个画板 可以画直线简单图形等 还能选择浏览图片等-own slate to be a simple line drawing and other graphics can choose View pictures
    2022-05-29 01:27:33下载
    积分:1
  • java实现fdv车辆跟驰模型可视化
    该程序是对fdv车辆跟驰模型实现可视化界面。该例程中假设前车的速度为正弦函数,通过fdv跟驰模型计算跟驰车辆的位置并将两辆车动态的显示出来。
    2022-03-13 18:31:10下载
    积分:1
  • src
    java坦克大战代码,用于新手学习Java时所用,建议边看边学(Tank War Game Code ,used for new leaner who is studying java ,suggest see books while studying)
    2019-01-08 17:16:58下载
    积分:1
  • ttti
    java和oracle的图书馆管理系统,友好的人机交互界面。供作学习和交流(java and oracle library management system, a friendly man-machine interface. For learning and communication)
    2013-09-22 03:44:21下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载