TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Make a simple HTML5 game using Box2d in JavaScript

38 点作者 silv3r_m00n超过 12 年前

4 条评论

antirez超过 12 年前
This example is using box2d for something that can be implemented with very simple code dropping this important dependency IMHO. Box2d is a great fit when real 2D physics simulation is needed, but for apples falling at constant speed and jumps, it's not worth it.
评论 #4938958 未加载
评论 #4938705 未加载
jasonkester超过 12 年前
I've been watching for a good Box2d javascript port for the last couple years, and so far there's nothing out there that's anywhere close to useable. It's a shame really, since the Flash version is so good.<p>Every port is either a bunch of Regular expressions run against the ActionScript source, or a wacky hand port of a version several years out of date. In either case, as soon as you plug it into anything more complicated than the Hello World demos it starts demonstrating in myriad wacky ways that nobody must have ever tried using it on a real project. I keep checking back, doing the rounds of GitHub and the web in general every couple months hoping in vain that somebody will have put something good out, but thus far no luck.<p>And of course, I'm part of the problem, complaining about the situation but not actually downloading the ActionScript source myself and putting together a decent port.
评论 #4939831 未加载
jamesjporter超过 12 年前
Anyone have other recommendations for HTML5 game tutorials? There's a simple card game I'd like to make so I've been itching to learn.
silv3r_m00n超过 12 年前
its for learning box2d, from the basics.
评论 #4938658 未加载