GithubHelp home page GithubHelp logo

satoshirobatofujimoto / unity-2d-game-development-cookbook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from packtpublishing/unity-2d-game-development-cookbook

0.0 1.0 0.0 86.3 MB

Code repository for Unity 2D Game Development Cookbook, published by Packt Publishing

License: MIT License

C# 100.00%

unity-2d-game-development-cookbook's Introduction

#Unity 2D Game Development Cookbook

This is the code repository for Unity 2D Game Development Cookbook, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

##Instructions and Navigation All of the code is organized into folders. Each folder starts with Chapter followed by Chapter Number. For example, Chapter1. Packages have been made with Unity Pro 3.4.3. Recommended Unity version for book: 3.3 and up. XNView available at: http://www.xnview.com/. Maya version used: Maya 2014. Photoshop version used: CS6. Each Chapter contains code files. You will see code something similler to the following:

using UnityEngine;
using System.Collections;

public class ActorControls : MonoBehaviour {

	public float jumpHeight;
	public GameObject ps;


	// Use this for initialization
	void Start () {

		if(jumpHeight == 0)
			jumpHeight = 3.0f;
	
	}
	
	// Update is called once per frame
	void Update () {

		if( Input.GetKeyDown(KeyCode.UpArrow)){
			rigidbody.velocity += Vector3.up * jumpHeight;
		}
	
	}

	void OnCollisionEnter(Collision c){
		if(c.gameObject.tag == "coll"){
			Instantiate (ps,c.transform.position,Quaternion.identity);
			GameObject.Destroy(c.gameObject);
		}
	}
}

##Related Entity Framework Products:

unity-2d-game-development-cookbook's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.