afterwind-io / wooly Goto Github PK
View Code? Open in Web Editor NEW:construction: An Experimental Javascript 2D Game Framework
License: MIT License
:construction: An Experimental Javascript 2D Game Framework
License: MIT License
当设备dpr大于1时,图像/文字显示模糊。
目前使用Diagnosis
需要在游戏初始化时手动显式调用,并且需要Engine
有全局的事件支持(LoopStart
, LoopEnd
)。这种方式为Engine
带来了不必要的API,并且在使用上并不是顺手。
将Diagnosis
重新实现为内置的Entity
派生类。
当前所有节点无论自身是否有独立的绘图步骤(重载_Draw
方法),均会调用节点的$Draw
方法,从而导致多余的计算及Canvas API
调用。
Lines 12 to 20 in 66b7e78
为CanvasItem
类增加标示字段customDrawing
,所有需要重载_Draw
方法的派生类,均须显式声明或将该字段赋值为true
,并且在渲染阶段跳过所有customDrawing
不为true的_Draw
方法调用。
目前Input
的初始化方式不是很友好,需要使用者手动在初始化代码中显式绑定canvas
实例。由于Input
几乎是一定会使用到的功能,额外的显式初始化代码没有必要。
在提供的框架create
方法中直接完成初始化。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.