开发者

Android+Eclipse+Flixel - Can't Find Superclass

开发者 https://www.devze.com 2023-02-18 20:48 出处:网络
I\'m working through this tutorial: http://www.bukisa.com/articles/223910_creating-a-game-on-google-android-game-with-flixel-getting-started

I'm working through this tutorial:

http://www.bukisa.com/articles/223910_creating-a-game-on-google-android-game-with-flixel-getting-started

But I seem to be having a breakdown between steps 4 and 5. I dl/unzip the Flixel source files into the "Flixel Demo" fo开发者_如何学JAVAlder, but they're not being recognized/imported into Eclipse? So when I go to select the org.flixel.FlxState superclass for the MenuState class, the only superclass available is java.lang.Object.

As a note, I've also had trouble with Flex being able to find files that I dl/unzip. It returns an error saying it can't find my lib files.

Any ideas? I'm sure this is just super noobness.


After you extracted the zip file into your project folder go to the Package Explorer in Eclipse and click on the project and select File > Refresh (or F5). Then do a Project > Clean.

In the Package Explorer underneath your project name you should see the "src" directory, and under that you should see a package name like "org.flixel". If it's working right you should be able to open up that package and see all the Flixel classes like FlxBlock.java and they should all have a "J" icon where the "J" is filled in with color. If you don't see that then either you extracted it in the wrong place or the project was not created right.

0

精彩评论

暂无评论...
验证码 换一张
取 消