登录
首页 » java » 2048小游戏

2048小游戏

于 2022-08-17 发布 文件大小:24.35 MB
0 98
下载积分: 2 下载次数: 1

代码说明:

在安卓上实现的2048小游戏,有计分的功能。具体玩法:左滑、右滑、上划、下划。划完之后会将相等的数字进行相加,如果没有办法继续游戏则弹出游戏结束。添加按钮事件,点击重新开始游戏。

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

发表评论

0 个回复

  • jakarta-jmeter-2.3.4_src
    开发助手,压力测试工具jemter 开发助手,压力测试工具jemter(jemter jemter)
    2015-02-25 16:52:34下载
    积分:1
  • J2EE的Eclipse开发插件
    J2EE eclipse 下开发数据库一个插件-J2EE eclipse developed a plug-in database
    2022-01-26 01:37:03下载
    积分:1
  • image stegnography
    数字隐写术[1]
    2022-10-22 18:25:04下载
    积分:1
  • android open gl 示例代码下载
    [实例简介]Open GL 入门级示例 [实例截图] [核心代码]package com.china.gltry;import javax.microedition.khronos.egl.EGL10;import javax.microedition.khronos.egl.EGL11;import javax.microedition.khronos.egl.EGLConfig;import javax.microedition.khronos.egl.EGLContext;import javax.microedition.khronos.egl.EGLDisplay;import javax.microedition.khronos.egl.EGLSurface;import javax.microedition.khronos.opengles.GL;import android.view.SurfaceHolder;/** * An EGL helper class. */public class EGLHelper{ public EGLHelper() { } /** * Initialize EGL for a given configuration spec. * @param configSpec */ public void start(int[] configSpec){ /* * Get an EGL instance */ mEgl = (EGL10) EGLContext.getEGL(); /* * Get to the default display. */ mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); /* * We can now initialize EGL for that display */ int[] version = new int[2]; mEgl.eglInitialize(mEglDisplay, version); EGLConfig[] configs = new EGLConfig[1]; int[] num_config = new int[1]; mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, num_config); mEglConfig = configs[0]; /* * Create an OpenGL ES context. This must be done only once, an * OpenGL context is a somewhat heavy object. */ mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, null); mEglSurface = null; } /* * Create and return an OpenGL surface */ public GL createSurface(SurfaceHolder holder) { /* * The window size has changed, so we need to create a new * surface. */ if (mEglSurface != null) { /* * Unbind and destroy the old EGL surface, if * there is one. */ mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); mEgl.eglDestroySurface(mEglDisplay, mEglSurface); } /* * Create an EGL surface we can render into. */ mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, holder, null); /* * Before we can issue GL commands, we need to make sure * the context is current and bound to a surface. */ mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); GL gl = mEglContext.getGL(); return gl; } /** * Display the current render surface. * @return false if the context has been lost. */ public boolean swap() { mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); /* * Always check for EGL_CONTEXT_LOST, which means the context * and all associated data were lost (For instance because * the device went to sleep). We need to sleep until we * get a new surface. */ return mEgl.eglGetError() != EGL11.EGL_CONTEXT_LOST; } public void finish() { if (mEglSurface != null) { mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); mEgl.eglDestroySurface(mEglDisplay, mEglSurface); mEglSurface = null; } if (mEglContext != null) { mEgl.eglDestroyContext(mEglDisplay, mEglContext); mEglContext = null; } if (mEglDisplay != null) { mEgl.eglTerminate(mEglDisplay); mEglDisplay = null; } } EGL10 mEgl; EGLDisplay mEglDisplay; EGLSurface mEglSurface; EGLConfig mEglConfig; EGLContext mEglContext;}
    2015-04-06下载
    积分:1
  • 枚举法解决TCP问题
    JAVA编写代码解决TCP问题,在该例子中使用枚举法
    2022-02-05 12:29:22下载
    积分:1
  • 用JAVA编写的医院门诊查询系统,从其他地方下载下来的,供大家下载
    用JAVA编写的医院门诊查询系统,从其他地方下载下来的,供大家下载-JAVA prepared using hospital out-patient inquiry system, downloaded from other places, and for everyone to download
    2022-01-28 17:49:52下载
    积分:1
  • Android-BluetoothKit-master
    蓝牙通讯协议demo,已经通过通讯测试,实测可以正常进行蓝牙协议通讯(Bluetooth Communication Protocol Demo)
    2020-06-18 01:00:01下载
    积分:1
  • procedures kanlog blog For JSP v1.0
    kanlog博客程序 For JSP v1.0-procedures kanlog blog For JSP v1.0
    2023-02-03 20:35:04下载
    积分:1
  • struts_login
    j2ee MyEclipse6.5+struts1.2环境下的登录系统 登录验证 用户数据保存在数据库(j2ee MyEclipse6.5+ struts1.2 system registry under the login authentication user data stored in the database)
    2010-06-17 14:28:36下载
    积分:1
  • googlelocation
    用Android studio配置谷歌地图,实现坐标定位并显示。(Configure Google Map with Android studio to achieve coordinate positioning and display.)
    2019-04-05 20:54:55下载
    积分:1
  • 696516资源总数
  • 106475会员总数
  • 7今日下载