我的世界開發(fā)指南

一、目的是什么
兒童編程啟蒙?
專業(yè)的游戲編程?

二、基于Minecraft的官方API開發(fā)
《零基礎(chǔ)學(xué)Minecraft編程》 Adventures in Minecraft 書本后附錄里的資源索引很有用,順藤摸瓜可以找到很多有價值的參考資料。

開發(fā)環(huán)境準(zhǔn)備:

  1. 購買Minecraft正版軟件, 只有正版的才有多人聯(lián)機(jī)模式
    有經(jīng)濟(jì)能力的就多多支持!

  2. 下載 Starter Kit Mac
    a. CraftBukkit ,
    基于python的Minecraft server ?
    基于c/c++的Minecraft server ? cuberite,Lua Plugin? 學(xué)學(xué)C++編程
    基于Go的?
    b. RaspberryJuice 插件 , https://github.com/zhuowei/RaspberryJuice, 參考 Minecraft-Pi API 協(xié)議
    c. MinecraftStuff,圖形庫?

    x. 自己制作工具包:spigot + RaspberryJuice

  3. 啟動CraftBukkit server
    cd ~/Downloads/AdventuresInMinecraft-Mac/MyAdventures
    ./StartServer.command

  4. 在MyAdventures目錄中編寫代碼(因為代碼依賴該目錄下的mcpi等lib文件)
    cd ~/Downloads/AdventuresInMinecraft-Mac/MyAdventures
    vim hello_world.py (參考 Minecraft API, 里面提供了很多API示例,值得學(xué)習(xí))
    python2 hello_world.py #運行代碼,目前還只支持python2.7?

python-coding-with-minecraft-how.png

https://www.stuffaboutcode.com/p/minecraft.html
在新版本的Lancher中,如何指定server端ip? 購買正版后,會有聯(lián)機(jī)模式,可輸入ip等

服務(wù)端:Vanilla,Bukkit,CraftBukkit,Spigot ?

似乎缺少生物(Mobs)相關(guān)的api?難道生物也是block?鍬、斧等(Items)裝備api?
Items are objects that exist only within the player's inventory and hands
Mobs are living, moving game entities. The term "mob" is short for "mobile"

https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi/5

知識點:

  1. 編程環(huán)境搭建
  2. 建筑
  3. 玩家互動等

三、Mod
https://files.minecraftforge.net/

四、Minecraft clone

五、游戲編程的一些基本問題
可以通過官方api,mod制作的了解,深入理解游戲的機(jī)制。

  1. 地圖生成機(jī)制?
    https://zhuanlan.zhihu.com/p/43566129
    https://zhuanlan.zhihu.com/p/43579344
    https://zhuanlan.zhihu.com/p/43758301

  2. 游戲中的尋路算法
    https://gameinstitute.qq.com/community/detail/119033

  3. 生物和玩家互動機(jī)制, 跟蹤與閃避算法?
    跟隨 or 對抗 ?

  4. 3D角色模型,角色動畫

《AI for Game Developers》《游戲開發(fā)中的人工智能》:
   ·使用基于勢函數(shù)的單一技術(shù)處理追趕、躲避、聚集和避障等問題。
   ·使用包括路徑點和經(jīng)典a*算法解決尋徑問題。
   ·利用ai腳本擴(kuò)充ai引擎的功能,讓設(shè)計者和玩家更好地設(shè)計和玩游戲。
   ·給你的游戲角色賦予基于規(guī)則的ai推理能力,包括模糊邏輯和有限狀態(tài)機(jī)。
   ·使用概率分析和諸如貝葉斯推理的高級技術(shù)處理不確定性問題。

六、高端玩法?
強(qiáng)化學(xué)習(xí)?微軟的mod?
gan生成地圖?
環(huán)境模擬 ?

七、一些漫無邊際的想法

  1. 真實世界激光點云建模轉(zhuǎn)換成我的世界地圖? 巴黎圣母院?

