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

贪吃蛇源代码

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

  • with LCD calculator
    带液晶显示的计算器-with LCD calculator
    2022-02-02 08:06:53下载
    积分:1
  • 关于计步器的圆形UI界面
    只有最简单的步数设置,界面是橙色的,非常好看,可以参考
    2022-07-06 11:50:44下载
    积分:1
  • user_management
    用户管理系统,可以从文件中读取,也可以从数组中读取。DB的读取方式没写全(User management system that can read from the document can also be read from the array. DB did not write the way of reading the entire)
    2009-05-03 17:20:33下载
    积分:1
  • java examples of procedures related to the production database interface is to l...
    java 程序实例 涉及到界面制作 数据库 是学习java很好的实例-java examples of procedures related to the production database interface is to learn from the examples of good java
    2022-09-13 18:45:03下载
    积分:1
  • java非常有趣的案例研究,对抢劫罪的情况下,更有趣的案例…
    很有趣的java学习案例,讲述抢劫的案例,,案例比较有趣希望对学习java的同志有帮助-Java very interesting case study, on the robbery case, the more interesting case study would like to help comrades in java
    2022-02-02 19:39:41下载
    积分:1
  • datafiles
    阿萨德阿萨德阿斯达斯的阿萨德阿萨德阿萨德阿萨德阿萨德阿萨德阿瓦全(njasbbwnkshhsjahshaowpojwoj)
    2019-03-14 18:59:48下载
    积分:1
  • spaceman
    SpaceMan Game, menu, and credits
    2010-11-10 07:12:28下载
    积分:1
  • Java实现的用户管理系统
    使用spring hibernate struts2实现的用户管理系统,实现前台跳转及其后台的处理,完整源码
    2023-02-07 07:10:14下载
    积分:1
  • 基于矢量量化的孤立词语音识别
    LLYGKYKYUYKUIKUYILKUILUILULUILUYL(KYUKUYKULUILUILUILUYLUILUILUILIULUL)
    2018-07-25 17:44:06下载
    积分:1
  • SSH+JBPM工作流
    很适合中小企业使用的OA办公源码  java版本里面包括了流程器设计,表单设计器等功能,任务分配 执行流程 前端的代办任务等信息  十分不错  可以用作二次开发
    2023-03-09 17:20:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载