From 6c6a37b3b7f5d74475e2211616fe2a2ab7c6e508 Mon Sep 17 00:00:00 2001 From: brady Date: Sat, 10 Apr 2010 23:59:19 +0000 Subject: [PATCH] began on the basic character, player, and monster classes. Also created a second project in CarFire called CharacterTestBed so I can work on testing characters with movement and stuff. git-svn-id: https://bd85.net/svn/cs3505_group@58 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- CarFire/CarFire/CarFire.sln | 12 ++ CarFire/CarFire/Character.cs | 15 ++ CarFire/CarFire/CharacterTestBed/Character.cs | 138 ++++++++++++++++++ .../CharacterTestBed/CharacterTestBed.csproj | 137 +++++++++++++++++ .../Content/Content.contentproj | 52 +++++++ .../CharacterTestBed/Content/pinball.png | Bin 0 -> 3807 bytes CarFire/CarFire/CharacterTestBed/Game.ico | Bin 0 -> 4286 bytes CarFire/CarFire/CharacterTestBed/Game1.cs | 98 +++++++++++++ .../CharacterTestBed/GameThumbnail.png | Bin 0 -> 5734 bytes CarFire/CarFire/CharacterTestBed/Program.cs | 19 +++ .../Properties/AssemblyInfo.cs | 33 +++++ 11 files changed, 504 insertions(+) create mode 100644 CarFire/CarFire/Character.cs create mode 100644 CarFire/CarFire/CharacterTestBed/Character.cs create mode 100644 CarFire/CarFire/CharacterTestBed/CharacterTestBed.csproj create mode 100644 CarFire/CarFire/CharacterTestBed/Content/Content.contentproj create mode 100644 CarFire/CarFire/CharacterTestBed/Content/pinball.png create mode 100644 CarFire/CarFire/CharacterTestBed/Game.ico create mode 100644 CarFire/CarFire/CharacterTestBed/Game1.cs create mode 100644 CarFire/CarFire/CharacterTestBed/GameThumbnail.png create mode 100644 CarFire/CarFire/CharacterTestBed/Program.cs create mode 100644 CarFire/CarFire/CharacterTestBed/Properties/AssemblyInfo.cs diff --git a/CarFire/CarFire/CarFire.sln b/CarFire/CarFire/CarFire.sln index 9a8c63f..6ed4e2b 100644 --- a/CarFire/CarFire/CarFire.sln +++ b/CarFire/CarFire/CarFire.sln @@ -3,7 +3,13 @@ Microsoft Visual Studio Solution File, Format Version 10.00 # Visual Studio 2008 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CarFire", "CarFire\CarFire.csproj", "{FDDA5BCD-3616-400D-A40B-CFD57C54D0F2}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CharacterTestBed", "CharacterTestBed\CharacterTestBed.csproj", "{757B5B2E-27C5-43E3-BF29-5025E9DDDBF1}" +EndProject Global + GlobalSection(SubversionScc) = preSolution + Svn-Managed = True + Manager = AnkhSVN - Subversion Support for Visual Studio + EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x86 = Debug|x86 Release|x86 = Release|x86 @@ -15,6 +21,12 @@ Global {FDDA5BCD-3616-400D-A40B-CFD57C54D0F2}.Release|x86.Build.0 = Release|x86 {C115BBCA-D6FD-42AF-B2A1-3E895808BC14}.Debug|x86.ActiveCfg = Debug|x86 {C115BBCA-D6FD-42AF-B2A1-3E895808BC14}.Release|x86.ActiveCfg = Release|x86 + {757B5B2E-27C5-43E3-BF29-5025E9DDDBF1}.Debug|x86.ActiveCfg = Debug|x86 + {757B5B2E-27C5-43E3-BF29-5025E9DDDBF1}.Debug|x86.Build.0 = Debug|x86 + {757B5B2E-27C5-43E3-BF29-5025E9DDDBF1}.Release|x86.ActiveCfg = Release|x86 + {757B5B2E-27C5-43E3-BF29-5025E9DDDBF1}.Release|x86.Build.0 = Release|x86 + {4F0BE90F-1E46-4959-80A5-E92B578F6A48}.Debug|x86.ActiveCfg = Debug|x86 + {4F0BE90F-1E46-4959-80A5-E92B578F6A48}.Release|x86.ActiveCfg = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/CarFire/CarFire/Character.cs b/CarFire/CarFire/Character.cs new file mode 100644 index 0000000..3b9833e --- /dev/null +++ b/CarFire/CarFire/Character.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Content; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; + +public class Character +{ + public Character() + { + } +} diff --git a/CarFire/CarFire/CharacterTestBed/Character.cs b/CarFire/CarFire/CharacterTestBed/Character.cs new file mode 100644 index 0000000..3ebb093 --- /dev/null +++ b/CarFire/CarFire/CharacterTestBed/Character.cs @@ -0,0 +1,138 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Content; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; + +namespace CarFire +{ + /// + /// Base class for all Characters, + /// includes: basic position information, + /// character Texture + /// health + /// damage + /// + public class Character + { + //Member Variables + Map theMap; + int movementSpeed; + int gridX; + int gridY; + Texture2D charModel; + int health; + int damage; + int range; + bool isMoving; + int pixelX; + int pixelY; + + /// + /// Call this method to give the game a chance to load its content. + /// + /// The map that this character will interact with + /// The model for this character + /// How fast the character moves + /// The starting health of the character + /// The base damage of the character + /// The range of the character attack + public Character( Map _currentMap, + Texture2D _charModel, + int _baseMovementSpeed, + int _baseHealth, + int _baseDamage, + int _baseRange) + { + theMap = _currentMap; + movementSpeed = _baseMovementSpeed; + gridX = 100; //should be included in the map as a designated spawn point to begin map + gridY = 100; // + charModel = _charModel; + health = _baseHealth; + range = _baseRange; + isMoving = false; + pixelX = gridX * 1; // 1 needs to be changed to the size of the map grid, also someway need to be determined to change to screen cordinates from would the world cordinates + pixelY = gridY * 1; // + } + + public void Draw(SpriteBatch spriteBatch) + { + spriteBatch.Draw(charModel, new Vector2(pixelX, pixelY), null, Color.White, 0, new Vector2(0f,0f), 1f, SpriteEffects.None, 0); + } + + /// + /// Adjust Health of player + /// + public int Health + { + get { return health; } + set { health = value; } + } + + public bool IsMoving + { + get { return isMoving; } + } + } + + /// + /// A manager class to handle network interactions between peers and + /// lobby/game switching. + /// + public class Player : Character + { + //Member Variables + + public Player( Map _currentMap, + Texture2D _charModel, + int _baseMovementSpeed, + int _baseHealth, + int _baseDamage, + int _baseRange) + : base(_currentMap,_charModel,_baseMovementSpeed, _baseHealth, _baseDamage, _baseRange) + { + } + + public void Update() + { + + } + } + + /// + /// A manager class to handle network interactions between peers and + /// lobby/game switching. + /// + public class Monster : Character + { + //Member Variables + public Monster( Map _currentMap, + Texture2D _charModel, + int _baseMovementSpeed, + int _baseHealth, + int _baseDamage, + int _baseRange) + : base(_currentMap,_charModel,_baseMovementSpeed, _baseHealth, _baseDamage, _baseRange) + { + + } + + public void Update() + { + + } + } + + //this is for testing purposes only! + public class Map + { + public Map() + { + + } + } +} \ No newline at end of file diff --git a/CarFire/CarFire/CharacterTestBed/CharacterTestBed.csproj b/CarFire/CarFire/CharacterTestBed/CharacterTestBed.csproj new file mode 100644 index 0000000..f8dd900 --- /dev/null +++ b/CarFire/CarFire/CharacterTestBed/CharacterTestBed.csproj @@ -0,0 +1,137 @@ + + + {757B5B2E-27C5-43E3-BF29-5025E9DDDBF1} + {6D335F3A-9D43-41b4-9D22-F6F17C4BE596};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Debug + x86 + WinExe + Properties + CharacterTestBed + CharacterTestBed + v3.5 + v3.0 + Windows + b52464cd-8b86-4443-b045-7663f76abf6a + Game.ico + GameThumbnail.png + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + true + full + false + bin\x86\Debug + DEBUG;TRACE;WINDOWS + prompt + 4 + true + false + x86 + false + + + pdbonly + true + bin\x86\Release + TRACE;WINDOWS + prompt + 4 + true + false + x86 + true + + + + False + True + + + False + True + + + False + + + False + + + False + + + 3.5 + False + + + 3.5 + False + + + + + + + + + + + + + + + 4f0be90f-1e46-4959-80a5-e92b578f6a48 + False + + + + + False + .NET Framework 2.0 %28x86%29 + false + + + False + .NET Framework 3.0 %28x86%29 + false + + + False + .NET Framework 3.5 + true + + + False + Windows Installer 3.1 + true + + + False + Microsoft XNA Framework Redistributable 3.0 + true + + + + + + \ No newline at end of file diff --git a/CarFire/CarFire/CharacterTestBed/Content/Content.contentproj b/CarFire/CarFire/CharacterTestBed/Content/Content.contentproj new file mode 100644 index 0000000..8af346f --- /dev/null +++ b/CarFire/CarFire/CharacterTestBed/Content/Content.contentproj @@ -0,0 +1,52 @@ + + + 4f0be90f-1e46-4959-80a5-e92b578f6a48 + {96E2B04D-8817-42c6-938A-82C39BA4D311};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Debug + x86 + Library + Properties + v3.5 + v3.0 + x86 + bin\$(Platform)\$(Configuration) + + + Windows + + + Windows + + + + False + + + False + + + False + + + False + + + False + + + + + pinball + TextureImporter + TextureProcessor + + + + + \ No newline at end of file diff --git a/CarFire/CarFire/CharacterTestBed/Content/pinball.png b/CarFire/CarFire/CharacterTestBed/Content/pinball.png new file mode 100644 index 0000000000000000000000000000000000000000..497253d77707375237cf8a8bf5f1b6d66aee7373 GIT binary patch literal 3807 zcmV<54j}P~P)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLR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W6U*XzBfH<(+E>fgGj+?rV6}?-KdQ*KM>LJS+HrNGChIPn%)9X?Wfu~cTq&1 z&u4NztEYj}+V0aX)kO3SGyf?fhjUO4)v1-v=x)~U$1H#^OCq{KL>JQeJL_ys?^({d z+kpbWcGEP!>aqA95naz`Yzof<*+)H7^8nrkfU=YDcOrT{hfWLNKR^NCT+=jHQZShL zeIoiKKjiaZX6(ybvC9C?Ox(FTe}Ra;PT{F1H_`pt6#yrjrm+)uuFm(E`AH)BT=(Vw z0KEv{@uq36PQBhH@S%u2B_gjd^FRmtZI}h{P6z#C=Dk|sNf2k5`M8LD2;lF10zU)r zP}4N8rShg$=f_`mGW`Nz1HfAV9s{rf;6VU)0?_{s41m7?{Ma?nS54FWe6#5O835v1 Vij2#B;|Kr%002ovPDHLkV1kp;Ba#3B literal 0 HcmV?d00001 diff --git a/CarFire/CarFire/CharacterTestBed/Game.ico b/CarFire/CarFire/CharacterTestBed/Game.ico new file mode 100644 index 0000000000000000000000000000000000000000..8cff41eab28dc99e31a693a39d399f9eb05f1cce GIT binary patch literal 4286 zcmb_f3v|=<6%K+{L>`K=iMXQUIGAsp+uVi<+pL~>JnD`EL0}zFdD&v$bktI5DMFwJ z!Orrsv<4QG#gHqCzG@(gO(^?wxFm33AzLKz(X$ zI`0`78JRsaG&FZ`aBv=u58G_E*$#)}9=<<5K0XQ0-u8X#-0C%6&*$@nz{iZ?;o(rd zUZ1GdYFFxXx|ai3zTl zm>7RkQ`0hyMiXW-nVvyx54l{f>A>K2yf@)i^S${!=*fKLSuh!Pqe%aE}5(XR|M{Q=|`N=;81~=!9I)}nX>6R^t4qZnhd7OQu z)3wotb>WNyoj-qmC9rvc>%dsS|HPZ~xRvu@?jd%&{r>Lm?#FU+avTMs!;UVaiu!u> zE-M9sQxdq@*NCtyYKOxdq_CeLqDFI0ui%GnMO#8kcg-FEp0<-R_>z&VN^w#((Uq*m8c zbMras>obzU&_Zj%-}P_}Dl043x3;$a`RdiHk8+!aGKz@ps%Sj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rb?D^ldpw8cLww&`@wfj-#}( zoWzAk#?!W^*q{}ynCt!sEqa7&&pL=b?7`UB*zrS$4h{_r^pB7GJ?H@^S!{!3>eP{0 z-%fc0T3Vwhp*M3gXkV8);9u5QK`*{Ahn6l`NLA>~E`tg@ucK@GM+1D85Rn65AFOUV|dSA;ZSLDk*(u$`}k>FI~DZE zslnJrI*lqYo9L0R$<#q>MVYjG-@i#Jt3%CY#Ph@1v#01kS$mwAXPk1myb?8k4*Jh~ z<+SVj56=vUgJZZIT%3aW^F?s;6#C-~_a!vF8rtmMBNPtR)z&!7eP-(EGGHFjlSI6q z#Nkg;?TNhB7j1-J%BFDklfj^%oCnt|erRQCjztPg#s(yO*hz>K7lnx&*rnIzF8+zP>9V(}3wIBfoi4K1)|5M|>Z*Mwzsz&&*pX_% zy>aySW@zi9;Q7ztdn(tIG5tQwZ}#!O&VxAc??c96Q4C_htm;bMx^)ysXIxyI7aB5# z-VS4q^Gt`j-5uolgdgMkdR)O6CUHLC=e@x8Fa7=f5#Z-rIDZ!TJ_3AZaxVvY#vJ+% z&#td`D@Vj|qgRky2x6HGUw6SKji8nu)C*k69__J6TfZsxDK0cx@Mtnf#9XUOD4Q*#UgGj$c}=a{{o}IngRd- literal 0 HcmV?d00001 diff --git a/CarFire/CarFire/CharacterTestBed/Game1.cs b/CarFire/CarFire/CharacterTestBed/Game1.cs new file mode 100644 index 0000000..3983684 --- /dev/null +++ b/CarFire/CarFire/CharacterTestBed/Game1.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Audio; +using Microsoft.Xna.Framework.Content; +using Microsoft.Xna.Framework.GamerServices; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; +using Microsoft.Xna.Framework.Media; +using Microsoft.Xna.Framework.Net; +using Microsoft.Xna.Framework.Storage; +using CarFire; + +namespace CharacterTestBed +{ + /// + /// This is the main type for your game + /// + public class Game1 : Microsoft.Xna.Framework.Game + { + GraphicsDeviceManager graphics; + SpriteBatch spriteBatch; + Player p; + public Game1() + { + graphics = new GraphicsDeviceManager(this); + Content.RootDirectory = "Content"; + } + + /// + /// Allows the game to perform any initialization it needs to before starting to run. + /// This is where it can query for any required services and load any non-graphic + /// related content. Calling base.Initialize will enumerate through any components + /// and initialize them as well. + /// + protected override void Initialize() + { + // TODO: Add your initialization logic here + + base.Initialize(); + } + + /// + /// LoadContent will be called once per game and is the place to load + /// all of your content. + /// + protected override void LoadContent() + { + // Create a new SpriteBatch, which can be used to draw textures. + spriteBatch = new SpriteBatch(GraphicsDevice); + + p = new Player(new Map(), Content.Load("pinball"), 4, 100, 20, 10); + // TODO: use this.Content to load your game content here + } + + /// + /// UnloadContent will be called once per game and is the place to unload + /// all content. + /// + protected override void UnloadContent() + { + // TODO: Unload any non ContentManager content here + } + + /// + /// Allows the game to run logic such as updating the world, + /// checking for collisions, gathering input, and playing audio. + /// + /// Provides a snapshot of timing values. + protected override void Update(GameTime gameTime) + { + // Allows the game to exit + if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) + this.Exit(); + + // TODO: Add your update logic here + + base.Update(gameTime); + } + + /// + /// This is called when the game should draw itself. + /// + /// Provides a snapshot of timing values. + protected override void Draw(GameTime gameTime) + { + GraphicsDevice.Clear(Color.CornflowerBlue); + spriteBatch.Begin(SpriteBlendMode.AlphaBlend); + + p.Draw(spriteBatch); + + // TODO: Add your drawing code here + spriteBatch.End(); + base.Draw(gameTime); + } + } +} diff --git a/CarFire/CarFire/CharacterTestBed/GameThumbnail.png b/CarFire/CarFire/CharacterTestBed/GameThumbnail.png new file mode 100644 index 0000000000000000000000000000000000000000..462311aba2cd09de3992129ca43564755249ef09 GIT binary patch literal 5734 zcmV-s7MbaZP)00009a7bBm000XU z000XU0RWnu7ytkYO=&|zP*7-ZbZ>KLZ*U+5Lu!Sk^o_Z5E4Meg@_7P6crJiNL9pw)e1;Xm069{HJUZAPk55R%$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Agj)}hYU-DM zD>E5QRPN%gq+s;ZQ75zYuQxD%0WIrYsiM}1Xz7%>|5U3-$W)x7Bve3RKm0FA%+z=``jyE#Nm;{~HSbt0f%+t=zXVYLP{89_#}6LZ*M5 z{eIC&@S_FzH(LKZ%qqLDp>*}F!r@0(emi&RcTVyH-xH6}@kiEwHTrvOZp{UVU^^wj zeXxEWkNKi}zr?#=wdBhM_(wq)BCOT=fNUW6a$MW*+QY9U!w(nmYgYcSQ|2R8w*CJD Y0L3g3-xp*i%>V!Z07*qoM6N<$f>>Wb>;M1& literal 0 HcmV?d00001 diff --git a/CarFire/CarFire/CharacterTestBed/Program.cs b/CarFire/CarFire/CharacterTestBed/Program.cs new file mode 100644 index 0000000..460aae0 --- /dev/null +++ b/CarFire/CarFire/CharacterTestBed/Program.cs @@ -0,0 +1,19 @@ +using System; + +namespace CharacterTestBed +{ + static class Program + { + /// + /// The main entry point for the application. + /// + static void Main(string[] args) + { + using (Game1 game = new Game1()) + { + game.Run(); + } + } + } +} + diff --git a/CarFire/CarFire/CharacterTestBed/Properties/AssemblyInfo.cs b/CarFire/CarFire/CharacterTestBed/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..af2e9cf --- /dev/null +++ b/CarFire/CarFire/CharacterTestBed/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("CharacterTestBed")] +[assembly: AssemblyProduct("CharacterTestBed")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyCompany("Microsoft")] + +[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("fe5d617d-39d4-4c3a-bdb6-66ea297be779")] + + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] -- 2.45.2