AxiosEngine-old 

AxiosEngine-old Commit Details


Date:2012-06-03 15:39:00 (12 years 6 months ago)
Author:Natalie Adams
Branch:default
Commit:9e5a38542239
Parents: 9d0d0767a8cf
Message:+ * - Adding rotation to DrawableAxiosGameObject

+ * - Adding InputState extensions to test for input agaisnt Player One
Changes:
Maxios/Axios_WP7.csproj (1 diff)
Maxios/Axios_Windows.csproj (1 diff)
Maxios/Axios_Xbox_360.csproj (1 diff)
Maxios/Axios_settings.cs (1 diff)
Maxios/Engine/DrawableAxiosGameObject.cs (2 diffs)
Maxios/Engine/Extensions/Contact.cs (1 diff)
Maxios/ScreenSystem/InputState.cs (3 diffs)

File differences

axios/Axios_WP7.csproj
169169
170170
171171
172
172173
173174
174175
<Compile Include="Engine\DrawableBreakableAxiosGameObject.cs" />
<Compile Include="Engine\Extensions\Bitmap.cs" />
<Compile Include="Engine\Extensions\Contact.cs" />
<Compile Include="Engine\Extensions\InputState.cs" />
<Compile Include="Engine\Extensions\String.cs" />
<Compile Include="Engine\Extensions\Texture2D.cs" />
<Compile Include="Engine\File\AxiosFile.cs" />
axios/Axios_Windows.csproj
212212
213213
214214
215
215216
216217
217218
<Compile Include="Engine\DrawableBreakableAxiosGameObject.cs" />
<Compile Include="Engine\Extensions\Bitmap.cs" />
<Compile Include="Engine\Extensions\Contact.cs" />
<Compile Include="Engine\Extensions\InputState.cs" />
<Compile Include="Engine\Extensions\String.cs" />
<Compile Include="Engine\Extensions\Texture2D.cs" />
<Compile Include="Engine\File\AxiosFile.cs" />
axios/Axios_Xbox_360.csproj
162162
163163
164164
165
165166
166167
167168
<Compile Include="Engine\DrawableBreakableAxiosGameObject.cs" />
<Compile Include="Engine\Extensions\Bitmap.cs" />
<Compile Include="Engine\Extensions\Contact.cs" />
<Compile Include="Engine\Extensions\InputState.cs" />
<Compile Include="Engine\Extensions\String.cs" />
<Compile Include="Engine\Extensions\Texture2D.cs" />
<Compile Include="Engine\File\AxiosFile.cs" />
axios/Axios_settings.cs
9797
9898
9999
100
101
100102
101103
102104
* - Upon some testing - developers will need to use #if WINDOWS/#endif tags to make sure they can't use XNACC in WP7/Xbox360
* - Adding axioslog command to output AxiosLog
* - Changing variables in CommandConsoleBase to be non-static
* - Adding rotation to DrawableAxiosGameObject
* - Adding InputState extensions to test for input agaisnt Player One
*
*
*/
axios/Engine/DrawableAxiosGameObject.cs
1616
1717
1818
19
20
21
22
23
24
25
26
1927
2028
2129
......
4351
4452
4553
46
54
4755
48
56
4957
5058
5159
protected bool _adjustunits = true;
protected bool _relativetocamera = true;
protected float _rotation;
public float Rotation
{
get { return _rotation; }
set { _rotation = value; }
}
public bool AdjustUnits //if value changed - change position depending on adjusting the units
{
get { return _adjustunits; }
else
gameScreen.ScreenManager.SpriteBatch.Begin();
if (_adjustunits)
gameScreen.ScreenManager.SpriteBatch.Draw(Texture, ConvertUnits.ToDisplayUnits(Position), null, Color.White, 0, Origin, _scale, SpriteEffects.None, 0);
gameScreen.ScreenManager.SpriteBatch.Draw(Texture, ConvertUnits.ToDisplayUnits(Position), null, Color.White, _rotation, Origin, _scale, SpriteEffects.None, 0);
else
gameScreen.ScreenManager.SpriteBatch.Draw(Texture, Position, null, Color.White, 0, Origin, _scale, SpriteEffects.None, 0);
gameScreen.ScreenManager.SpriteBatch.Draw(Texture, Position, null, Color.White, _rotation, Origin, _scale, SpriteEffects.None, 0);
gameScreen.ScreenManager.SpriteBatch.End();
}
axios/Engine/Extensions/Contact.cs
4646
4747
4848
49
50
5149
5250
5351
}
return direction;
}
}
axios/ScreenSystem/InputState.cs
473473
474474
475475
476
477476
478477
479478
......
501500
502501
503502
504
505503
506504
507505
......
552550
553551
554552
555
556553
557554
558555
}
}
/// <summary>
/// Helper for checking if a button was pressed during this update.
/// The controllingPlayer parameter specifies which player to read input for.
}
}
/// <summary>
/// Helper for checking if a key was newly pressed during this update. The
/// controllingPlayer parameter specifies which player to read input for.
}
}
/// <summary>
/// Helper for checking if a button was newly pressed during this update.
/// The controllingPlayer parameter specifies which player to read input for.

Archive Download the corresponding diff file

Page rendered in 0.45590s using 14 queries.