JuniorTour
JuniorTour
hi, @bearow , It has been more than 10 weeks since you take this issue. If you don't mind, I would like to make a Pull Request to fix this...
抱歉,这确实我的问题。一个演示性的项目应该有必要的注释。 不过我也觉得`好的代码本身就是注释`,这个项目的代码语义性还是挺强的,不能算是乱,仅仅阅读源代码,也能大致理解项目的运行逻辑。 我向你概括的介绍一下: 0. 项目由es6-mario/public/js/main.js开始,在这个主函数中,创建了游戏内的一个个`实体(Entity)`,就是马里奥、乌龟等等,并且开始游戏的`主循环`: ``` javascript const timer = new Timer(fps); timer.update = function update(deltaTime) { level.update(deltaTime); camera.pos.x = Math.max(0, mario.pos.x - 100); level.comp.draw(context, camera); }; timer.start(); ``` 这个主循环就是游戏的核心,主循环中的这三行分别负责一帧一帧地`更新实体`、`移动镜头`、`绘制背景`等层次。...
是跳的高度不够吗?应该不会吧。 还是顶不出金币? 顶砖块出金币这个功能确实还没做,你如果感兴趣的话,可以试着修改修改。
你好,我建议你跟着这个视频教程来学习:[https://www.youtube.com/watch?v=g-FpDQ8Eqw8&t=2s](https://www.youtube.com/watch?v=g-FpDQ8Eqw8&t=2s) 这是原作者录制的视频,比我的水平高太多了。 主体结构完成后,如果你想在进一步的部署到生产环境中(增强兼容性、支持移动端、压缩代码等等),可以参考我这个项目的webpack配置 -- `public/build/webpack-config.js`和一些垫片`polyfill` -- `public/js/polyfill` 。
这是个BUG。感谢你的反馈😊 `shouldPrependVm()` 对 `[objectMethod](https://babeljs.io/docs/en/babel-types#objectmethod)`类型的AST节点,错误地返回了 true,给`transform()`错误地加上了`_vm.`前置。 我们增加一个 `t.isObjectMethod(path.container)` 应该能修复问题。  欢迎你发个 PullRequest 修复这个问题! 你可以参考 [CONTRIBUTING.md](https://github.com/JuniorTour/vue-template-babel-compiler/blob/main/CONTRIBUTING.md) 调试、增加测试用例、创建 PR.
You may need to add `compiler: require('vue-template-babel-compiler')` to your `jest.config.js` According to [vue-jest Doc](https://github.com/vuejs/vue-jest#:~:text=Tip%3A%20Need%20programmatic%20configuration%3F%20Use%20the%20--config%20option%20in%20Jest%20CLI%2C%20and%20export%20a%20.js%20file), the step may be: 1. Find or create your `jest.config.js` If you are using `.json` config,...
@monkemedia It will work for `vue-jest >= 4.0.0` && `jest = 4.0.0**. (`vue-jest`
Thanks for your feedback. But I can't reproduce your error. ### [Online Demo for issue#36 - stackblitz.com](https://stackblitz.com/edit/vue-template-babel-compiler-vue-cli-project-32dtqk?file=src%2FApp.vue&terminal=serve)  Do I miss anything? Could try to re-produce your error by forking...
> We resolved this issue by manually adding @babel/core and babel-loader to the project. Updating other packages never upgraded babel to a high enough version to make array spreading work...
I've tried the following `@babel/core` version, they all works fine without error: - 7.14.6 - 7.17.9 - 7.11.0 - 7.9.0 - 7.0.0 Could you try add these options to your...