像素启航:在像素与梦想之间铺第一块砖

本文最后更新于:1 分钟前

从零开始

Zola

2025 年 7 月 15 日

Andromeda | Zola (getzola.org)

Pixadus/andromeda-theme: Photography journal theme for Zola 📷 (github.com)

Zolarwind | Zola (getzola.org)

image-20250715153907065

thomasweitzel/zolarwind: A localizable blog theme using Tailwind CSS for styling and KaTex for math (github.com)

下载安装 zola。

Releases · getzola/zola (github.com)

image-20250715155610229

1
zola --version
1
zola serve
1
zola serve --interface 0.0.0.0 --port 8080

image-20250715160439447

image-20250715160454668

构建打包出现问题。

1
2
3
4
5
6
7
D:\Blog\zola\zolarwind-main>zola build
Building site...
Checking all internal links with anchors.
> Successfully checked 1 internal link(s) with anchors.
-> Creating 9 pages (0 orphan) and 2 sections
Error: Failed to build the site
Error: 另一个程序正在使用此文件,进程无法访问。 (os error 32)

正在编辑 config,toml 文件导致的,编辑完成保存关闭后即可解决·。

1
zola build
1
2
3
4
5
6
D:\Blog\zola\zolarwind-main>zola build
Building site...
Checking all internal links with anchors.
> Successfully checked 1 internal link(s) with anchors.
-> Creating 9 pages (0 orphan) and 2 sections
Done in 300ms.

这会生成 public/文件夹(内含所有静态文件)。

Unity

2025 年 7 月 3 日

【游戏开发】新人如何用 unity 做出第一个属于自己的游戏 Demo_哔哩哔哩_bilibili

【只要一小时】【零基础】 游戏开发-Unity 光速入门 【已完结】【103】_哔哩哔哩_bilibili

02 Unity 界面和基础操作_哔哩哔哩_bilibili

2025 年 7 月 7 日

Unity游戏引擎|游戏开发平台-游戏服务 | Unity中国官网

Unity 10分钟快速入门 #U3D #Unity3D_哔哩哔哩_bilibili

2025 年 7 月 9 日

Unity Hub报错:No valid Unity Editor license found. Please activate your license.-CSDN博客

团结引擎_百度百科 (baidu.com)

超简短的独立游戏开发教学|连载至37 | Unity 中文课堂 (u3d.cn)

image-20250709184150785

超简短的独立游戏开发教学|连载至37 | Unity 中文课堂 (u3d.cn)

2025 年 7 月 11 日

【独立游戏体验计划】不一样的游戏教学 | Unity 中文课堂 (u3d.cn)

2025 年 7 月 14 日

Unity - 综合搜索 - 编程导航 - 发现优质编程综合资源 (codefather.cn)

Gamer飞羽的个人空间-Gamer飞羽个人主页-哔哩哔哩视频 (bilibili.com)

Unity3D新手入门教程_超细节100集课程_哔哩哔哩_bilibili

Unity - SiKi学院|SiKi学堂 - unity|u3d|虚幻|ue4/5|java|python|人工智能|视频教程|在线课程 (sikiedu.com)

C# 教程 | 菜鸟教程 (runoob.com)

UE

2025 年 7 月 3 日

Unreal Engine(UE,虚幻引擎)简介 - 知乎 (zhihu.com)

游戏开发 - 知乎 (zhihu.com)

编程开物 - 知乎 (zhihu.com)

游戏引擎

2025 年 7 月 4 日

不用游戏引擎做游戏有多难? - 知乎 (zhihu.com)

知乎盐选 | 1.2.2 游戏引擎 (zhihu.com)

黄金矿工

2025 年 7 月 23 日

最近对游戏开发比较感兴趣。

不论是用什么样的编程语言或是游戏引擎,开发游戏最重要的素养一定是游戏架构及其对应的编码思路,基本功要扎实。

正巧计划在个人博客开设最新的栏目,聊聊我开发过的有趣的项目,想起来以前写过的几个小游戏,现在拿出来稍作一些优化。

对我个人而言,游戏架构反而不是实现过程中最核心的部分,更应该着墨于编码实现的思路。

两年多了,没想到这个项目会以这样的方式起死回生,显然它已经成为了我在游戏开发领域的启蒙项目了。

我希望通过这样的契机,能让自己在未来的游戏开发道路中越走越远,不管遇到什么困难。

在业余时间里选择做自己喜欢的事情。

2025 年 7 月 24 日

启动游戏。

1
2
3
4
5
6
public class GoldMiner {
public static void main(String[] args) {
GamePanel gamePanel = new GamePanel(0);
gamePanel.launch();
}
}

游戏画面属性,包括窗口尺寸大小,游戏状态,背景图,爪钩以及各种实体列表。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 定义窗口尺寸
int width;
int height;
// 定义背景图
BackGround bg;
// 定义红线
Line line;
// 定义缓存图片
Image offScreeImage;
// 定义实体类列表(金块+石块)
ArrayList<MyObject> myObjectList = new ArrayList<>();
// 定义能否放置
boolean isPlace;
// 定义游戏状态(0-准备中 1-进行中 2-成功 3-失败)
int state;

