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

贪吃蛇源代码

于 2022-02-03 发布 文件大小:1.57 kB
0 104
下载积分: 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 个回复

  • 安卓模仿微信代码(主要是UI实现,android studio)
    安卓模仿微信代码(主要是UI实现,android studio)
    2018-04-06下载
    积分:1
  • 本例采用sql server数据库。基于JBuilder的tomcat上运行。访问数据库基于struts的datasources.里面有详细的操作和设置说明。...
    本例采用sql server数据库。基于JBuilder的tomcat上运行。访问数据库基于struts的datasources.里面有详细的操作和设置说明。-the cases used sql server database. Based on the tomcat JBuilder run. Access to the database based on the struts of datasources. There are details of the operation and set up explanatory.
    2022-03-06 04:23:14下载
    积分:1
  • thinking_in_java
    说明:  作为java教学的经典教材之一。本版是第二版,中文描述(java)
    2010-04-20 15:06:22下载
    积分:1
  • googlelocation
    说明:  用Android studio配置谷歌地图,实现坐标定位并显示。(Configure Google Map with Android studio to achieve coordinate positioning and display.)
    2019-04-05 20:54:55下载
    积分:1
  • ly
    旅游网站设计,数据库设计,框架设计,主体设计,网页设计(Travel website design, database design, frame design, main design, web design)
    2019-05-14 11:25:39下载
    积分:1
  • 实现文件的由大变小,功能齐全,适合初学者使用,是自己亲手编写...
    实现文件的由大变小,功能齐全,适合初学者使用,是自己亲手编写-achieve documents into small, multifunctional, for beginners, is preparing itself.
    2022-07-25 15:27:09下载
    积分:1
  • 一个有关继承关系的JAVA程序实例,项目名EMPLOYEE。
    一个有关继承关系的JAVA程序实例,项目名EMPLOYEE。-A related instance of inheritance of the JAVA program.
    2022-04-10 14:24:23下载
    积分:1
  • 21Player
    简单的21点游戏,通过控制台输入输出,用于对java基础知识的学习和练习(Simple 21-point game, input and output through the console)
    2020-06-16 01:00:01下载
    积分:1
  • jmemory
    Java监视内存使用情况,运行Java 程序一般要消耗大量的内存,这曾经是java 的一个致命弱点。当然随着硬件的飞速发展,这个缺点有所弱化,同时java 虚拟机的逐渐成熟,也使内存的消耗量减少。那么一个较小java 程序   究竟要消耗多少内存呢?本例将实现一个能自我监视内存使用的简单程序,来评估java 程序的内存消耗情况。(Java monitor memory usage, run Java programs generally consume large amounts of memory, which used to be a fatal weakness of java. Of course, with the rapid development of hardware, this shortcoming has been weakened, while mature java virtual machine, but also to reduce memory consumption. Then a small java program How to consume much memory? This example of a simple program memory can be used for self-monitoring to assess memory consumption java program.)
    2014-05-28 14:57:32下载
    积分:1
  • 这是一些好的程序和数据库内容, 在这里和大家一起分享了.
    这是一些好的程序和数据库内容, 在这里和大家一起分享了.-This is some good and database content, and here we share together.
    2022-05-07 13:50:14下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载