如何在libgdx中使用SQLite

如何在libgdx中使用SQLite

本文介绍了如何在libgdx中使用SQLite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人知道一个很好的教程,该教程解释了如何将SQLite与libgdx一起使用.我发现的所有内容都无法很好地解释它,而我在弄清楚如何使用它时遇到了麻烦.因此,如果您知道可以很好地解释所有内容的链接,请给我链接.预先感谢.

I was wondering if anyone knows a good tutorial that explains how to use SQLite with libgdx. All the ones I have found don't explain it well and I'm having trouble figuring out how to use it. So if you know of one that explains everything decently please give me the link to it. Thanks in advance.

推荐答案

请注意,可用的扩展程序不适用于多平台,最大程度地,您将能够支持Android和台式机.我的建议是为您创建用于通过LibGDX File API访问存储为设备上文件信息的方法的类.您将不会使用SQL,它肯定会花费更长的时间,但是您将获得多平台支持(当然,如果您也是那样的话).

Notice that the extensions available won't work for multi-platform, at max you'll be able to support Android and Desktop. My advise is for you to create your own classes for methods for accessing info stored as files on the device trough the LibGDX File API. You won't get to use SQL and it will certainly take longer but you'll get try multi-platform support (if that is what you're looking too of course).

这篇关于如何在libgdx中使用SQLite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 15:00