CocosCreator实现左右跳游戏JumpLR.zipconst{ccclass,property}=cc._decorator;@ccclassexportdefaultclassBoxextendscc.Component{@property(cc.Label)txtNum:cc.Label=null;privatemPrevBox:cc.Node=null;privatemNextBox:cc.Node=null;privatemOffset:number=0;//[-4,4]//LIFE-CYCLECALLBACKS://onLoad(){}start(){}//update(dt){}setOffset(offset:number){this.mOffset=offset;}getOffset(){returnthis.mOffset;}setPrev(prev:cc.Node){this.mPrevBox=prev;}getPrev(){returnthis.mPrevBox;}setNext(next:cc.Node){this.mNextBox=next;}getNext(){returnthis.mNextBox;}setNum(num:number){this.txtNum.string=`${num}`;}down(y:number){this.node.runAction(cc.sequence(cc.moveBy(0.4,0,y),cc.callFunc(()=>{NodeMgr.putBox(this.node);})));}}
2024/2/13 18:32:35 807KB CocosCreator实现左右
1
这是一个用引导的项目。
入门首先,运行开发服务器:npmrundev#oryarndev用浏览器打开以查看结果。
您可以通过修改pages/index.js来开始编辑页面。
页面在您编辑文件时自动更新。
可以在上访问。
可以在pages/api/hello.js编辑此端点。
pages/api目录映射到/api/*。
此目录中的文件被视为而不是React页面。
了解更多要了解有关Next.js的更多信息,请查看以下资源:-了解Next.js功能和API。
交互式Next.js教程。
您可以查看-欢迎您提供反馈和意见!在Vercel上部署部署Next.js应用程序的最简单方法是使用Next.js创建者提供的。
请查看我们的以获取更多详细信息。
2024/2/12 4:24:15 47KB TypeScript
1
Get_next_line我在42所学校的Get_next_line项目的git存储库Moulinette评分:115%学生评分:115%仅用于教育目的,请勿复制任何此类文件
2024/1/25 16:01:19 5KB C
1
TheJupyterNotebookallowsyoutocreateandsharedocumentsthatcontainlivecode,equations,visualizations,andexplanatorytext.TheJupyterNotebooksystemisextensivelyusedindomainssuchasdatacleaningandtransformation,numericalsimulation,statisticalmodeling,andmachinelearning.LearningJupyter5willhelpyougettogripswithinteractivecomputingusingreal-worldexamples.ThebookstartswithadetailedoverviewoftheJupyterNotebooksystemanditsinstallationindifferentenvironments.Next,youwilllearntointegratetheJupytersystemwithdifferentprogramminglanguagessuchasR,Python,Java,JavaScript,andJulia,andexplorevariousversionsandpackagesthatarecompatiblewiththeNotebooksystem.Movingahead,youwillmasterinteractivewidgetsandnamespacesandworkwithJupyterinamulti-usermode.Bytheendofthisbook,youwillhaveusedJupyterwithabigdatasetandbeabletoapplyallthefunctionalitiesyou’veexploredthroughoutthebook.YouwillalsohavelearnedallabouttheJupyterNotebookandbeabletostartperformingdatatransformation,numericalsimulation,anddatavisualization.
2024/1/19 19:22:55 13.37MB python jupyter
1
【员工管理系统】问题描述:每个员工的信息包括:编号、姓名、性别、出生年月、学历、职务、电话、住址等。
系统能够完成员工信息的查询、更新、插入、删除、排序等功能。
基本要求:排序:按不同关键字,对所有员工的信息进行排序;
查询:按特定条件查找员工;
更新,按编号对某个员工的某项信息进行修改;
插入,加入新员工的信息;
删除,按编号删除已离职的员工的信息。
选作内容:实现图形用户界面。
通过链表实现数据结构:#include#include#include#include#includeusingnamespacestd;typedefstructworkers{charname[15];//姓名chardepartment[18];//单位chargender;//性别unsignedintage;//年龄unsignedlonglongtelephone;//电话unsignedlongwage;//工资unsignedlongnum;//职工号structworkers*next;}*Linklist,Lnode;voidfrist_print(){printf("\t\t⊙▽⊙⊙▽⊙⊙▽⊙⊙▽⊙⊙▽⊙⊙▽⊙\n\n");printf("\t\t\t欢迎进入员工管理系统\n");}voidmenu(){printf("\n\t\t^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n");printf("\t\t\t◎1.创建员工信息\t\n");printf("\t\t\t◎2.插入员工信息\t\n");printf("\t\t\t◎3.修改员工信息\t\n");printf("\t\t\t◎4.删除员工信息\t\n");printf("\t\t\t◎5.查询员工信息\t\n");printf("\t\t\t◎6.员工信息排序\t\n");printf("\t\t\t◎7.显示员工信息\t\n");printf("\t\t\t◎8.员工工资情况\t\n");printf("\n\t\t^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n");printf("注意:输入均以回车作为结束\n");printf("pleasechoise1--8:\t");//putchar(12);}voidInset(LinklistHead){Linklists,L;unsignedintagee;unsignedlongwagee,numm;
2024/1/12 15:07:32 12KB ss
1
Asp这个老古懂估计没几个人在用了。
几年没写代码了,最近要弄个小东西,给手机端提供json数据,不想麻烦别人,自己又只会asp,没办法就自己动手了。
网上找了好久都没有一个人能完整的把asp操作json说清楚。
最后还是自己搞定的。
整出来共享给大家。
(ps,还有个原因csdn的分不够用啦,大家看着给点吧。
写这个说明文档都用了我两小时。
^_^)以下是示例代码'说明:json.asp中引用了json.js.asp'其他见文档'手机很多时候不认gb2312,跳入json的坑就忘记gb2312吧,讨厌的是,如果代码报错,iis会输出gb2312,结果就是乱码,有点烦。
'自己想办法解决吧response.Charset="utf-8"dimstrJsonData,ovbJson,jdimarrTemp,varname,isetovbJson=newvbJson'asprecrodset和数组转json字符arrTemp=array("a","{""oa"":""我是oa""}","c")strJsonData=ovbjson.toJson(empty,arrTemp,true)'转换为Json格式的字符串,有兴趣可以自己输出看看是什么setj=json.parse(strJsonData)'序列化为json对象(或者是数组对象)response.Write(j.get(1)&"")'别用vb数组来存json对象,不然得每个元素去重新序列化,这里如果想j.get(1).oa就不行了。
必须对j.get(1)单独序列才行'----recrodset就不演示了,懒得连数据库'---自定义操作方法的演示---strJsonData="{a:1,b:[{c:'我是数组中的点c'}]}"setj=json.parsestr(strJsonData)response.Write(j.b.get(0).c&"")'添加节点的时候注意,如果值是null,会被忽然,这个节点会不存在的。
在添加之前记得先检查值setj=json.add(j,"new","我是新加的节点")response.Write(j.new&"")'下面这句注掉了,是因为这个操作是无效的因为j.b是数组,不能add'setj=json.add(j.b,"new1","我是加不进的节点")setj.b=j.b.put(j.b.length,j.b.get(0))response.Write(j.b.get(1).c&",我是新加的数组元素")'因为数组的get方法不允许被赋值,所以不能像下面这样写'setj.b.get(0)=json.add(j.b.get(0),"new","我会报错")json.addj.b.get(0),"new","我是新加的new我不会报错"json.addj.b.get(0),"new1","我是通过变量取出来的哦"response.Write(j.b.get(0).new&"")varname="new1"response.Write(json.byname(j.b.get(0),varname)&"")fori=0toj.b.length-1 varname="c" response.Write(json.byname(j.b.get(i),varname)&"我是循环出来的c,索引:"&i&"")next'最后完整的输出给手机就这样:response.Writejson.stringify(j)
2023/12/24 12:28:04 24KB asp json
1
动态效果,黑客帝国#include#defineID_TIMER1#defineSTRMAXLEN25//一个显示列的最大长度#defineSTRMINLEN8//一个显示列的最小长度LRESULTCALLBACKWndProc(HWND,UINT,WPARAM,LPARAM);typedefstructtagCharChain//整个当作屏幕的一个显示列,这是个双向列表{structtagCharChain*prev;//链表的前个元素TCHARch;//一个显示列中的一个字符structtagCharChain*next;//链表的后个元素}CharChain,*pCharChain;typedefstructtagCharColumn{CharChain*head,*current,*point;intx,y,iStrLen;//显示列的开始显示的x,y坐标,iStrLen是这个列的长度intiStopTimes,iMustStopTimes;//已经停滞的次数和必须停滞的次数,必须停滞的次数是随机的}CharColumn,*pCharColumn;/***********************/........................................
2023/11/24 9:22:47 9KB 特效C语言
1
最新版NGUI2020.1.5,支持Unity版本5.6.7或更高,官方地址:https://assetstore.unity.com/packages/tools/gui/ngui-next-gen-ui-2413
2023/11/23 20:30:40 12.96MB ngui
1
leetcodepython题解,包含大量leetcode题目的解法,源代码,python实现CourseSchedule21.4.4Numberofislands14.5HeapsMergeKSortedLinkedLists1.5.1KthLargestElementinanArray1.5.2Arrays1.62sum‖l1.62SumⅢ1.6.2ContainsDuplicate1.6.3RotateArray1.643SumSmaller1.653Sumclosest1.663Sum1.6.7TwoSum1.68PlusOne1.6.9BestTimetoBuyandSellStock1.6.10Shortestworddistance1.6.11Movezeroes1.6.12ContainsDuplicate1.6.13MajorityElement1.6.14RemoveDuplicatesfromSortedArray1.6.15NestedListWeightSum1.6.16NestedListWeightedSumIl1.6.17Removeelement1.6.18IntersectionofTwoArraysll1.6.19MergeSortedArrays1.6.20ReverseVowelsofaString1.6.21IntersectionofTwoArrays1.6.22Containerwithmostwater1.6.23ProductofArrayExceptSelf1.6.24TrappingRainWater1.6.25MaximumSubarray1.6.26BestTimetoBuyandSellStockIl1.6.27FindMinimuminRotatedSortedArray1.6.28Pascal'sTriangle1.6.29Pascal'sTriangle‖l1.6.30SummaryRanges1.6.31MissingNumber1.6.32StringsValidAnagram1.7.1Validpalindrome1.7.2WordPattern1.7.3ValidParentheses1.7.4IsomorphicStrings1.7.5ReverseString1.7.6BitManipulationSumofTwoIntegers18.1SingleNumber18.2Singlenumber‖18.3SingleNumberIll1.8.4Maths1.9ReverseInteger1.9.1Palindromenumber19.2Pow(x,n)19.3Subsets1.94Subsets‖195FractiontoRecurringDecimal19.6Excelsheetcolumnnumber19.7Excelsheetcolumntitle19.8FactorialTrailingzeros199HappyNumber1.9.10Countprimes1.9.11Plusone19.12DivideTwoIntegers19.13MultiplyStrings1.9.14MaxPointsonaline1.9.15ProductofArrayExceptSelf19.16Powerofthree19.17IntegerBreak1.9.18Poweroffour9.19Adddigits1.9.20UglyNumber1.9.21glyNumberll1.9.22SuperUglyNumber19.23FindKpairswithsmallestsums1.924SelfCrossing1.9.25Paintfence1.9.26Bulbswitcher19.27Nimgame1.9.28Matrix1.10RotateImage1.10.1SetmatrixZeroes1.10.2Searcha2DMatrix1.10.3Searcha2dMatrixl1.10.4SpiralMatrix1.10.5SpiralMatrix‖l1.10.6DesignLRUCache1.11.1IntroductionMyLeetcodeSolutionsinPythonThisbookwillcontainmysolutionsinPythontotheleetcodeproblems.Currently,willjusttrytoposttheacceptedsolutions.TheplanistoeventuallyincludedetailedexplanationsofeachandeverysolutionamdoingthisjustforfunLinkedListCycleLinkedListCvcleGivenalinkedlist,determineifithasacycleinitFollowup:Canyousolveitwithoutusingextraspace?Url:https://leetcode.com/problems/linked-list-cycle/Definitionforsingly-linkedlistclassListNodeobject)###definit(self,x)self,val=xself,nextNoneclassSolution(object):defhasCycle(self,head)IItypehead:ListNodertype:boolIIIIifhead=nonereturnfalseelsefastheadslow=headWhilefastnoneandfast.nextnonesloW=slownextfastfast.nextnextiffast=slow:breaki千fastNoneorfast.next=nonereturnFalseeliffast=slowreturntruereturnfalseLinkedListCycleReverseLinkedListReverseLinkedlistReverseasinglylinkedlistUrl:https://eetcode.com/problems/reverse-linked-list/definitionforsingly-linkedlist#tclassListNode(object):##def-init(self,x)self.∨al=xselfnextnoneclassSolution(object):defreverseList(self,head)11IIl1typehead:ListNodertype:ListNodeifhead=nonereturnnoneelifhead!=noneandheadnext=nonereturnheadelsetempNonenextnodenoneWhileheadNonenextnodeheadnexthead.nexttemptemp=headheadnextnodereturntempDeletenodeinalinkedlistDeletenodeinalinkedlistWriteafunctiontodeleteanode(exceptthetail)inasinglylinkedlist,givenonlyaccesstothatnodeSupposedthelinkedlistis1->2->3->4andyouaregiventhethirdnodewithvalue3,thelinkedlistshouldbecome1->2->4aftercallingyourfunctionUrl:https://eetcode.com/problems/delete-node-in-a-linked-list/Definitionforsingly-linkedlistclassListNode(object):#def-init(self,x)#self,valxself,nextNoneclasssolution(object):defdeleteNode(self,node):IIlIItypenode:ListNodertype:voidDonotreturnanythingmodifynodein-placeinsteadI111fnode=nonepasse⊥se:nextnodenode.nextnodevalnextnodevalnode.nextnextnode,next
2023/11/8 17:06:47 574KB leetcode python题解
1
:T-Rex:T-雷克斯烟囱样板Unicorn的首选堆栈,用于脚手架Web和Electron的前端应用程序。
页面,资产和组件将在您编辑(热重装)时自动更新。
T-rex堆栈备受关注,并配置了以下语言和框架:入门安装:makeinstall或yarninstall运行:makedevelopment或yarndev打开:立即在ZEIT上部署部署Next.js应用程序的最简单方法是使用创建者提供的。
请查看以获取更多详细信息。
2023/10/17 8:26:02 194KB TypeScript
1
共 85 条记录 首页 上一页 下一页 尾页
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