我的世界 尋路算法 Path-finding Algorithm 
[游戲中的AI算法總結(jié)與改進(jìn)](https://blog.csdn.net/cordova/article/details/51607407)
Bot with PathFinding AI that autonomeously switches between three Algorithms: 
1. Dijkstra's Concurrent
2. semi-A* 
3. a simple Chase algorithm




[http://www.mcbbs.net/thread-846195-1-2.html](http://www.mcbbs.net/thread-846195-1-2.html)

Minecraft開發(fā)者生態(tài)體系介紹:
https://www.spigotmc.org/wiki/what-is-spigot-craftbukkit-bukkit-vanilla-forg/
1. bukkit,基于Minecraft API開發(fā)功能
2. Forge, 修改Minecraft自身的代碼


[https://arghbox.wordpress.com/](https://arghbox.wordpress.com/)


目標(biāo):
1. 集齊所有牲畜
   羊和兔子不能與狼共存,需要建圈舍, 兔子沒啥太大作用?
             挖個坑種上麥子,吸引羊? 先建圈舍,再拿小麥吸引入圈?
    流浪貓需魚馴服(釣魚竿),對付爬行者?
    馬?
    驢 
2. 集齊所有農(nóng)作物
   (缺少胡蘿卜、馬鈴薯、甜菜,南瓜,西瓜,可可豆)
3. 找到村莊
    有助于集齊所有農(nóng)作物
    找到一些有用的東西
4. 挖礦到基巖
    鉆石礦 (足夠的食物,木頭,)
[https://www.zhihu.com/question/24459078/answer/42943529](https://www.zhihu.com/question/24459078/answer/42943529)

[](https://files.minecraftforge.net/)
[https://www.instructables.com/id/Python-coding-for-Minecraft/](https://www.instructables.com/id/Python-coding-for-Minecraft/)
[https://www.zhihu.com/question/24459078/answer/42943529](https://www.zhihu.com/question/24459078/answer/42943529)

[https://www.minecraft-downloads.com/minecraft-forge-mod-for-windows-and-mac/download/1-14/](https://www.minecraft-downloads.com/minecraft-forge-mod-for-windows-and-mac/download/1-14/)


1. 挖壕溝,中間有個高2個方塊的高地,人躲在高地上,第一個晚上,2個僵尸掉入壕溝,殺之
2. 第二天擴(kuò)壕溝,砍樹,挖煤,晚上,3個僵尸掉入壕溝,殺之
3. 第三個晚上,兒子一起聯(lián)機(jī),高地方塊敲掉一塊,忘記填上,僵尸涌入高地,2人合力殺之,我損失慘重,掉血慘。出現(xiàn)幻影
4. 第四個白天,吃肉補(bǔ)充,晚上,被幻影攻擊,掉入壕溝,再遭僵尸圍攻,死
挖到鐵礦石,制作剪刀,剪羊毛,制造床,睡覺,避免生成幻影。
5. 重生,連續(xù)2個白天,被爬行者爆炸,考慮用石頭加固高地危險地域
獲得小麥種子,種地
6. 狼掉入壕溝,無骨頭可馴化,把2只羊給吃了,a.狼沒吃豬?b.馴化的狼還會吃羊么
7. 河邊種甘蔗,提示狼溺水死了,好傷心啊,到哪里撿骨頭啊~

### 開發(fā)相關(guān)
[https://bdznh.github.io/Minecraft/](https://bdznh.github.io/Minecraft/)
[https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi/2](https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi/2)

[https://zhidao.baidu.com/question/530577791](https://zhidao.baidu.com/question/530577791)


[https://minecraft-zh.gamepedia.com/Minecraft_Wiki](https://minecraft-zh.gamepedia.com/Minecraft_Wiki)

下載:https://www.minecraft.net/en-us/download/alternative/
https://minecraft.gamepedia.com/Block
https://linux.cn/article-9480-1.html




深深的愛上了Minecraft

1. 官方:Minecraft

2. 官方開源項目:
[格式化 Minecraft 使用的數(shù)據(jù)](https://github.com/Mojang/DataFixerUpper)
[命令引擎(命令解析器和調(diào)度器)](https://github.com/Mojang/brigadier)

3. [微軟基于Minecraft的AI模擬環(huán)境](https://github.com/Microsoft/malmo)

4. 第三方mods?
mod是什么意思?

5. [模仿開源](https://www.michaelfogleman.com/projects/craft/)

https://raspberrypi.stackexchange.com/questions/8509/can-python-control-normal-minecraft-or-only-the-raspi-edition


https://mcshelfs.net/minecraft-download/
[https://adventuresinminecraft.github.io/](https://adventuresinminecraft.github.io/)

[https://www.stuffaboutcode.com/p/minecraft.html](https://www.stuffaboutcode.com/p/minecraft.html)

[https://minecraft.gamepedia.com/Development_resources](https://minecraft.gamepedia.com/Development_resources)


[https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi/5](https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi/5)

[https://www.stuffaboutcode.com/p/minecraft-api-reference.html](https://www.stuffaboutcode.com/p/minecraft-api-reference.html)

[https://juejin.im/post/5ccd142651882541cd485b38](https://juejin.im/post/5ccd142651882541cd485b38)
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 1.提取圖片 [D 160418 15:31:06 connectionpool:383] "POST /math...
    瀟湘陽陽閱讀 1,007評論 2 0
  • # Python 資源大全中文版 我想很多程序員應(yīng)該記得 GitHub 上有一個 Awesome - XXX 系列...
    小邁克閱讀 3,122評論 1 3
  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom閱讀 3,129評論 0 3
  • 前端知識結(jié)構(gòu)https://github.com/JacksonTian/fks Web前端開發(fā)大系概覽https...
    柴東啊閱讀 1,166評論 0 10
  • 1-------- 走進(jìn)前端 2-------- jQuery 3-------- CSS 4-------- A...
    依依玖玥閱讀 2,411評論 0 34

友情鏈接更多精彩內(nèi)容