Your SlideShare is downloading. ×
0
Epic Presentation
Epic Presentation
Epic Presentation
Epic Presentation
Epic Presentation
Epic Presentation
Epic Presentation
Epic Presentation
Epic Presentation
Epic Presentation
Epic Presentation
Epic Presentation
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Epic Presentation

693

Published on

The powerpoint presentation I gave during the first round of senior projects. No, this was not my senior project, it was just epic enough that I was asked if I wanted to present it.

The powerpoint presentation I gave during the first round of senior projects. No, this was not my senior project, it was just epic enough that I was asked if I wanted to present it.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
693
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. EpicBox the Game By Peter Austin
  • 2. What is it? <ul><li>Epic Game (for short) is my final project for VB </li></ul><ul><li>It combines two funny flash videos into a short, fun and ultimately pointless game. </li></ul><ul><li>EpicBox & PowerThirst </li></ul><ul><li>Short playing time (< 4 minutes) </li></ul><ul><li>Described by others as “Just Plain Epic” </li></ul>EpicBox
  • 3. Problems <ul><li>Drawing (had not covered in class yet) </li></ul><ul><li>Music (One sound at a time) </li></ul><ul><li>Animation (Speed based on processor) </li></ul><ul><li>Positioning… </li></ul>
  • 4. Behind the Scenes <ul><li>Positioning in games in not a simple task. </li></ul><ul><li>Global Location is where in the world something is located in data. </li></ul><ul><li>Screen Location is where things are drawn based on the top left corner of the screen. </li></ul><ul><li>Not an easy task to relate one to the other, but is necessary for any game that has a “World” </li></ul>
  • 5. Positioning <ul><li>Here is how we view the Epic Game world, it has only an X range, as Y does not change. </li></ul>
  • 6. Positioning <ul><li>However we can only see what is drawn on the screen. This is relational to the top left edge. </li></ul>
  • 7. Positioning <ul><li>To relate the two you must track a global position combined with screen position. </li></ul>
  • 8. Positioning <ul><li>When combined, plus the use of height and width, you get usable screen related locations. </li></ul>
  • 9. Background <ul><li>The looping background posed an interesting challenge to get working. </li></ul><ul><li>g.DrawImage(background, backoffset, 200) </li></ul><ul><li>'Draw extra backgrounds if needed when it runs out </li></ul><ul><li>If backoffset + background.Width < Me.Width Then g.DrawImage(background, backoffset + background.Width, 200) </li></ul><ul><li>If backoffset > 0 Then g.DrawImage(background, backoffset - background.Width + 540, 200) </li></ul><ul><li>'Change offset when finished with overflow of background </li></ul><ul><li>If backoffset > Me.Width Then backoffset = backoffset - background.Width + 540 </li></ul><ul><li>If backoffset < (background.Width * -1) Then backoffset = 0 </li></ul>
  • 10. Characters <ul><li>Needed a universal way to relate items on screen, for drawing, collisions … etc </li></ul><ul><li>… Universal get X position function </li></ul><ul><li>Function getX(ByVal bx As Integer) </li></ul><ul><li>Return bx + 600 - x </li></ul><ul><li>End Function </li></ul><ul><li>… Collision Condition </li></ul><ul><li>If monsters.Item(i).getX(x) > 600 And monsters.Item(i).getX(x) < 600 + epicbox.getWidth() _ </li></ul><ul><li>And epicbox.getY() < 99 Then </li></ul><ul><li>LifeBar.Value = LifeBar.Value - 20 </li></ul><ul><li>monsters.Remove(i) </li></ul><ul><li>ElseIf monsters.Item(i).getX(x) > 900 Then </li></ul><ul><li>monsters.Remove(i) </li></ul><ul><li>End If </li></ul>
  • 11. On to the Epic You too can download EpicGame at my Blog… http://efeion.blogspot.com/2008/11/epic-box-game.html
  • 12. Any Epic Questions?

×