Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
wordshoot
  • Loading branch information
kat12008 committed Oct 26, 2015
1 parent b97fd1f commit 60234aa
Show file tree
Hide file tree
Showing 79 changed files with 866 additions and 2 deletions.
Binary file added 2D sprite.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions 2D sprite/2D sprite.userprefs
@@ -1,8 +1,8 @@
<Properties>
<MonoDevelop.Ide.Workspace />
<MonoDevelop.Ide.Workbench ActiveDocument="Assets\animScript.cs">
<MonoDevelop.Ide.Workbench ActiveDocument="..\Spawning\Assets\Ball.cs">
<Files>
<File FileName="Assets\animScript.cs" Line="34" Column="35" />
<File FileName="..\Spawning\Assets\Ball.cs" Line="1" Column="1" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
Expand Down
10 changes: 10 additions & 0 deletions 2D sprite/menu.txt
@@ -0,0 +1,10 @@
Press:
A��Run
X: OpenChest
W: Jump
S: Attack
D: Happy

Loose:

Back to "Run"
Binary file added Spawning/Assets/BLUE.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions Spawning/Assets/BLUE.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions Spawning/Assets/Ball.cs
@@ -0,0 +1,29 @@
using UnityEngine;
using System.Collections;

public class Ball : MonoBehaviour {

public float ballIntVel = 600f;

private Rigidbody rb;
private bool ballInPlay;


// Use this for initialization
void Awake () {
rb = GetComponent<Rigidbody>();

}

// Update is called once per frame
void FixedUpdate () {
if (Input.GetButtonDown ("Fire1") && ballInPlay == false) {
transform.parent = null;
ballInPlay = true;
rb.isKinematic = false;
rb.AddForce(new Vector3(ballIntVel, ballIntVel, 0));

}

}
}
12 changes: 12 additions & 0 deletions Spawning/Assets/Ball.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Spawning/Assets/GREEN.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions Spawning/Assets/GREEN.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Spawning/Assets/Materials.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Spawning/Assets/Materials/BLUE.mat
Binary file not shown.
8 changes: 8 additions & 0 deletions Spawning/Assets/Materials/BLUE.mat.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Spawning/Assets/Materials/GREEN.mat
Binary file not shown.
8 changes: 8 additions & 0 deletions Spawning/Assets/Materials/GREEN.mat.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Spawning/Assets/Materials/PINK.mat
Binary file not shown.
8 changes: 8 additions & 0 deletions Spawning/Assets/Materials/PINK.mat.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Spawning/Assets/Materials/PURPLE.mat
Binary file not shown.
8 changes: 8 additions & 0 deletions Spawning/Assets/Materials/PURPLE.mat.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Spawning/Assets/Materials/YELLOW.mat
Binary file not shown.
8 changes: 8 additions & 0 deletions Spawning/Assets/Materials/YELLOW.mat.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Spawning/Assets/Materials/black.mat
Binary file not shown.
8 changes: 8 additions & 0 deletions Spawning/Assets/Materials/black.mat.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Spawning/Assets/Materials/red.mat
Binary file not shown.
8 changes: 8 additions & 0 deletions Spawning/Assets/Materials/red.mat.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Spawning/Assets/PINK.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions Spawning/Assets/PINK.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Spawning/Assets/PURPLE.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions Spawning/Assets/PURPLE.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions Spawning/Assets/Paddle.cs
@@ -0,0 +1,23 @@
using UnityEngine;
using System.Collections;

public class Paddle : MonoBehaviour {


public float paddleSpeed = 1.0f;
public float paddlePosY = -4.0f;

private Vector3 playerPos = new Vector3 (0, -8.0f, 0 );


// Update is called once per frame
void Update() {


float xPos = transform.position.x + (Input.GetAxis("Horizontal") * paddleSpeed);

playerPos = new Vector3(Mathf.Clamp(xPos, -8.0f, 3.0f),paddlePosY, 0f);
transform.position = playerPos;

}
}

0 comments on commit 60234aa

Please sign in to comment.