• 大小: 21.92M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-27
  • 语言: Java
  • 标签: 游戏  

资源简介

java游戏

代码片段和文件信息

/*
 * 功能:用来表示这个游戏项目的窗口
 * 作者:ZR
 * 时间:2018.9.29
 */
package com.zr;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.Jframe;
import javax.swing.JOptionPane;

public class Gameframe {

public static void main(String[] args) {
// TODO Auto-generated method stub
        //1.创建游戏窗口
//1.1创建窗口实例化对象
//1.2设置窗口相关内容
//1.3设置窗口可视化
//设置窗口信息
Jframe window=new Jframe();
window.setSize(1024768);
window.settitle(“仙剑之初始version1.0“);
window.setLocationRelativeTo(null);
window.setDefaultCloseOperation(Jframe.DO_NOTHING_ON_CLOSE);
window.addWindowListener(new WindowAdapter(){
//当窗口打开的时候会执行该方法
public void windowOpened(WindowEvent e) {
// TODO Auto-generated method stub
super.windowOpened(e);
//输入对话框
//String xinxi=JOptionP

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-04-15 01:15  GamePanel-master\
     文件          66  2019-04-15 01:15  GamePanel-master\.gitattributes
     文件         253  2019-04-15 01:15  GamePanel-master\README.md
     目录           0  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\
     文件         295  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.classpath
     目录           0  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\
     文件           0  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.lock
     文件         970  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.log
     目录           0  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.mylyn\
     文件         561  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.mylyn\repositories.xml.zip
     目录           0  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\
     目录           0  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.resources\
     目录           0  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.resources\.root\
     目录           0  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.resources\.root\.indexes\
     文件           1  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.resources\.root\.indexes\history.version
     文件         151  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.resources\.root\.indexes\properties.index
     文件           1  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.resources\.root\.indexes\properties.version
     文件         185  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.resources\.root\1.tree
     目录           0  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.resources\.safetable\
     文件         853  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.resources\.safetable\org.eclipse.core.resources
     目录           0  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.runtime\
     目录           0  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.runtime\.settings\
     文件          40  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.core.resources.prefs
     文件          83  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.epp.logging.aeri.ide.prefs
     文件         359  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.ui.prefs
     文件          56  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jst.j2ee.webservice.ui.prefs
     文件          71  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.m2e.discovery.prefs
     文件          60  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.mylyn.context.core.prefs
     文件          95  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.mylyn.monitor.ui.prefs
     文件         190  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.mylyn.tasks.ui.prefs
     文件         131  2019-04-15 01:15  GamePanel-master\WLGC16-2-XJQXZ-ZRnew\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.rse.core.prefs
............此处省略370个文件信息

评论

共有 条评论