小游戏
编写的小游戏
DiamondC++
1145141919810
展开
-
[C++] [Win32] 生命游戏-02
。。。总是有误差,还是SFML好宛如稀饭的代码#include <iostream>#include <ctime>#include <vector>#include <cmath>#include <windows.h>#include <windowsx.h>typedef unsigned short ushort;//size_t也是一样的typedef unsigned int uint;//常量原创 2022-05-10 11:14:19 · 203 阅读 · 0 评论 -
[C++] [Win32] 生命游戏-01
说明这只是一个框架,请期待下一篇文章(没错我就是牙膏厂厂长)代码#include <iostream>#include <ctime>#include <vector>#include <windows.h>#include <windowsx.h>typedef unsigned short ushort;typedef unsigned int uint;struct CellData{ ushort width原创 2022-05-09 16:15:52 · 542 阅读 · 0 评论 -
[android] [java] [OpenGL ES3.2] MyMineCraft
代码已经传到github上了Sprite就是改了的MyObjectSprite.javapackage com.Diamond.SGL;import android.renderscript.Float3;import android.renderscript.Matrix4f;public class Sprite { private Float3 mPosition; private Float3 mRotate; private Float3 mScale;原创 2022-02-12 09:14:15 · 228 阅读 · 0 评论 -
8行井字棋游戏(c++)
你以为的:#include<iostream>using namespace std;int main(){ cout << "##*\n#*#\n*##"; return 0;}事实上的:#include<iostream>using namespace std;const int noManWin=0;const int playerWin=1;const int player2Win=2;char board[3][3];int原创 2021-01-27 11:21:21 · 163 阅读 · 0 评论 -
C++猜数字
p.s.不知道DevC++抽什么风,字都变成乱码了,而且运行有点问题,还是c4droid好#include<iostream>#include<cstdlib>#include<ctime>#if not _WIN32#include<conio.h>#endifusing namespace std;int round = 0;void uia() { cout << "\e[47;30m"; for (int i = 0;原创 2021-02-13 16:00:39 · 136 阅读 · 1 评论