登录
首页 » Android » 用java开发的2048游戏项目,android版

用java开发的2048游戏项目,android版

于 2022-05-22 发布 文件大小:2.03 MB
0 130
下载积分: 2 下载次数: 1

代码说明:

开发工具Eclipse,开发的2048游戏,压缩包里有源码,共大家分享,相互交流学习

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

发表评论

0 个回复

  • android 日历 例子源码
    android 日历 例子源码
    2014-09-15下载
    积分: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
  • 从 Android 中调用 PHP web 服务
    翻译 maninwest@Codeforge 作者:sandeepten910@CodeProject在这里,我尝试使用 PHP 开发一个 web 服务,把它放在远程服务器上并使用 Android app 进行调用。该 Web 服务可以是任何东西,可以是一个简单的计算或者数据库应用。我在这里展示的是最简单的类似加法的操作,就像从应用程序中传递 2 个数, PHP web 服务需要接受他们并进行计算,再返回结果给应用。这里我使用免费的 webhost 来托管web 服务。详情可以使用 SOAP (简单对象访问协议) 进行, 通信完全是独立于平台的,这意味着这个 WEB 服务可以从应用程序中调用。能做到这样是因为通信是通过XML 进行的,当客户端发送请求时,请求会采用 XML 格式且其条目会在  UDDI 寄存器中检查,且指向特定 web 服务并执行,最后对客户端响应。示意图如下: 让我们来看一个例子,在例子中,我们从 Android 应用中对托管在web 服务器上的一个 webservice 进行调用。我们在这里使用简单的示例应用,返回食材的价格。我需要使用一个库工具 nusoap,你可以在这里下载,它有两个文件夹 samples 和 lib…Lib 对我们很重要。现在,注册一个你想要的 web 主机。访问主机,将  nusoap 的 lib 目录放在 public_html 目录中,为web 服务设置环境。 现在,需要以PHP 写适当
    2022-02-05 05:33:44下载
    积分:1
  • android 接收蓝牙数据绘制成波形
    android 接收蓝牙数据绘制成波形
    2021-05-06下载
    积分:1
  • MP3Player-editon1
    曾经写的一个mp3播放器的源码,不过作为基本的学习只用而已。(an edition of mp3!)
    2012-04-13 14:12:23下载
    积分:1
  • MarqueeView-master
    说明:  Android平台比较好用滚动通知效果,可以进行点击事件。(Android platform is better to use scroll notification effect, you can click events.)
    2020-06-20 06:00:01下载
    积分:1
  • 使用SQLite缓存数据(缓存文本和大图片)例子源码下载
        使用SQLite缓存数据,缓存 大图片 小图片 文字 等信息
    2015-03-02下载
    积分:1
  • android 幸运大转盘 实例源码下载
    手动滑动转盘。
    2014-09-01下载
    积分:1
  • Ch15_HelloSQlite
    android studio 环境下,SQLite数据库的使用源码,包括数据的添加、删除、查询等操作(Android studio environment, the use of SQLite database source, including data addition, deletion, query and other operations)
    2018-03-26 09:06:30下载
    积分:1
  • ssh框架 全注解编程
    对有一定ssh框架基础的同学有一定帮助
    2015-04-08下载
    积分:1
  • 696518资源总数
  • 106164会员总数
  • 18今日下载