Skip to content

Commit

Permalink
upgrade to 1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
himuil committed Apr 10, 2015
1 parent eb347d9 commit a7b5f8b
Show file tree
Hide file tree
Showing 8 changed files with 147 additions and 23 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Egret Engine
================================================
Current Version: v1.6.1
Current Version: v1.6.2


Egret Engine is an open source game engine written in Typescript language. The core characteristics of Egret Engine is Open, Efficient and Elegant.
Expand Down Expand Up @@ -40,6 +40,8 @@ Tools

Release Notes
--------------------
[Egret 1.6.2 Release Notes 2015-4-10](/docs/en/1.6.2_ReleaseNotes.md)

[Egret 1.6.1 Release Notes 2015-3-27](/docs/en/1.6.1_ReleaseNotes.md)

[Egret 1.6.0 Release Notes 2015-3-20](/docs/en/1.6.0_ReleaseNotes.md)
Expand Down Expand Up @@ -97,6 +99,8 @@ Egret Engine是一款使用JavaScript(TypeScript)编写的HTML5开源免费游
发布说明
--------------------

[Egret 1.6.2 Release Notes 2015-4-10](/docs/cn/1.6.2_ReleaseNotes.md)

[Egret 1.6.1 Release Notes 2015-3-27](/docs/cn/1.6.1_ReleaseNotes.md)

[Egret 1.6.0 Release Notes 2015-3-13](/docs/cn/1.6.0_ReleaseNotes.md)
Expand Down
54 changes: 54 additions & 0 deletions docs/cn/1.6.2_ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
Egret 1.6.2 Release Note
===============================


最近更新时间:2015年4月10日


欢迎您使用Egret

特别鸣谢:

* 墨麟集团-武汉鱼之乐信息技术有限公司
* 南京泥巴怪网络科技有限公司
* 北京小苹果网络科技有限公司
* 小米互娱-米聊团队
* 梦启(北京)科技有限公司
* 欢聚时代游戏事业部-前端技术组
* 北京多放辣椒网络科技有限责任公司
* 开心网开腾工作室

## 概述

Egret 1.6.2 社区体验版是Egret引擎1.6发布后的第一个社区体验版本。在这个版本中,我们主要聚焦于性能提升以及bug修复。

注:社区体验版里包含了之前Final版本的所有功能,也会加入引擎最新的一些功能实现。如1.6.2社区体验版包含了1.6的功能,加入了新的功能,也对1.6的问题做了修正,1.6.2的新功能经过数次的版本迭代趋于稳定后,将会被合并进入下一个Final版本。如开发者将游戏用于production环境,推荐使用Final版本;如果希望第一时间体验功能,推荐使用社区体验版。

## 更新内容

#### 核心显示列表

* Graphics连续绘图显示错误问题修复
* Profiler中draw次数计算不准确问题修复
* ByteArray一些问题修复
* event data属性不能设置为0问题修复
* TextField 增加 background backgroundColor border borderColor 属性
* EventDispatcher.hasEventListener返回值问题修复

#### GUI体系

* PopUpAnchor animation问题修复
* Range 增加 UIEvent.VALUE_COMMIT 事件


#### Egret Android Support

* 增强渲染性能
* 修复其它若干bug,提升稳定性


#### 已知问题

* Android Graphics API 目前只支持简单的画线操作
* Android TextField API 目前不支持加粗和斜体
* iOS Support 目前只支持 iOS7+ 的版本
51 changes: 51 additions & 0 deletions docs/en/1.6.2_ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
Egret 1.6.2 Release Note
===============================

Last Updated:10 April, 2015

Welcome to Egret Engine !

Special Thanks to:

* Joy of Fish Information Technology Co.,Ltd.
* Nanjing Nibaguai Networking Technology Co.,Ltd.
* Beijing Smallapple Networking Technology Co.,Ltd.
* MiTalk Team, XiaoMi Tech.
* Wish Start (Beijing)Technology Co.,Ltd.
* Front-end team, games business department, Huanju Time Inc.
* Beijing Duo Fang Lajiao Networking Technology Co.,Ltd.
* Kaiteng Workshop,Kaixin Networking Technology Co.,Ltd.

## Overview

Egret 1.6.2 Community Experienced Version is the 2nd CE version after Egret Engine 1.6 official release.In this version, we've mainly focused on bug fix.
Note: Community Trial Version includes all the features in the latest final version and some up-to-date fixes and updates.

## Updated Items:


#### Core Display Lists:

* Bug fix for display errors of continuous graphics' drawing
* Bug fix of that the number of draw times was calculated inaccurately
* Bug fix for ByteArray
* Bug fix of that the property of event data could not be set to 0.
* Adding the property of background backgroundColor border borderColor to TextField Class
* Bug fix of return value error of EventDispatcher.hasEventListener

