在exe里面导出下面两个变量,同时对N卡和A卡都有效,程序默认打开就会使用独显运行。导出的变量名字必须和下面的一致,不能有前置下划线。D3D这些年没琢磨过,理论这个设置D3D也能用。这个方法是系统层显卡驱动在程序执行时检测的一个标记,有这个标记,则用独显运行。 // http://developer ...
分类:
其他好文 时间:
2020-01-12 18:30:29
阅读次数:
216
尼姆博弈(Nimm's Game) n堆物品,两人轮流取至少一个,最后一个取光的人胜利 1 int res = 0; 2 for(int i=1;i<=n;i++){ 3 res = res ^ a[i]; 4 } 5 if(res) return true; 6 else return false ...
分类:
其他好文 时间:
2020-01-12 18:07:32
阅读次数:
79
介绍 THDN的核心机制为Match3的利用,本文对Match3 Gameplay进行记录,并对其进行改良.THDN作为RogueLIke性质的游戏,玩家在随机生成的dungeon里进行探索并获取THDN的线索,随机生成的dungeon(DUNGEONIZE)会之后介绍,在探索的过程中,玩家面对黑暗 ...
分类:
其他好文 时间:
2020-01-12 13:15:04
阅读次数:
75
location 优先级 = > ^~ > ~> ~* > / = 用于指定完整路径 例 location = /game_center 匹配 http://url/game_center 完整路径 location /test12/formdata.html ^~ 用于指定前半路径 例 locat ...
分类:
其他好文 时间:
2020-01-11 13:37:02
阅读次数:
88
扫雷我之前分享的小项目和小游戏,电影购票、坦克大战、捕鱼达人、贪吃蛇等,虽然已经是耳熟能详人尽皆知的项目和游戏,但是保不齐真的有人没接触过。今天分享的这个项目,我不相信没人接触过(仅限80后-00后)。扫雷,这几乎所有电脑都有的一款超级小游戏,在全国各地的微机课上饱受欢迎,玩法紧张刺激、老少皆宜,而且还益智。今天便分享用java怎么实现这一款神作。(文末附带源码素材获取方式)游戏介绍:扫雷就是要把
分类:
编程语言 时间:
2020-01-11 10:16:48
阅读次数:
113
自己保存一些偶尔用的到的Lambda表达式小技巧 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Sys ...
分类:
其他好文 时间:
2020-01-10 00:40:56
阅读次数:
75
Description Polygon is a game for one player that starts on a polygon with N vertices, like the one in Figure 1, where N=4. Each vertex is labelled wi ...
分类:
其他好文 时间:
2020-01-08 21:17:41
阅读次数:
76
第一次五分钟过了cf A https://codeforces.com/contest/1270/problem/A 思路:谁拿到最大的牌即赢 官方: #include<bits/stdc++.h> #define ll long long using namespace std; const in ...
分类:
其他好文 时间:
2020-01-08 00:30:23
阅读次数:
80
https://blog.csdn.net/qq_33537945/article/details/79159070 https://gameinstitute.qq.com/community/detail/101996 https://blog.csdn.net/leeby100/article ...
分类:
编程语言 时间:
2020-01-07 18:19:13
阅读次数:
87
最近在使用DestroyImmediate的时候踩到一个坑:删除对象子物体的时候尽量不要用DestroyImmediate 这样写: for (int i = 1; i < starNodeRight.childCount; i++) {DestroyImmediate(starNodeRight. ...
分类:
其他好文 时间:
2020-01-06 12:51:34
阅读次数:
78