Skip to content

Instantly share code, notes, and snippets.

@Qwark
Qwark / mycustomui.wxs
Created January 18, 2011 09:44
work installer
<?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" />
<?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" />
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;
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;
}