a:20: attempt to index field 'world' (a nil value) Local puckBody = Bitmap.new(Texture.new("puck.png")) Local puckHalo = Bitmap.new(Texture.new("puckHalo.png")) Local puckArrow = Bitmap.new(Texture.new("puckArrow.png")) Sprite:setRotation(body:getAngle() * 180 / math.pi) Self:addEventListener(Event.ENTER_FRAME, self.onEnterFrame, self) Self:addEventListener("exitEnd", self.onTransitionOutEnd, self) Self:addEventListener("exitBegin", self.onTransitionOutBegin, self) Self:addEventListener("enterEnd", self.onTransitionInEnd, self) Self:addEventListener("enterBegin", self.onTransitionInBegin, self) In Scene3:init() i want to add a "Puck" with physics behavior. "scene3" gets called in a by sceneManager. I have some trouble to add physics to a class object. Close the settings and then Build and Run the player.I'm new to gideros and not the best in programming. And make sure that you set the code signing identity in the configuration you want to use when you build the player. If it doesn’t show up, then you have forgotten to actually install it. There you need to set the code signing identity to the one of your provisioning profile. Here you need to set the bundle identifier to the app ID you have used to create a provisioning profile in the iOS Provisioning Portal.Īfter you have made your changes, save it and open the project settings. Inside XCode, browse to the resource section in the “Groups and Files” list box and there open the ist. Start XCode and load the GiderosiPhonePlayer.xcodeproj project. Please unzip the GiderosiPhonePlayer.zip archive to a location of your choice. Like everything for iOS, this has to be done within XCode. You should get a message that the player was installed on your device.įor your iOS device, you need to build and sign the player application yourself. To load the player app via ADB, open the console terminal on your computer and type in the following: Please study the link below for further information about how to do this: For this, the Android SDK and tools have to be installed. The second method is to connect the phone to your computer and upload it with the ADB command. The first method is to upload the apk file to your web space and then point your device via your web browser to the location of the player apk file in the web. This option has to be activated in your phone under Settings->Applications->Unknown sources. For both, make sure that you set the options in your device to allow the installation of non-market apps. There are two ways to actually load the apk file onto your device. It is located inside the main Gideros folder and is called GiderosAndroidPlayer.apk. Gideros ships with a pre-compiled player app for your Android device. Hint: For some games, you may want to set to 15 FPS to see the details in order to debug some graphical elements. This, however, does not change the frame rate on the device. If for some reason, you want to set to a different frame rate, you can choose either 30 or 15. Normally this frame rate can be set at 60. This is more than enough for the fastest games out there (however there are some devices with a frame rate of 100). On mobile devices, the natural frame rate is usually 60fps. You can also display various information on your running app, like FPS, size, etc. Here you can emulate different devices by selecting a preconfigured set of parameters (iPhoneX, iPad, etc) or you can set your own parameters like orientation, resolution, and framerate. The Gideros Player can be set to be always on top. To see the screenshot go to menu File->Open Directory. You can capture a screenshot of your app/game by going to the menu View->Screenshot (F12). There are many parameters for the Gideros Player, we will only list a few of them. The Start and Stop icons become active in Gideros Studio only when a Gideros Player is up and running whether on the desktop or on a device. Gideros Studio will then start the Gideros Player application and shortly after you should see the player on your desktop: The fastest way is to click on that little game controller icon in the toolbar. To get your first sample script running in the Gideros desktop player, you need to start it. Running your application on the Gideros Player 3 Installing the Gideros Player on Android.1 Running your application on the Gideros Player.
0 Comments
Leave a Reply. |