Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10....
Transcript of Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10....
![Page 1: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/1.jpg)
![Page 2: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/2.jpg)
![Page 3: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/3.jpg)
![Page 4: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/4.jpg)
![Page 5: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/5.jpg)
![Page 6: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/6.jpg)
![Page 7: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/7.jpg)
![Page 8: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/8.jpg)
![Page 9: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/9.jpg)
Game GraphicsDevice
// 向きとサイズの指定
// 矩形の定義
![Page 10: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/10.jpg)
protected override void LoadContent()
{
spriteBatch = new SpriteBatch(GraphicsDevice);
// 画像をロードしテクスチャに
t_PinkGirl = Content.Load<Texture2D>("PinkGirl");
}
![Page 11: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/11.jpg)
protected override void Update(GameTime gameTime)
{
CollisionTest(); // 衝突検出
HandleInputMultiTouch(); // マルチタッチ処理
KeyboardInput(); // キーボード処理
base.Update(gameTime);
}
![Page 12: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/12.jpg)
spriteBatch.Draw(t_PinkGirl, r_PinkGirl, Color.White);
spriteBatch.Draw(t_PlanetBoy, r_PlanetBoy, Color.White);
spriteBatch.Draw(t_GreenGem, r_GreenGem, Color.White);
spriteBatch.Draw(t_Heart, r_Heart, Color.White);
spriteBatch.Draw(t_Key, r_Key, Color.White);
![Page 13: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/13.jpg)
// 矩形オブジェクトを使えば衝突検出は簡単
Rectangle Intersects
![Page 14: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/14.jpg)
![Page 15: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/15.jpg)
![Page 16: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/16.jpg)
http://msdn.microsoft.com/ja-jp/library/bb200104.aspx
http://channel9.msdn.com/Learn/Courses/WP7TrainingKit/WP7XNA
http://blogs.msdn.com/b/devschool/archive/2010/06/16/test.aspx
How to: Create Your First XNA Framework Application for Windows Phone
http://msdn.microsoft.com/en-us/library/ff472340(v=VS.92).aspx
![Page 17: Title of presentationdownload.microsoft.com/download/7/0/E/70E92BE3-63C9-4750... · 2010. 10. 7. · protected override void](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdfdfbed94b9e0d001b12b1/html5/thumbnails/17.jpg)