This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | |
<Product Id="*" UpgradeCode="CBA4FC66-C74B-4B79-BDC5-AD872CB8DB2E" Version="1.0.0.0" Language="1033" Name="My Application Name" Manufacturer="My Manufacturer Name"> | |
<Package InstallerVersion="300" Compressed="yes" /> | |
<Media Id="1" Cabinet="myapplication.cab" EmbedCab="yes" /> | |
<!-- The following three sections are from the How To: Add a File to Your Installer topic--> | |
<Directory Id="TARGETDIR" Name="SourceDir"> | |
<Directory Id="CommonAppDataFolder"> | |
<Directory Id="APPLICATIONROOTDIRECTORY" Name="My Application Name" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | |
<Product Id="*" UpgradeCode="CBA4FC66-C74B-4B79-BDC5-AD872CB8DB2E" Version="1.0.0.0" Language="1033" Name="My Application Name" Manufacturer="My Manufacturer Name"> | |
<Package InstallerVersion="300" Compressed="yes" /> | |
<Media Id="1" Cabinet="myapplication.cab" EmbedCab="yes" /> | |
<!-- The following three sections are from the How To: Add a File to Your Installer topic--> | |
<Directory Id="TARGETDIR" Name="SourceDir"> | |
<Directory Id="CommonAppDataFolder"> | |
<Directory Id="APPLICATIONROOTDIRECTORY" Name="My Application Name" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends BaseGameActivity{ | |
private static final int CAMERA_WIDTH = 720; | |
private static final int CAMERA_HEIGHT = 480; | |
private TMXTiledMap mTMXTiledMap; | |
private BoundCamera mBoundChaseCamera; | |
private Texture mTexture; | |
private TextureRegion mPlayerTextureRegion; | |
private Sprite player; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In PhysicalSprite, add body.setUserData(this) | |
public void createBody(BodyDef bodyDef, FixtureDef fixture) { | |
body = Physics.world.createBody(bodyDef); | |
body.setUserData(this); | |
body.createFixture(fixture); | |
this.bodyDef = bodyDef; | |
usePhysics = true; | |
} |