최종 보고서
본 자료는 9페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
해당 자료는 9페이지 까지만 미리보기를 제공합니다.
9페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

최종 보고서에 대한 보고서 자료입니다.

목차

I. 서론

II. 본론

▷ 게임 구성

▷ 게임 실행

III. 결론

▷ 참고문헌

▷ 전체소스

본문내용

{
static class Program
{
static void Main(string[] args)
{
using (Game1 game = new Game1())
{
game.Run();
}
}
}
}
⑧Ending 소스
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;
namespace KeroroGame
{
public class Ending : Microsoft.Xna.Framework.DrawableGameComponent
{
GameObject m_Bg;
int W = 1024;
int H = 768;
GameObject m_Bg2;
GameObject m_BeforeButton;
Rectangle m_RectBefore = new Rectangle(460, 700, 100, 40);
Rectangle m_RectMouse = new Rectangle(0, 0, 4, 4);
MouseState premouseState = Mouse.GetState();
GameObject Font;
int m_Mill;
int m_Sec;
int m_Min;
int m_Energy;
bool m_Good;
public Ending(Game game, int Mill, int Sec, int Min, int Energy, bool Good)
: base(game)
{
m_Mill = Mill;
m_Sec = Sec;
m_Min = Min;
m_Energy = Energy;
m_Good = Good;
}
public override void Initialize()
{
base.Initialize();
}
protected override void LoadContent()
{
m_Bg = new GameObject(base.Game.Content.Load("EndingImage/Good"));
m_BeforeButton = new GameObject(base.Game.Content.Load("GameControl/ControlEnd"));
Font = new GameObject(base.Game.Content.Load("Font/Font1"));
m_Bg2 = new GameObject(base.Game.Content.Load("EndingImage/Bad"));
base.LoadContent();
}
public override void Update(GameTime gameTime)
{
MouseState mouseState = Mouse.GetState();
m_RectMouse.X = Mouse.GetState().X;
m_RectMouse.Y = Mouse.GetState().Y;
if (m_RectMouse.Intersects(m_RectBefore) && (mouseState.LeftButton == ButtonState.Pressed && premouseState.LeftButton == ButtonState.Released))
{
base.Game.Components.RemoveAt(0);
base.Game.Components.Add(new MainMenu(base.Game));
}
premouseState = mouseState;
base.Update(gameTime);
}
public override void Draw(GameTime gameTime)
{
SpriteBatch spriteBatch = new SpriteBatch(base.Game.GraphicsDevice);
spriteBatch.Begin();
if (m_Good == true)
{
spriteBatch.Draw(m_Bg.sprite, new Rectangle(0, 0, W, H), Color.White);
if (m_RectMouse.Intersects(m_RectBefore))
{
spriteBatch.Draw(m_BeforeButton.sprite, m_RectBefore, Color.Blue);
}
else
{
spriteBatch.Draw(m_BeforeButton.sprite, m_RectBefore, Color.White);
}
spriteBatch.DrawString(Font.font, "PlayTime = " + m_Min.ToString() + " : " + m_Sec.ToString() + " : " + m_Mill.ToString(), new Vector2(650, 50), Color.Black);
spriteBatch.DrawString(Font.font, "MoveBack = " + (3 - m_Energy).ToString(), new Vector2(650, 110), Color.Black);
}
else
{
spriteBatch.Draw(m_Bg2.sprite, new Rectangle(0, 0, W, H), Color.White);
if (m_RectMouse.Intersects(m_RectBefore))
{
spriteBatch.Draw(m_BeforeButton.sprite, m_RectBefore, Color.Blue);
}
else
{
spriteBatch.Draw(m_BeforeButton.sprite, m_RectBefore, Color.White);
}
}
spriteBatch.End();
}
}
}
  • 가격3,000
  • 페이지수28페이지
  • 등록일2011.08.01
  • 저작시기2011.8
  • 파일형식한글(hwp)
  • 자료번호#692063
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니