廣告
请使用 http://www.luhui.net 網址高速訪問本站,歡迎關注微信公衆賬号:guanfu8 平台長期發布海量社科數據, 本站QQ交流群:84142868 探讨人文理想,共謀和諧世界!
黄金广告位招租,投放热线15900718107,13386070835 详情查看=》   鲁之虺:“  上网就是搜索,生活就是分类,科技服务大众,信息引领生活,地方分类站长,开启您的事业之旅。生活分类信息整体提供商:http://huike.luhui.net”。
×

鲁虺繁体中文社区

 找回密碼
 立即註冊
廣告

 

查看: 9|回復: 0

[评测] 使用 SVG.js 进行乒乓球比赛 Pong Game with SVG.js

[複製鏈接]
發表於 2022-8-29 08:40:15 | 顯示全部樓層 |閱讀模式
廣告
搜索看看︰使用 SVG.js 进行乒乓球比赛 Pong Game with SVG.js
廣告
        使用 SVG.js 进行乒乓球比赛 Pong Game with SVG.js
我们最近被介绍到SVG.js,这是一个用于操作和动画 SVG(可缩放矢量图形)的库。该库以没有依赖关系而自豪,旨在成为同类中最精简的,可以做 Snap.svg 和 Raphael 可以做的事情,但代码量只有一半。
We were recently introduced to SVG.js, a library for manipulating and animating SVG (Scalable Vector Graphics). The library boasts of having no dependencies and aims to be the leanest of its kind, doing the same things that Snap.svg and Raphael can do, but with half the amount of code.
为了突出 SVG.js 库的某些方面,它的创建者为我们提供了关于如何在其框架内制作 Pong 游戏的简洁教程。看看绘制两个不同颜色的桨的代码有多短:
To highlight some aspects of the  SVG.js library, its creators have given us a neat tutorial on how to make a Pong game within their framework. Look how short the code is for drawing two paddles with different colors:
Pong-with-SVGjs-3.jpg
这个版本的经典街机游戏有一些很酷的效果。
例如,球在向另一侧移动时将其颜色变为对手的颜色。
This version of the classic arcade game has some cool effects.
For example, the ball changes its color into that of the opponent while moving towards the other side.
Pong-with-SVGjs-2.jpg
此外,当对手未能将球击回时,会产生巨大的色彩爆炸。
您可以在这里自己尝试游戏。

在这里查看教程。
Also, there is a huge color blast when the opponent fails to hit the ball back.
You can try the game yourself here.
Check out the tutorial here.

廣告
您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

广告

廣告
操作系统 Fuchsia OS  |Microsoft Windows  |Android  |Chrome OS  |Novell  |Linux  |Mac OS X  |Unix  |FreeBSD  | Ubuntu
廣告

QQ|關于我們|聯繫我們|合作共赢|免責聲明|隐私条款|Archiver|手機版|拘留所|申請友鏈|付款方式|鲁虺繁体中文社区 |贊助我們 -

GMT+8, 2026-5-14 10:33 , Processed in 0.140000 second(s), 13 queries , WinCache On.

Powered by HCMS 1.0

© 2004-01-11 鲁虺文化网 版权所有

快速回復 返回頂部 返回列表