记录精彩的程序人生
https://libgdx.badlogicgames.com/news.html libGDX 1.9.10 released Tomski, 2019-07-19 15:12:47 libGDX 1.9.10 Yes thats right, 10 comes after 8! A few of the notable changes and updates since last post GWT update to 2.8.2 MobiVM release 2.3.7 Lwjgl 3.2.1 Lots of QOL and bug fixes for GWT backend Better iOS backend customization PixmapPacker features like NinePatch and whitespace stripping InstancedRendering support via Mesh and InstanceBufferObjects SCENE2D (Standard tweaks and improvements acros....
https://www.codeandweb.com/texturepacker/tutorials/libgdx-physics Get Sourcecode from GitHub This tutorial is for libGDX beginners, explaining how to create sprite sheets, use sprites in your game and add game physics. Creating a new project Using Gradle to import & manage dependencies Creating sprite sheets Using sprites Creating physics collision shapes Editing physics parameters Using physics in your game Create a new LibGDX application Start by downloading the setup app that LibGDX pro....
https://stackoverflow.com/questions/53498161/unsupported-method-androidproject-getvariantnames-in-android-studio-3-4 You need to disable this setting in Android Studio: File > Settings(or Preferences for previous versions) > Experimental > Only sync active variant
https://www.cnblogs.com/chsoji/p/5367944.html 参考: http://ant.apache.org/ivy/faq.html 在%ANT_HOME%\bin\ant.bat文件中第2行添加如下代码: set ANT_OPTS=-Dhttp.proxyHost=myproxyhost -Dhttp.proxyPort=8080 -Dhttp.proxyUser=myproxyusername -Dhttp.proxyPassword=myproxypassword -Dhttps.proxyHost=myproxyhost -Dhttps.proxyPort=8080 注意点: 1) 等号后面的值不需要使用双引号括起来 2)如果还不能连接网路,确认是否遗漏最后两项【-Dhttps.proxyHost】和【-Dhttps.proxyPort】 socks代理指定方式: set ANT_OPTS=-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=1080
http://bitiotic.com/blog/2013/05/23/libgdx-and-android-application-lifecycle/ Libgdx and Android application Lifecycle After running into some weird bugs in my latest Libgdx game caused by misunderstanding the Libgdx lifecycle on Android, I spent some time trying to pin down exactly what can happen, why, and how to reliably reproduce different paths through the lifecycle graph. I have not worked with the GWT, iOS or Desktop backends to see if/how they differ from the Android lifecycle. Libgdx Ap....
http://www.asawicki.info/Mirror/Car%20Physics%20for%20Games/Car%20Physics%20for%20Games.html
http://nexsoftware.net/wp/2013/05/09/libgdx-making-a-paged-level-selection-screen/ LibGDX – Making a Paged Level Selection Screen May 9th, 2013 | Author: admin Welp, it looks like it has been about a year since my last post, so I figured I’d get something up here before a full year went by. Today, I’ll be going over some code I put together to make a paged level selection screen with LibGDX’s Scene2D package. I endearingly refer to this as Angry Birds style, but it’s obviously not exclusive to A....
Failed to load the build script of the project(s):org.gradle.tooling.UnsupportedVersionException: Support for builds using Gradle versions older than 2.6 was removed in tooling API version 5.0. You are currently using Gradle version 2.3. You should upgrade your Gradle build to use Gradle 2.6 or later.
记录了Marauroa和LibGDX项目的搭建过程
http://stackoverflow.com/questions/16600547/how-get-a-string-width-in-libgdx
libgdx开发过程中遇到的一些问题记录在这里,比较杂
我想开发一款Android游戏有一段时间了,但从来没有一个好的idea。最近,我一直在玩地铁跑酷,发现它实在太有意思了。通常来讲,我不喜欢没有终点的游戏,因为你不可能通关,所以每次我玩这些游戏的时候,我总会随意设置一些目标然后再去玩。这次我的目标是得到30倍分数复乘技能。当我实现这个目标的时候,我就获得一些技能然后就会迷上这款游戏。这款游戏也让我意识到,一款Android游戏没有必要非要有什么大的来头和复杂的游戏设置,简单随意就好。 不管怎样,我觉得一个游戏如果能做到仅需你将手指对准一个东西然后向它射击就很好了。如果再能有一个系统性的任务,每天每周需完成的挑战和一些武器升级的话,那么这个游戏就会很有趣了。我的第一个想法是创立一款游戏,让一些可爱的小怪兽在一个美丽的场景中到处跑,可以藏在树后面,或者躲在老房子里,甚至可以是在云朵里。你需要做的就是尽可能多地将它们打下。我说的可爱的小怪兽,指的是一些像Gremlins(小精灵)之类的玩意。它们会搬一些体形巨大的机器,或者是做一些其他的愚蠢的事情来让你哈哈大笑。当然,作为一个拥有零预算的独立游戏开发者,就按我可以想象到的动画复杂程度来看,我知....
Netbeans8.2开发LibGDX程序报错:Could not find org.jetbrains.trove4j:trove4j:20160824.
从Github上下载项目代码到本地,用Netbeans打开后,执行Clean and Build后,控制台报 * What went wrong: A problem occurred configuring project ':android'. > SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. 解决方式:重新设置Android SDK即可
本系列教程来自MTX(MoribitoTechX)的Tutorial Blog: http://moribitotechx.blogspot.co.uk/ 因需科学上网才能访问,且该博客5年多没有更新了(最后更新时间2013.7.27),故这里手打上来留一备份。因为比较长,分成两部分:第一部分 项目地址:https://github.com/moribitotech/MTX Series 4 (Fun & Cool Things) This series is for showing nice effects and smart actions for your games and live wallpapers. The best part is, it only requires single line of code to create effects or couple of line of codes for smart actions. Game effects, Menu effects, Information panel effects, Backgroun....
本系列教程来自MTX(MoribitoTechX)的Tutorial Blog: http://moribitotechx.blogspot.co.uk/ 因需科学上网才能访问,且该博客5年多没有更新了(最后更新时间2013.7.27),故这里手打上来留一备份。因为比较长,分成两部分:第二部分 项目地址:https://github.com/moribitotech/MTX Series 1 (Introduction to MTX with LibGDX Scene2D) In this series I will talk about Mini-MTX framework which built on LibGDX Scene2D. This is a mandatory series, if you want to continue other series. I will talk about the structure of MTX, screen systems, advanced actors, game specific buttons, animations and....
转自Aurelien Ribon’s Dev Blog的Tutorial: Animated grass using LibGDX 注意:文中大部分链接已失效 在github上找到该作者的项目地址:universal-tween-engine A little and easy tutorial today, but which can add a nice value to your games: we’re going to animate some grass to enhance the floors. Indeed, even if you really suck at graphics as I do, you can fake the user into thining it’s still awesome by animating everything! If it doesn’t look pretty, make it move! Of course, I don’t claim that’s the best way to implement animated g....
请看下面的代码: package com.packtpub.libgdx.canyonbunny.game; public class WorldController { private static final String TAG = WorldController.class.getName(); public WorldController () { } private void init () { } public void update (float deltaTime) { } } WorldController类有一个内部的init()方法用于初始化对象。我们知道,所有的初始化代码也可以放到构造函数中。然而,在很多情况下,初始化代码位于一个单独的函数中也很有意义。无论何时我们需要在游戏中重置一个对象的时候,我们不要完全重建这个对象,这样就可以提高性能。这种实现还可以极大的降低被垃圾回收期中断的概率。我们尝试重用现有的对象,这样可以达到最大性能和最小内存占用的设计目标。这一点对于安卓这种有效资源的只能手机尤其重要。 好吧,翻译的确实够生硬的,意思应该都理解。之前遇到类....
Netbeans10已经发布了,之所以还使用Netbeans8.2是因为目前只有该版本有插件支持Android开发,不知道Netbeans何时才能从Apache孵化出来。。。 下载并安装Java SE Development Kit 8 Downloads 下载并安装NetBeans IDE 8.2 Download,选择Java SE版即可。 安装NBANDROID-V2插件,参考Netbeans8.2安装Android开发插件NBAndroid。 安装Android SDK,参考Android SDK的下载与安装和android AVD 启动时报错。 下载Gradle based setup application,并执行: 启动Netbeans8.2,打开上一步上生成的gradle项目: 打开后出现问题,请参考Netbeans8.2使用NBANDROID-V2插件打包libgdx android项目报错和Netbeans8.2打开libgdx android项目报错This Gradle plugin requires a newer IDE able to request....
在项目的gradle.properties配置文件中加入以下这句: android.injected.build.model.only.versioned=3 参考android 报错 This Gradle plugin requires a newer IDE able to request IDE model level 3 错误解决方案,原文针对android studio IDE,对Netbeans8.2同样适用。