tinyshu / ddz_game Goto Github PK
View Code? Open in Web Editor NEW斗地主游戏
斗地主游戏
出了对2的情况下 别人也能出对2
王炸也有问题 王炸打不过顺子
用cocos creator,打包成微信小程序后,真机调试报golbal.js找不到,不知道咋弄。。。
我发现用cocos一直上面是50%,然后是黑屏
我把你服务端搭起来了。
然后使用
tsc xx.ts运行起来时,报了好多错。请教一下,请问是什么原因呢?
Microsoft Windows [版本 10.0.18362.1139]
(c) 2019 Microsoft Corporation。保留所有权利。
D:\ddz_game-master\ddz_game-master\ddz_client>tsc creator.d.ts
creator.d.ts:1994:13 - error TS2304: Cannot find name 'AnimationAnimator'.
1994 animator: AnimationAnimator;
~~~~~~~~~~~~~~~~~
creator.d.ts:3185:17 - error TS2304: Cannot find name 'TMXTilesetInfo'.
3185 getTileSet(): TMXTilesetInfo;
~~~~~~~~~~~~~~
creator.d.ts:3196:23 - error TS2304: Cannot find name 'TMXTilesetInfo'.
3196 setTileSet(tileset: TMXTilesetInfo): void;
~~~~~~~~~~~~~~
creator.d.ts:3434:28 - error TS2304: Cannot find name 'id'.
3434 static getError(errorId: id, param?: any): string;
~~
creator.d.ts:6066:27 - error TS2304: Cannot find name 'DOMImageElement'.
6066 update(options: {image: DOMImageElement; mipmap: boolean; format: PixelFormat; minFilter: Filter; magFilter: Filter; wrapS: WrapMode; wrapT: WrapMode; premultiplyAlpha: boolean; }): void;
~~~~~~~~~~~~~~~
creator.d.ts:6066:69 - error TS2304: Cannot find name 'PixelFormat'.
6066 update(options: {image: DOMImageElement; mipmap: boolean; format: PixelFormat; minFilter: Filter; magFilter: Filter; wrapS: WrapMode; wrapT: WrapMode; premultiplyAlpha: boolean; }): void;
~~~~~~~~~~~
creator.d.ts:6066:93 - error TS2304: Cannot find name 'Filter'.
6066 update(options: {image: DOMImageElement; mipmap: boolean; format: PixelFormat; minFilter: Filter; magFilter: Filter; wrapS: WrapMode; wrapT: WrapMode; premultiplyAlpha: boolean; }): void;
~~~~~~
creator.d.ts:6066:112 - error TS2304: Cannot find name 'Filter'.
6066 update(options: {image: DOMImageElement; mipmap: boolean; format: PixelFormat; minFilter: Filter; magFilter: Filter; wrapS: WrapMode; wrapT: WrapMode; premultiplyAlpha: boolean; }): void;
~~~~~~
creator.d.ts:6090:22 - error TS2304: Cannot find name 'TypedArray'.
6090 initWithData(data: TypedArray, pixelFormat: number, pixelsWidth: number, pixelsHeight: number): boolean;
~~~~~~~~~~
creator.d.ts:7034:20 - error TS2694: Namespace 'cc.Label' has no exported member 'CacheMode'.
7034 cacheMode: Label.CacheMode;
~~~~~~~~~
creator.d.ts:7198:15 - error TS2417: Class static side 'typeof PageView' incorrectly extends base class static side 'typeof ScrollView'.
Types of property 'EventType' are incompatible.
Type 'typeof EventType' is missing the following properties from type 'typeof EventType': SCROLL_TO_TOP, SCROLL_TO_BOTTOM, SCROLL_TO_LEFT, SCROLL_TO_RIGHT, and 9 more.
7198 export class PageView extends ScrollView {
~~~~~~~~
creator.d.ts:12931:244 - error TS2304: Cannot find name 'vec3'.
12931 transformMat4(m: (m00: number, m01: number, m02: number, m03: number, m10: number, m11: number, m12: number, m13: number, m20: number, m21: number, m22: number, m23: number, m30: number, m31: number, m32: number, m33: number) => void, out?: vec3): vec3;
~~~~
creator.d.ts:12931:251 - error TS2304: Cannot find name 'vec3'.
12931 transformMat4(m: (m00: number, m01: number, m02: number, m03: number, m10: number, m11: number, m12: number, m13: number, m20: number, m21: number, m22: number, m23: number, m30: number, m31: number, m32: number, m33: number) => void, out?: vec3): vec3;
~~~~
creator.d.ts:15230:9 - error TS2370: A rest parameter must be of an array type.
15230 login(...args: string|any[]): void;
~~~~~~~~~~~~~~~~~~~~~
creator.d.ts:16401:36 - error TS2304: Cannot find name 'AnimationCacheMode'.
16401 setAnimationCacheMode(cacheMode: AnimationCacheMode): void;
~~~~~~~~~~~~~~~~~~
creator.d.ts:16517:15 - error TS2515: Non-abstract class 'CCFactory' does not implement inherited abstract member '_buildArmature' from class 'BaseFactory'.
16517 export class CCFactory extends BaseFactory {
~~~~~~~~~
creator.d.ts:16517:15 - error TS2515: Non-abstract class 'CCFactory' does not implement inherited abstract member '_buildSlot' from class 'BaseFactory'.
16517 export class CCFactory extends BaseFactory {
~~~~~~~~~
creator.d.ts:16517:15 - error TS2515: Non-abstract class 'CCFactory' does not implement inherited abstract member '_buildTextureAtlasData' from class 'BaseFactory'.
16517 export class CCFactory extends BaseFactory {
~~~~~~~~~
creator.d.ts:16632:42 - error TS2694: Namespace 'sp.spine' has no exported member 'SkeletonData'.
16632 setSkeletonData(skeletonData: sp.spine.SkeletonData): void;
~~~~~~~~~~~~
creator.d.ts:16638:40 - error TS2694: Namespace 'sp.spine' has no exported member 'SkeletonData'.
16638 setSlotsRange(skeletonData: sp.spine.SkeletonData): void;
~~~~~~~~~~~~
creator.d.ts:16646:45 - error TS2694: Namespace 'sp.spine' has no exported member 'AnimationStateData'.
16646 setAnimationStateData(stateData: sp.spine.AnimationStateData): void;
~~~~~~~~~~~~~~~~~~
creator.d.ts:16661:36 - error TS2304: Cannot find name 'AnimationCacheMode'.
16661 setAnimationCacheMode(cacheMode: AnimationCacheMode): void;
~~~~~~~~~~~~~~~~~~
creator.d.ts:16724:40 - error TS2694: Namespace 'sp.spine' has no exported member 'Bone'.
16724 findBone(boneName: string): sp.spine.Bone;
~~~~
creator.d.ts:16734:40 - error TS2694: Namespace 'sp.spine' has no exported member 'Slot'.
16734 findSlot(slotName: string): sp.spine.Slot;
~~~~
creator.d.ts:16759:69 - error TS2694: Namespace 'sp.spine' has no exported member 'Attachment'.
16759 getAttachment(slotName: string, attachmentName: string): sp.spine.Attachment;
~~~~~~~~~~
creator.d.ts:16775:46 - error TS2694: Namespace 'sp.spine' has no exported member 'RegionAttachment'.
16775 getTextureAtlas(regionAttachment: sp.spine.RegionAttachment|spine.BoundingBoxAttachment): sp.spine.TextureAtlasRegion;
~~~~~~~~~~~~~~~~
creator.d.ts:16775:69 - error TS2694: Namespace 'sp.spine' has no exported member 'BoundingBoxAttachment'.
16775 getTextureAtlas(regionAttachment: sp.spine.RegionAttachment|spine.BoundingBoxAttachment): sp.spine.TextureAtlasRegion;
~~~~~~~~~~~~~~~~~~~~~
creator.d.ts:16775:102 - error TS2694: Namespace 'sp.spine' has no exported member 'TextureAtlasRegion'.
16775 getTextureAtlas(regionAttachment: sp.spine.RegionAttachment|spine.BoundingBoxAttachment): sp.spine.TextureAtlasRegion;
~~~~~~~~~~~~~~~~~~
creator.d.ts:16795:75 - error TS2694: Namespace 'sp.spine' has no exported member 'TrackEntry'.
16795 setAnimation(trackIndex: number, name: string, loop: boolean): sp.spine.TrackEntry;
~~~~~~~~~~
creator.d.ts:16806:91 - error TS2694: Namespace 'sp.spine' has no exported member 'TrackEntry'.
16806 addAnimation(trackIndex: number, name: string, loop: boolean, delay?: number): sp.spine.TrackEntry;
~~~~~~~~~~
creator.d.ts:16812:41 - error TS2694: Namespace 'sp.spine' has no exported member 'Animation'.
16812 findAnimation(name: string): sp.spine.Animation;
~~~~~~~~~
creator.d.ts:16820:42 - error TS2694: Namespace 'sp.spine' has no exported member 'TrackEntry'.
16820 getCurrent(trackIndex: void): sp.spine.TrackEntry;
~~~~~~~~~~
creator.d.ts:16874:41 - error TS2694: Namespace 'sp.spine' has no exported member 'TrackEntry'.
16874 setTrackStartListener(entry: sp.spine.TrackEntry, listener: Function): void;
~~~~~~~~~~
creator.d.ts:16881:45 - error TS2694: Namespace 'sp.spine' has no exported member 'TrackEntry'.
16881 setTrackInterruptListener(entry: sp.spine.TrackEntry, listener: Function): void;
~~~~~~~~~~
creator.d.ts:16888:39 - error TS2694: Namespace 'sp.spine' has no exported member 'TrackEntry'.
16888 setTrackEndListener(entry: sp.spine.TrackEntry, listener: Function): void;
~~~~~~~~~~
creator.d.ts:16895:43 - error TS2694: Namespace 'sp.spine' has no exported member 'TrackEntry'.
16895 setTrackDisposeListener(entry: sp.spine.TrackEntry, listener: Function): void;
~~~~~~~~~~
creator.d.ts:16902:44 - error TS2694: Namespace 'sp.spine' has no exported member 'TrackEntry'.
16902 setTrackCompleteListener(entry: sp.spine.TrackEntry, listener: (entry: sp.spine.TrackEntry, loopCount: number) => void): void;
~~~~~~~~~~
creator.d.ts:16902:83 - error TS2694: Namespace 'sp.spine' has no exported member 'TrackEntry'.
16902 setTrackCompleteListener(entry: sp.spine.TrackEntry, listener: (entry: sp.spine.TrackEntry, loopCount: number) => void): void;
~~~~~~~~~~
creator.d.ts:16909:41 - error TS2694: Namespace 'sp.spine' has no exported member 'TrackEntry'.
16909 setTrackEventListener(entry: sp.spine.TrackEntry, listener: Function): void;
~~~~~~~~~~
creator.d.ts:16914:37 - error TS2694: Namespace 'sp.spine' has no exported member 'AnimationState'.
16914 setTrackEventListener(): sp.spine.AnimationState;
~~~~~~~~~~~~~~
creator.d.ts:16949:45 - error TS2694: Namespace 'sp.spine' has no exported member 'SkeletonData'.
16949 getRuntimeData(quiet?: boolean): sp.spine.SkeletonData;
~~~~~~~~~~~~
Found 41 errors.
D:\ddz_game-master\ddz_game-master\ddz_client>
我的版本为:
D:\ddz_game-master\ddz_game-master\ddz_client>tsc -v
Version 4.0.5
某线下竞技比赛组织公司,由于当前的疫情,希望迅速实现线上转型。我们是软件集成/外包/开发公司,寻求游戏开发合作,希望有机会一起做事。感谢!
你好,感觉很不错的项目。只是对node.js不了解的不是特别友好。是否可以给出简单的部署步骤,剩下的可以自己去搜索。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.