Have your GDX app run in the web browser
https://code.google.com/p/libgdx-users/wiki/Applets
——————————————————————————————————————————————
Have your GDX app run in the web browser
(initial version thanks to Kalle H.)
Introduction
Libgdx do support applets. There is couple good reason for using applet distribution with your game or application.
- Getting user feedback on a game before release can make or break your game. A great way is to distribute a test of the game as an applet inside the web browser.
- Applet can be used for spreading the word out. Free version of your game as applet and full version for android.
- Or you can just distribute full game as applet. No separate codebase is needed and some players might just want to play your game at browser.
Really good tutorial with screenshots and code snippets:
http://www.thesecretpie.com/2011/05/being-like-minecraft-or-how-to-run-your.html Tutorial example applet.http://dl.dropbox.com/u/3157173/applets/helloworld/basicapplet.html
- Use lwjgl backend
- Create lwjglApplet class
- Remember lwjgl_util_applet.jar
- Create html page to config lwjglAppletLoader
- Export project as jar, exclude all that are not need to reduce size(libs, bins,etc..)
- Clean all signing stuff from jars. Eg. Delete the signature files in the meta-inf directories
- Re sign all jars.
- Profit
Remember use Gdx.graphics.setVSync(true) so you dont melt users graphics cards.
Linux
Applets may not start on Linux when having IcedTeaPlugin instead of SunJavaPlugin installed and activated.
See lengthy explanations and solution in forum:
http://www.badlogicgames.com/forum/viewtopic.php?f=17&t=1023#p9962
Relationships
http://code.google.com/p/libgdx-users/downloads/detail?name=helloworldapplet.zip
Dependencies
- lwjgl_util_applet.jar
- gdx_backend_lwjgl
- gdx-backend-lwjgl-natives
- gdx-natives.jar
- gdx.jar
Javadoc links
TODO: to find more detailed information (if any)
Have your GDX app run in the web browser的更多相关文章
- python 全栈开发,Day127(app端内容播放,web端的玩具,app通过websocket远程遥控玩具播放内容,玩具管理页面)
昨日内容回顾 1. 小爬爬 内容采集 XMLY 的 儿童频道 requests 2. 登陆 注册 自动登陆 退出 mui.post("请求地址",{数据},function(){} ...
- Python库源码学习1:Flask之app.run
先列出app.run()实现的功能,我们以debug=True的情况下进行分析. 1. web服务器,处理http请求 2. 当代码修改后,重启服务器 那么app.run()是如何实现这两个功能的呢? ...
- app端内容播放,web端的玩具,app通过websocket远程遥控玩具播放内容,玩具管理页面
一.app端内容播放 下载代码 https://github.com/987334176/Intelligent_toy/archive/v1.0.zip 注意:由于涉及到版权问题,此附件没有图片和音 ...
- flask 源码专题(一):app.run()的背后
当我们用Flask写好一个app后, 运行app.run()表示监听指定的端口, 对收到的request运行app生成response并返回. 现在分析一下, 运行app.run()后具体发生了什么事 ...
- App.js – 用于移动 Web App 开发的 JS 界面库
App.js 是一个轻量级的 JavaScript UI 库,用于创建像本地应用程序的移动 Web 应用而不牺牲性能和体验.它是跨平台的,特定的UI设计,配置类似原生的过渡效果.App.js 的目的是 ...
- tf.app.run()
在很多TensorFlow公布的Demo中,都有这样的代码存在,如下,这是干什么的呢? if __name__ == "__main__": tf.app.run() 我们来看一下 ...
- 创建Flask实例对象时的参数和app.run()中的参数
app=Flask(name,static_folder=“static”,static_url_path="/aaa",template_folder=“templates”) ...
- tensorflow中的tf.app.run()的使用
指明函数的入口,即从哪里执行函数. 如果你的代码中的入口函数不叫main(),而是一个其他名字的函数,如test(),则你应该这样写入口tf.app.run(test()) 如果你的代码中的入口函数叫 ...
- APP端测试与web端测试的区别
想要知道APP端测试与web端测试的区别 ,那么我们就要先来了解,web和app的区别. web项目,一般都是b/s架构,基于浏览器的,而app则是c/s的,必须要有客户端.那么在系统测试测试的时候就 ...
随机推荐
- 利用SmtpClient发送邮件
1 163邮箱 HOST:smtp.163.com public static string CreateTimeoutTestMessage(string server) { string Suc ...
- Spring集成ActiveMQ配置 --转
转自:http://suhuanzheng7784877.iteye.com/blog/969865 集成环境 Spring采用2.5.6版本,ActiveMQ使用的是5.4.2,从apache站点可 ...
- 防止继承和覆盖(PHP类)
可能出现需求:我们不希望继承的类覆盖abstract类中的某个方法. 解决方案:我们可以在某个方法前面加上final关键词,可以防止继承的类覆盖它并实现继承类自己的版本. 继承类仍然可以访问和调用这些 ...
- vue - check-versions.js for child_process
webpack之类的配置文件. webpack.base.conf.js
- css position: relative | absolute | static | fixed详解
static(静态):没有特别的设定,遵循基本的定位规定,不能通过z-index进行层次分级. fixed(固定定位):这里所固定的参照对象是可视窗口而并非是body或是父级元素.可通过z-index ...
- 不吐不快之EJB演练——开篇概述
EJB(Enterprise Java Bean)是J2EE规范的重要核心,它是一个用户分布式业务应用的标准服务端组件模型,它是一种能够高速开发大规模企业应用的组件体系结构.上面这样官方的解释可能对于 ...
- Bootstrap-学习系列
前言 首先在此多谢博友们在前几篇博文当中给与的支持和鼓励,以及在回复中提出的问题.意见和看法. 在此先声明一下,之前在下小菜所有的随笔文章中,只有前两篇关于Bootstrap的文章发表在了博客园的首页 ...
- selenium2.0 --常用函数2
新建实例driver = webdriver.Chrome() 1.获取当前页面的Url函数 方法:current_url 实例: driver.current_url 2.获取元素坐标 方法:loc ...
- android:imeOptions属性
imeOptions软键盘setOnEditorActionListener 默认情况下软键盘右下角的按钮为“下一个”,点击会到下一个输入框,保持软键盘 设置 android:imeOptions= ...
- ssl证书文件
证书(Certificate) - *.cer *.crt私钥(Private Key) - *.key证书签名请求(Certificate signing request) - *.csr 至于pe ...