测试提交

This commit is contained in:
你的Gitea用户名
2025-09-17 15:36:19 +08:00
parent efce7c8a64
commit 5c31c80c07
2 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
package com.example;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
public class MyGdxGame implements ApplicationListener {
// 游戏初始化时调用
@Override
public void create() {
// 加载资源、初始化游戏对象
}
// 每次渲染时调用
@Override
public void render() {
// 清空屏幕
Gdx.gl.glClearColor(0, 0, 0, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
// 游戏逻辑更新和渲染
}
// 窗口大小改变时调用
@Override
public void resize(int width, int height) {
}
// 游戏暂停时调用如Android上按下Home键
@Override
public void pause() {
}
// 游戏恢复时调用
@Override
public void resume() {
}
// 游戏退出时调用,释放资源
@Override
public void dispose() {
}
}

Binary file not shown.