j2me中如何添加背景

发布于 2024-12-04 15:51:12 字数 291 浏览 3 评论 0原文

现在我正在开发一个移动应用程序,我已经通过 Canvas 开发了菜单,当我尝试将背景添加到应用程序中时,我遇到了困难。

这意味着我需要将背景添加到我的应用程序中,并且菜单可以在此背景上可见。

我正在尝试找到将背景添加到 j2me 中的方法,并且我使用数组作为菜单,并且我找到了一个关于使用 TiledLayerLayermanager 在 J2me 中添加背景的示例,因此我只是将这些对象添加到我的代码中进行测试。

它可以成为我的代码的背景吗?我不能让它这样工作

Now I am developing a mobile application, I have developed menu by Canvas and I get stuck when I try to add background into application.

It means that I need to add background into my application and menu can visible on this background.

I am trying to find the way to add background into j2me, and I use array for menu and I found an example about adding background in J2me using TiledLayer and Layermanager, therefore that I just add these objects into my code for test.

Can it become a background in my code? I can not make it work that way

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倾`听者〃 2024-12-11 15:51:12

在J2me中使用TiledLayer和Layermanager添加背景

上面给出的TiledLayer和Layermanager,首先考虑使用GameCanvas 而不是 Canvas

    public class MainMenu extends GameCanvas //...

学习一些介绍性教程也不会有什么坏处:

教程提供了如何使用 TiledLayerLayerManager 添加背景的详细说明

add background in J2me used TiledLayer and Layermanager

given above, first of all consider using GameCanvas instead of Canvas

    public class MainMenu extends GameCanvas //...

Studying some introductory tutorials wouldn't hurt either:

By the way both above tutorials provide detailed explanations how to use TiledLayer and LayerManager for adding background

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文