Archives from S:\ Drive
Good to keep around methinks
This commit is contained in:
1 parent
eadaf70b9e
commit
6dd63cc439
606 files changed
+50212
No files matched your search
@@ -0,0 +1,15 @@
|
||||
// define the BlueBold font
|
||||
BlueBold
|
||||
{
|
||||
// define the font type
|
||||
type truetype
|
||||
|
||||
// set the source file for the font
|
||||
source bluebold.ttf
|
||||
|
||||
// set the font size
|
||||
size 16
|
||||
|
||||
// set the font resolution (96 is standard)
|
||||
resolution 96
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// menu material definition
|
||||
material menu
|
||||
{
|
||||
technique
|
||||
{
|
||||
pass
|
||||
{
|
||||
ambient 1.0 1.0 1.0
|
||||
diffuse 1.0 1.0 1.0
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
// An Overlay to display an options menu
|
||||
MenuOverlay
|
||||
{
|
||||
// set a high z-order to display on top of everything
|
||||
zorder 600
|
||||
|
||||
// the root container for the menu items
|
||||
container Panel(rootPanel)
|
||||
{
|
||||
material menu
|
||||
|
||||
// text for the root Panel
|
||||
element TextArea(instructionsText)
|
||||
{
|
||||
// position the text toward the bottom center of the screen
|
||||
top 0.8
|
||||
left 0.2
|
||||
|
||||
// set font use for caption and set the size and color
|
||||
font_name BlueBold
|
||||
char_height .05
|
||||
colour 0 0 0
|
||||
caption Press Enter to start or Esc to exit
|
||||
}
|
||||
// end of instructionsText
|
||||
|
||||
// container for the Ball options
|
||||
container Panel(ballPanel)
|
||||
{
|
||||
// position the container toward the left side of the screen
|
||||
top 0.1
|
||||
left 0.1
|
||||
width 0.3
|
||||
height 0.5
|
||||
|
||||
// TextAreas to display Ball options
|
||||
|
||||
element TextArea(ballOptionsTitle)
|
||||
{
|
||||
// position and size the TextArea
|
||||
height 0.1
|
||||
left 0.05
|
||||
|
||||
// set font use for caption and set the size and color
|
||||
font_name BlueBold
|
||||
char_height .05
|
||||
colour 0 0 0
|
||||
caption Ball Options
|
||||
}
|
||||
// end of ballOptionsTitle
|
||||
|
||||
element TextArea(ballSlow)
|
||||
{
|
||||
// position and size the text
|
||||
top 0.2
|
||||
height 0.1
|
||||
|
||||
// set font use for caption and set the size and color
|
||||
font_name BlueBold
|
||||
char_height .05
|
||||
colour 0 0 0
|
||||
caption Slow Ball (Press A)
|
||||
}
|
||||
// end of ballSlow
|
||||
|
||||
element TextArea(ballMedium)
|
||||
{
|
||||
// position and size the text
|
||||
top 0.3
|
||||
height 0.1
|
||||
|
||||
// set font use for caption and set the size and color
|
||||
font_name BlueBold
|
||||
char_height .05
|
||||
colour 1.0 0 0
|
||||
caption Medium Ball (Press B)
|
||||
}
|
||||
// end of ballMedium
|
||||
|
||||
element TextArea(ballFast)
|
||||
{
|
||||
// position and size the text
|
||||
top 0.4
|
||||
height 0.1
|
||||
|
||||
// set font use for caption and set the size and color
|
||||
font_name BlueBold
|
||||
char_height .05
|
||||
colour 0 0 0
|
||||
caption Fast Ball (Press C)
|
||||
}
|
||||
// end of ballFast
|
||||
}
|
||||
// end of ballPanel
|
||||
|
||||
// container for the Paddle options
|
||||
container Panel(paddlePanel)
|
||||
{
|
||||
// position the container toward the right side of the screen
|
||||
top 0.1
|
||||
left 0.5
|
||||
width 0.3
|
||||
height 0.5
|
||||
|
||||
// TextAreas to display Paddle options
|
||||
|
||||
element TextArea(paddleOptionsTitle)
|
||||
{
|
||||
// position and size the text
|
||||
height 0.1
|
||||
left 0.05
|
||||
|
||||
// set font use for caption and set the size and color
|
||||
font_name BlueBold
|
||||
char_height .05
|
||||
colour 0 0 0
|
||||
caption Paddle Options
|
||||
}
|
||||
// end of paddleOptionsTitle
|
||||
|
||||
element TextArea(paddleSlow)
|
||||
{
|
||||
// position and size the text
|
||||
top 0.2
|
||||
height 0.1
|
||||
|
||||
// set font use for caption and set the size and color
|
||||
font_name BlueBold
|
||||
char_height .05
|
||||
colour 0 0 0
|
||||
caption Slow Paddles (Press 1)
|
||||
}
|
||||
// end of paddleSlow
|
||||
|
||||
element TextArea(paddleMedium)
|
||||
{
|
||||
// position and size the text
|
||||
top 0.3
|
||||
height 0.1
|
||||
|
||||
// set font use for caption and set the size and color
|
||||
font_name BlueBold
|
||||
char_height .05
|
||||
colour 0 0 1.0
|
||||
caption Medium Paddles (Press 2)
|
||||
}
|
||||
// end of paddleMedium
|
||||
|
||||
element TextArea(paddleFast)
|
||||
{
|
||||
// position and size the text
|
||||
top 0.4
|
||||
height 0.1
|
||||
|
||||
// set font use for caption and set the size and color
|
||||
font_name BlueBold
|
||||
char_height .05
|
||||
colour 0 0 0
|
||||
caption Fast Paddles (Press 3)
|
||||
}
|
||||
// end of paddleFast
|
||||
}
|
||||
// end of paddlePanel
|
||||
}
|
||||
// end of rootPanel
|
||||
}
|
||||
// end of MenuOverlay
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
// ball material definition
|
||||
material ball
|
||||
{
|
||||
// define one technique for rendering the Ball
|
||||
technique
|
||||
{
|
||||
// render the Ball in one pass
|
||||
pass
|
||||
{
|
||||
// color the Ball violet
|
||||
ambient 0.58 0 0.827
|
||||
diffuse 0.58 0 0.827
|
||||
specular 0.58 0 0.827 120
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// paddle material definition
|
||||
material paddle
|
||||
{
|
||||
// define one technique for rendering a Paddle
|
||||
technique
|
||||
{
|
||||
// render a Paddle in one pass
|
||||
pass
|
||||
{
|
||||
// color the Paddle dark orange
|
||||
ambient 1 0.549 0
|
||||
diffuse 1 0.549 0
|
||||
specular 1 0.549 0 120
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// wall material definition
|
||||
material wall
|
||||
{
|
||||
// define one technique for rendering a wall
|
||||
technique
|
||||
{
|
||||
// render a wall in one pass
|
||||
pass
|
||||
{
|
||||
// color the wall cyan
|
||||
ambient 0 0 0
|
||||
diffuse 0 0 0
|
||||
specular 0 0 0 120
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
// An Overlay to display the score
|
||||
Score
|
||||
{
|
||||
// set a high z-order, displays on top of anything with lower z-order
|
||||
zorder 500
|
||||
|
||||
// create a PanelOverlayElement container to hold the text areas
|
||||
container Panel(ScorePanel)
|
||||
{
|
||||
// use relative metrics mode to position this container at the
|
||||
// top-left corner of the screen
|
||||
metrics_mode relative
|
||||
left 0.0
|
||||
top 0.0
|
||||
|
||||
// make it 1/10 the height and the full width of the screen
|
||||
width 1.0
|
||||
height .1
|
||||
|
||||
// create a TextAreaOverlayElement to display player 1's score
|
||||
element TextArea(left)
|
||||
{
|
||||
// position and size the element relative to the container
|
||||
metrics_mode relative
|
||||
|
||||
// position it at the top of the container 5% from the left and
|
||||
// make it the same height and half as long as the container
|
||||
left 0.05
|
||||
top 0.0
|
||||
width 0.5
|
||||
height 1.0
|
||||
|
||||
// set font use for caption and set the size and color
|
||||
font_name PongScore
|
||||
char_height .05
|
||||
colour 1.0 0 0
|
||||
caption P1: 0
|
||||
}
|
||||
// create a TextAreaOverlayElement to display player 2's score
|
||||
element TextArea(right)
|
||||
{
|
||||
// position and size the element relative to the container
|
||||
metrics_mode relative
|
||||
|
||||
// position it at the top of the container 69% from the left and
|
||||
// make it the same height as the container, stretch to the end
|
||||
left 0.69
|
||||
top 0.0
|
||||
width 0.5
|
||||
height 1.0
|
||||
|
||||
|
||||
// set font use for caption and set the size and color
|
||||
font_name PongScore
|
||||
char_height 0.05
|
||||
colour 1.0 0 0
|
||||
caption P2: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// An Overlay to display "Game Paused" when the player pauses the game
|
||||
PauseOverlay
|
||||
{
|
||||
// set a high z-order, displays on top of anything with lower z-order
|
||||
zorder 500
|
||||
|
||||
// create a PanelOverlayElement container to hold the text area
|
||||
container Panel(Pause)
|
||||
{
|
||||
// use relative metrics mode to position and size this container
|
||||
metrics_mode relative
|
||||
|
||||
// place the container at the top-left corner of the window
|
||||
left 0.0
|
||||
top 0.0
|
||||
|
||||
// make the container the same size as the window
|
||||
width 1.0
|
||||
height 1.0
|
||||
|
||||
// create a TextAreaOverlayElement to display the text
|
||||
element TextArea(pauseText)
|
||||
{
|
||||
// position and size the element relative to its container
|
||||
metrics_mode relative
|
||||
|
||||
// center it vertically in the container
|
||||
vert_align center
|
||||
|
||||
// put the left corner 4/10 from the left of the container and
|
||||
// make it 2/10 the width of the container and 1/10 the height
|
||||
left 0.4
|
||||
width 0.2
|
||||
height 0.1
|
||||
|
||||
// set font use for caption and set the size and color
|
||||
font_name PongText
|
||||
char_height 0.05
|
||||
colour 0 0 0
|
||||
caption Game Paused
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// An Overlay to display which player won the game
|
||||
WinnerOverlay
|
||||
{
|
||||
// set a high z-order, displays on top of anything with lower z-order
|
||||
zorder 500
|
||||
|
||||
// create a PanelOverlayElement container to hold the text area
|
||||
container Panel(Winner)
|
||||
{
|
||||
// use relative metrics mode to position and size this container
|
||||
metrics_mode relative
|
||||
|
||||
// place the container at the top-left corner of the window
|
||||
left 0.0
|
||||
top 0.0
|
||||
|
||||
// make the container the same size as the window
|
||||
width 1.0
|
||||
height 1.0
|
||||
|
||||
// create a TextAreaOverlayElement to display the text
|
||||
element TextArea(winnerText)
|
||||
{
|
||||
// position and size the element relative to its container
|
||||
metrics_mode relative
|
||||
|
||||
// put the left corner 4/10 from the left of the container and
|
||||
// make it 2/10 the width of the container and 1/10 the height
|
||||
left 0.4
|
||||
top 0.3
|
||||
width 0.2
|
||||
height 0.1
|
||||
|
||||
// set font use for caption and set the size and color
|
||||
font_name PongText
|
||||
char_height 0.05
|
||||
colour 0 0 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
// define the PongScore font
|
||||
PongScore
|
||||
{
|
||||
// define the font type
|
||||
type truetype
|
||||
|
||||
// set the source file for the font
|
||||
source PongScore.ttf
|
||||
|
||||
// set the font size
|
||||
size 16
|
||||
|
||||
// set the font resolution (96 is standard)
|
||||
resolution 96
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
// define the PongText font
|
||||
PongText
|
||||
{
|
||||
// define the font type
|
||||
type truetype
|
||||
|
||||
// set the source file for the font
|
||||
source PongText.ttf
|
||||
|
||||
// set the font size
|
||||
size 16
|
||||
|
||||
// set the font resolution (96 is standard)
|
||||
resolution 96
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user