上一页 1 2 3 4 5 6 7 8 9 10 ··· 97 下一页
摘要: 目前唯一不足就是不能动态修改shader。。。 1创建地面 const gravity = new b2Vec2(0, 10); world = new b2World(gravity); const bd_ground = new b2BodyDef(); const ground = world 阅读全文
posted @ 2022-05-23 09:12 newmiracle宇宙 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 有些情况下 比如wasm 都打包失败 这个时候就要跳过webpack打包 我这里用动态加载js方法(不要用import) 这个方法比较实用 因为很多情况下都需要DOM元素加载完再执行 var head = document.getElementsByTagName('head')[0]; var s 阅读全文
posted @ 2022-05-18 16:16 newmiracle宇宙 阅读(586) 评论(0) 推荐(0) 编辑
摘要: golang 协程运行流程 package main import ( "testing" // "github.com/gwpp/tinify-go/tinify" "fmt" "time" ) func sss(){ time.Sleep(time.Second) fmt.Println("44 阅读全文
posted @ 2022-05-17 17:16 newmiracle宇宙 阅读(57) 评论(0) 推荐(0) 编辑
摘要: centos软连接 设置php多版本 ln -s /usr/local/php7.3/bin/php /usr/bin/php73 又箭头说明成功了 然后运行下php73 -v 是不是就出现PHP版本了 阅读全文
posted @ 2022-05-17 15:57 newmiracle宇宙 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 关于vue-awesome-swiper和swiper的作用 vue-awesome-swiper是提供组件化用的 swiper 也有组件 但是用不了 所以用vue-awesome-swiper代替了 swiper只提供一些交互功能 阅读全文
posted @ 2022-05-17 15:03 newmiracle宇宙 阅读(150) 评论(0) 推荐(0) 编辑
摘要: javascript gsap 动画2种常用写法 import gsap from "gsap"; gsap.to(".ball", { keyframes: { "0%": { yPercent: 0, scaleX: 1, scaleY: 1 }, "7%": { yPercent: 5, sc 阅读全文
posted @ 2022-05-17 10:44 newmiracle宇宙 阅读(127) 评论(0) 推荐(0) 编辑
摘要: webpack更新原理 每次改代码 除了直接改组件里面的东西 改引用的js store都会重新刷新页面 体验真心不好 阅读全文
posted @ 2022-05-13 10:34 newmiracle宇宙 阅读(20) 评论(0) 推荐(0) 编辑
摘要: pixijs层级另类写法 const app = new PIXI.Application({ width: 750, height: 1206, transparent: true, forceCanvas: true }); document.body.appendChild(app.view) 阅读全文
posted @ 2022-05-11 17:04 newmiracle宇宙 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 我用了box2dweb 和matterjs 写了多边形 碰撞 box2dweb刚体穿透率特别高 设置了子弹 也一样穿透 matterjs就很稳 所以建议选择matterjs matterjs文档也丰富 box2dweb没文档。。 阅读全文
posted @ 2022-05-11 11:19 newmiracle宇宙 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 我只写vue3的改动 import { createApp } from 'vue' import App from './App.vue' import router from './router' console.log(router); const app = createApp(App) a 阅读全文
posted @ 2022-03-29 17:38 newmiracle宇宙 阅读(1510) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 97 下一页