【文件属性】:
文件名称:绘制世界-HTML5游戏开发ppt
文件大小:1.5MB
文件格式:PPT
更新时间:2021-04-26 09:19:42
游戏开发 HTML5
绘制世界
function drawWorld(world, context)
{
context.save();
context.lineWidth = 1;
for ( var j = world.m_jointList; j; j = j.m_next)
{
drawJoint(j, context);
}
for ( var b = world.m_bodyList; b; b = b.m_next)
{
for ( var s = b.GetShapeList(); s != null; s = s.GetNext())
{
drawShape(s, context);
}
}
context.restore();
}
Box2d+html5的初探