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

  1. Use lwjgl backend
  2. Create lwjglApplet class
  3. Remember lwjgl_util_applet.jar
  4. Create html page to config lwjglAppletLoader
  5. Export project as jar, exclude all that are not need to reduce size(libs, bins,etc..)
  6. Clean all signing stuff from jars. Eg. Delete the signature files in the meta-inf directories
  7. Re sign all jars.
  8. 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相关推荐

  1. app.run 相关参数 flask配置文件

    app.run 相关参数 & flask配置文件 要想接受外网的访问以及使用非默认端口访问,可以给 run 函数传入 host 和 port 两参数. app.run(debug=True, ...

  2. tensorflow2:tf.app.run()

    在很多TensorFlow公布的Demo中,都有这样的代码存在,如下,这是干什么的呢? if __name__ == "__main__": tf.app.run() 我们来看一下 ...

  3. tf.app.flags和tf.app.run的使用

    tf.app.flags和tf.app.run的使用 tf.app.flags主要用于处理命令行参数的解析工作,其实可以理解为一个封装好了的argparse包(argparse是一种结构化的数据存储格 ...

  4. flask中 app.run(host='0.0.0.0', port=5000, debug=False) 不能用外网ip访问的解决办法

    pycharm 2018开启debug模式和修改host: 在Pycharm 2018中,如果想要开启debug模式和更改端口号,则需要编辑项目配置.直接在app.run中更改是无效的.示例图如下:  ...

  5. php $app-run(),Thinkphp 5.x 应用启动 App::run()

    在上文加载完配置等一系列工作之后,进入App::run(),在run()方法中, 首先通过自动加载机制拿到 Request 的一个实例 接着 $config = self::initCommon()初 ...

  6. tensorflow代码中tf.app.run()什么意思

    # 前面的代码省略了... ... ... ... def main(argv=None):mnist = input_data.read_data_sets("F:\mydata\Tens ...

  7. tensorflow代码中的tf.app.run()

    一般 if __name__ == '__main__':之后紧接着的是主函数的运行入口,但在tensorflow的代码里头经常可以看到其后面的是tf.app.run(),这个究竟是什么意思呢??? ...

  8. AngularJS app.run()文档?

    本文翻译自:AngularJS app.run() documentation? How and where is app.run() used? app.run()使用方式和位置在哪里? After ...

  9. flask学习笔记一:app.run

    1,Flask笔记 由于项目需求,所以需要学习一下Flask框架.一直以来对于这种前端设计类的框架总是没有什么特别大的学习兴趣,因此用这种记录笔记的方式来督促自己学习,也方便以后查询自己的学习进程,这 ...

最新文章

  1. [译] Spring 的分布式事务实现-使用和不使用XA — 第三部分
  2. 2018-8-22-粒子滤波
  3. Java读取Excel文件并将之写入数据库操作
  4. Asp.net中页面传值几种方式
  5. 【GO】golang 的new 和 make
  6. [Voice communications] 音量的控制
  7. 不全屏放映ppt的方法
  8. matlab画动态简单轨迹,利用MATLAB绘制相轨迹
  9. intouch负值显示0_intouch的若干个经典问题解答
  10. exynos4412,tegra3,msm8960性能对比,参考对照exynos4210
  11. dumprep.exe 进程吃掉一半CPU
  12. Flutter:表单Form
  13. IDEA springboot 项目启动报错 Shorten the command line via JAR manifest or via a classpath file and rerun
  14. 2020年十大办公室装修设计建议!
  15. 【数组】#66 加一
  16. CHIL-SQL-NOW() 函数
  17. 屌丝站长如何购买虚拟主机?
  18. flume系列之:监控flume上个小时生成的HDFS文件是否有损毁,并发送告警信息
  19. 【GO】Iris框架项目初始化并解决GoLand的代码提示问题
  20. space sniffer

热门文章

  1. “反科学言论”下,电子烟的真相是什么?
  2. unity 贴图合并_地形系统挣扎录——从Blender到Unity
  3. STM32F1系列PB3,PB4,PA13,PA14,PA15用作普通IO口的特殊配置
  4. mysql数据驱动测试_自动化测试框架-数据驱动(2)
  5. 甘肃2本计算机大学,甘肃有哪些二本大学
  6. 河北省计算机系二本理科学校有哪些,河北省二本院校有哪些?特色专业又是啥?...
  7. 《项目经理手记》第二章、项目管理-入门知识
  8. 微信小程序生成带参数的二维码以及小程序码
  9. 可见光通信中的光电器件
  10. happyChat开发系列:使用websocket.io实现双向通信的乐聊大前端开发