[程式] How to Make an RPG

楼主: enthos (影斯作业系统)   2019-06-04 11:51:40
我昨天 google: golang RPG 时找到的。
979 页, 最后更新于 2017 年。
书中程式码使用 Sublime Text 在 Mac 的截图。
作者在 medium 的文章值得一读。
他首先分析自己的优点:
有一本 C# 的 game book,
有 game blog,
想做 JRPG 专题,
收集了 1000 份 mailing list 订阅这本书的主题。
...
缺点: 移动时感觉很卡、不支援中文。
https://howtomakeanrpg.com/
How to Make an RPG
USD $46
https://medium.com/@DanSchuller
My First Side Project - Part 1 : What Went Right
http://howtomakeanrpg.com/a/pages/the-book.html
http://howtomakeanrpg.com/a/index.html
http://howtomakeanrpg.com/a/archives.html
blog
http://www.godpatterns.com/
engine
http://dinodeck.com/
http://dinodeck.com/docs/1.0/
http://dinodeck.com/source/1.0/
我猜中文是下面没用 utf-8, 因为 FTGL 支援 TTF
https://github.com/dinodeck/dinodeck/blob/master/src/FormatText.cpp
void FormatText::RenderLine(FTTextureFont* font,
float x, float y,
const char* text,
int start, int finish)
int c = text[i];
unsigned int charCode = (unsigned int) c;
unsigned int index = charMap->GlyphListIndex(charCode);
//FTTextureGlyphImpl::ResetActiveTexture();
(*glyphVector)[index]->Render(FTPoint(x, y), FTGL::RENDER_ALL);
目前是它用到的函式库做不出来。
dinodeck-master/src
$ sh make_windows.sh
g++ -o dinodeck ../lib/glee/glee.c ../lib/mongoose/mongoose.c
...
Texture.o System.o Sprite.o DDAudio_Windows.o Sound.o SoundStream.o
g++: error: ../lib/soil/lib/libSOIL.a: No such file or directory
g++: error: ../lib/ftgl/src/libftgl_static.a: No such file or directory
g++: error: ../lib/freetype/src/libfreetype.a: No such file or directory
g++: error: ../lib/LuaJIT/src/libluajit.a: No such file or directory
g++: error: ../lib/physfs/libphysfs.a: No such file or directory
g++: error: ../lib/openal-soft/build/libOpenAL32.dll.a:
No such file or directory
cd lib/soil/src
wget https://raw.githubusercontent.com/childhood/libSOIL/master/Makefile
vim Makefile
# Add -DWIN32 in CFLAGS
# Remove shared library for MacOS
lib/LuaJIT/src/lj_vm.s 是 i386 我用的是 mingw64
pacman -S mingw-w64-x86_64-luajit-git
$ find /mingw64 | grep -i jit
/mingw64/lib/libluajit-5.1.a
pacman -Ss openal
pacman -S mingw-w64-x86_64-openal
/mingw64/lib/libopenal.a
pacman -S mingw-w64-x86_64-physfs
...
/mingw64/lib/libphysfs.a(physfs_archiver_iso9660.c.obj):(.text+0x1b): undefined reference to `__ms_vsnprintf'
/mingw64/lib/libphysfs.a(physfs_archiver_iso9660.c.obj):(.text+0x626): undefined reference to `__imp__mktime64'
/mingw64/lib/libphysfs.a(physfs_archiver_iso9660.c.obj):(.text+0xb1a): undefined reference to `_assert'
/mingw64/lib/libphysfs.a(physfs_archiver_vdf.c.obj):(.text+0x235): undefined reference to `__imp__mktime64'
/mingw64/lib/libphysfs.a(physfs_archiver_vdf.c.obj):(.text+0x379): undefined reference to `_assert'
作者: wangm4a1 (水兵)   2019-06-05 01:10:00
好奇过有没用GO写游戏的 但好像不适合
楼主: enthos (影斯作业系统)   2019-06-05 02:42:00

Links booklink

Contact Us: admin [ a t ] ucptt.com