Giter VIP home page Giter VIP logo

game's Introduction

基本游戏架构

let onestroke = new OneStroke(
	{
		// 默认的线段颜色与端点颜色
		lineColor: 0xe2e2e2, 
		vertexColor: 0x6dc6c0, 
		strokeColor: 0x416275, 
		activeVertexColor: 0x6dc6c0, 
		levels: [
			{
				name: "第一关", 
				lineColor: 0xe2e2e2, 
				vertexColor: 0x90b34f, 
				strokeColor: 0x445624, 
				activeVertexColor: 0x90b34f, 
				lines: [
					{"x1": 375, "y1": 366, "x2": 200, "y2": 916},
					{"x1": 200, "y1": 916, "x2": 664, "y2": 576}, 
					{"x1": 664, "y1": 576, "x2": 88, "y2": 576}, 
					{"x1": 88, "y1": 576, "x2": 556, "y2": 916}, 
					{"x1": 556, "y1": 916, "x2": 375, "y2": 366}
				]
			}
		]
	}
);

game's People

Watchers

 avatar  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.