#### GUI System

* Fix bug for PopUpAnchor animation
* Add UIEvent.VALUE_COMMIT event to Range class

#### Egret Android Support

* Improve render performance
* Bug fix for stability improvements


#### Known Issues:

* Android Graphics API currently only supports simple line-drawing actions.
* Android TextField API does not support bold and italic fon.
* iOS Support now only supports iOS7+ versions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "egret",
"version": "1.6.1",
"version": "1.6.2",
"private": true,
"author":"egret-labs",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/egret/display/SpriteSheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ module egret {
if (typeof textureHeight === "undefined") {
textureHeight = offsetY + bitmapHeight;
}
var texture:Texture = this.texture.clone();
var texture:Texture = this.texture._clone();
var scale = egret.MainContext.instance.rendererContext._texture_scale_factor;
texture._bitmapX = this._bitmapX + bitmapX;
texture._bitmapY = this._bitmapY + bitmapY;
Expand Down
33 changes: 25 additions & 8 deletions src/egret/display/Texture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,18 @@ module egret {
* 在OpenGL / WebGL中,资源是一个提交GPU后获取的纹理id
* Texture类封装了这些底层实现的细节,开发者只需要关心接口即可
* @link
* http://docs.egret-labs.org/post/manual/bitmap/textures.html 纹理集的使用
* http://docs.egret-labs.org/post/manual/bitmap/textures.html 纹理集的使用
* http://docs.egret-labs.org/post/manual/loader/getres.html 获取资源的几种方式
*/
export class Texture extends HashObject{
export class Texture extends HashObject {

/**
* 创建一个 egret.Texture 对象
*/
public constructor(){
public constructor() {
super();
}

/**
* 表示这个纹理在 bitmapData 上的 x 起始位置
*/
Expand Down Expand Up @@ -77,11 +78,27 @@ module egret {
*/
public _textureWidth:number = 0;

/**
* 纹理宽度
* @member {number} egret.Texture#textureWidth
*/
public get textureWidth():number {
return this._textureWidth;
}

/**
* 纹理高度
*/
public _textureHeight:number = 0;

/**
* 纹理高度
* @member {number} egret.Texture#textureHeight
*/
public get textureHeight():number {
return this._textureHeight;
}

/**
* 表示bitmapData.width
*/
Expand Down Expand Up @@ -112,19 +129,19 @@ module egret {
* @param y {number} 像素点的Y轴坐标
* @returns {number} 指定像素点的颜色值
*/
public getPixel32(x:number, y:number):number[]{
var result:any = this._bitmapData.getContext("2d").getImageData(x,y,1,1);
public getPixel32(x:number, y:number):number[] {
var result:any = this._bitmapData.getContext("2d").getImageData(x, y, 1, 1);
return result.data;
}

public dispose(){
public dispose() {
var bitmapData = this._bitmapData;
if (bitmapData.dispose){
if (bitmapData.dispose) {
bitmapData.dispose();
}
}

public clone():Texture{
public _clone():Texture {
var texture = new Texture();
texture._bitmapData = this._bitmapData;
return texture;
Expand Down
11 changes: 10 additions & 1 deletion tools/lib/tools/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ var upgradeConfigArr = [
{"v" : "1.5.4", "func":upgradeTo_1_5_4},
{"v" : "1.5.5", "func":upgradeTo_1_5_5},
{"v" : "1.6.0", "func":upgradeTo_1_6_0},
{"v" : "1.6.1", "func":upgradeTo_1_6_1}
{"v" : "1.6.1", "func":upgradeTo_1_6_1},
{"v" : "1.6.2", "func":upgradeTo_1_6_2}
];

var currDir;
Expand Down Expand Up @@ -370,6 +371,14 @@ function upgradeTo_1_6_1(){
projectConfig.save();
}

function upgradeTo_1_6_2(){
globals.log(1704, "1.6.2");

projectConfig.init(currDir);
projectConfig.data.egret_version = "1.6.2";
projectConfig.save();
}

function getClassList(item) {
var basename = path.basename(item);
return basename.substring(0, basename.indexOf("."))
Expand Down
11 changes: 0 additions & 11 deletions tools/templates/empty/launcher/native_require.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
/**
* Created by huanghaiying on 14/12/5.
*/
var console = {};
var window = {};

console.log = function (message) {
egtlog(message);
}
console.warn = function(message){
egtlog(message);
}

egret_native.setSearchPaths([""]);

egret_native.requireFiles = function () {
Expand Down

0 comments on commit a7b5f8b

Please sign in to comment.