CocosCreator
FrogJJJJJ
这个作者很懒,什么都没留下…
展开
-
去掉CocosCreator自带的加载界面
针对微信小游戏平台关于怎么去掉cocosCreator的加载界面原创 2022-07-12 18:22:18 · 5492 阅读 · 7 评论 -
Cocos 数据存储相关
CocosCreator数据存储原创 2022-07-05 12:05:01 · 583 阅读 · 0 评论 -
CocosCreator 栈的实现
import { _decorator, Component, Node } from 'cc';const { ccclass, property } = _decorator;interface StackData<T> { [index: number]: T;}@ccclass('Stack')export class Stack<T> { private items: StackData<T> = {} private c.原创 2022-05-06 09:40:09 · 229 阅读 · 0 评论 -
cocosCreator 事件系统
import { Dictionary } from "./Dictionary";let eventMap: Dictionary<string, Array<any>> = new Dictionary<string, Array<any>>();export default class EventManager { public static AddListener(eventName: string, callback: any, t原创 2022-05-06 09:35:17 · 314 阅读 · 0 评论 -
CocosCreator 工具类(持续更新)
import { _decorator, Component, Node, Vec2, Vec3, Quat, Camera, UITransform, view, log } from 'cc';const { ccclass, property } = _decorator;export default class Util { static physicsMoveFactor: number = 70; /** * 返回 min ~ max 的随机数 *原创 2022-04-29 17:09:41 · 795 阅读 · 1 评论 -
JoyStick摇杆实现
import { _decorator, Component, Node, EventTouch, Vec3, log, input, Input, UITransform, Vec2 } from 'cc';const { ccclass, property } = _decorator;/** * Predefined variables * Name = JoyStick * DateTime = Tue Apr 12 2022 11:34:25 GMT+0800 (中国标准时间) *.原创 2022-04-12 15:43:48 · 643 阅读 · 0 评论