初始化游戏画面,分别放置各实体,金块,石块,答辩,头像。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/**
* 游戏画面
*
* @throws HeadlessException
*/
public GamePanel(int state) throws HeadlessException {
// 初始化窗口尺寸
this.width = 768;
this.height = 1000;
// 初始化背景图
this.bg = new BackGround();
// 初始化红线
this.line = new Line(this);
// 初始化能否放置(默认可以放置)
this.isPlace = true;
// 初始化游戏状态(准备中)
this.state = state;
// 设置开始时间
START_TIME = System.currentTimeMillis();
// 初始化金块
for (int i = 0; i < 10; i++) {
Gold gold;
double random = Math.random();
if (random < 0.3) gold = new GoldSmaller(); // 30% 概率生成小金块
else if (random < 0.7) gold = new Gold(); // 40% 概率生成普通金块
else gold = new GoldBigger(); // 30% 概率生成大金块
// 放置前遍历所有已放置方块
for (MyObject myObject : this.myObjectList) {
// 位置重叠,标记为不可放置
if (gold.getRec().intersects(myObject.getRec()))
// 不可放置
this.isPlace = false;
}
// 可放置,添加至列表
if (this.isPlace) {
this.myObjectList.add(gold);
} else {
this.isPlace = true;
// 再放置一遍
i--;
}
}
// 初始化石块
for (int i = 0; i < 5; i++) {
Rock rock = new Rock();
// 放置前遍历所有已放置方块
for (MyObject myObject : this.myObjectList) {
// 如果重叠
if (rock.getRec().intersects(myObject.getRec()))
// 不可放置
this.isPlace = false;
}
if (this.isPlace) {
this.myObjectList.add(rock);
} else {
this.isPlace = true;
//再放置一遍
i--;
}
}
// 初始化答辩
for (int i = 0; i < 3; i++) {
Shit shit = new Shit();
// 放置前遍历所有已放置方块
for (MyObject myObject : this.myObjectList) {
// 如果重叠
if (shit.getRec().intersects(myObject.getRec()))
// 不可放置
this.isPlace = false;
}
if (this.isPlace) {
this.myObjectList.add(shit);
} else {
this.isPlace = true;
// 再放置一遍
i--;
}
}
// 初始化小头像
for (int i = 0; i < 2; i++) {
Head001 head = new Head001();
if (LEVEL > 1 && LEVEL <= 4)
head.setQuality(16);
if (LEVEL > 4 && LEVEL <= 7)
head.setQuality(20);
if (LEVEL > 7)
head.setQuality(24);
// 放置前遍历所有已放置方块
for (MyObject myObject : this.myObjectList) {
// 如果重叠
if (head.getRec().intersects(myObject.getRec()))
// 不可放置
this.isPlace = false;
}
if (this.isPlace) {
this.myObjectList.add(head);
} else {
this.isPlace = true;
//再放置一遍
i--;
}
}
// 初始化大头像
for (int i = 0; i < 2; i++) {
Head002 head = new Head002();
if (LEVEL > 1 && LEVEL <= 4)
head.setQuality(16);
if (LEVEL > 4 && LEVEL <= 7)
head.setQuality(20);
if (LEVEL > 7)
head.setQuality(24);
//放置前遍历所有已放置方块
for (MyObject myObject : this.myObjectList) {
//如果重叠
if (head.getRec().intersects(myObject.getRec()))
//不可放置
this.isPlace = false;
}
if (this.isPlace) this.myObjectList.add(head);
else {
this.isPlace = true;
//再放置一遍
i--;
}
}
}

Swing

2025 年 7 月 26 日

[[Java进阶] Swing两万字大总结一(超详细教程,这不得收藏一波)_swing教程-CSDN博客](https://blog.csdn.net/weixin_62511863/article/details/124853952?ops_request_misc=%7B%22request%5Fid%22%3A%22d8994520e3974bc13eddc37ceb302f9c%22%2C%22scm%22%3A%2220140713.130102334..%22%7D&request_id=d8994520e3974bc13eddc37ceb302f9c&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-124853952-null-null.142^v102^control&utm_term=Java Swing&spm=1018.2226.3001.4187)

借光

2025 年 7 月 3 日

学习这个行业里里耕耘多年的技术大牛的思想。

游戏程序员正经聊一下游戏开发【深度游戏】_游戏杂谈 (bilibili.com)

我自学 7 个月 Unity 做的游戏!(demo)_哔哩哔哩_bilibili

一个人做游戏有多难_演示 (bilibili.com)

个人网站:GARRYUI

美术 UI 转游戏开发确实有一定优势。

【从零开始的 C++游戏开发】项目回顾和代码总览 | EasyX 制作植物明星大乱斗_哔哩哔哩_bilibili

我做游戏教程,为什么不从游戏引擎开始?_哔哩哔哩_bilibili

Voidmatrix 的个人空间-Voidmatrix 个人主页-哔哩哔哩视频 (bilibili.com)

个人博客:Voidmatrix’s Blog

4 个步骤让你入手独立游戏开发 | 新手独立游戏开发指南_游戏热门视频 (bilibili.com)


像素启航:在像素与梦想之间铺第一块砖
https://test.atomgit.net/blog/2025/07/03/像素启航:在像素与梦想之间铺第一块砖/
作者
Memory
发布于
2025年7月3日
更新于
2025年7月26日
许可协议