Liberation Circuit

Trapped in a hostile computer system, you must make a way out - RTS/coding game

  • 所有者: linleyh/liberation-circuit
  • 平台:
  • 許可證: GNU General Public License v3.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Liberation Circuit

This is the release version of Liberation Circuit, an RTS/programming game.

To play the prebuilt binaries on Windows, download the latest release and run LibCirc.exe.

Vanilla has set up a Discord server to discuss strategy and things.

Screenshots

a screenshot
another screenshot

Compiling

It should compile on any OS supported by Allegro 5 - to build, compile the c files
in the source directory and link with Allegro 5. More detailed instructions are
below. More detail about the source file structure is at the start of m_main.c.

The executable should go in the "bin" subdirectory (the same directory as the "init.txt" file).
The game requires write access to this directory to save mission progress. If this isn't okay, you can
specify a path in the fopen calls at about lines 2808 and 2860 of h_story.c.

Don't try to compile the .c files in the /proc or /story subdirectories! They are code used by the game itself.

  • Manual.html has extensive detail about the game, including documentation for the in-game API.
  • Edit init.txt to set screen resolution and other options (fullscreen, sound volume, key rebinding, colourblind mode etc).

To build using do/redo (using the .do scripts by Nils Dagsson Moskopp):

To build Liberation Circuit on any Unix-like OS like GNU/Linux,
execute the “do” script. Note that “do” always compiles all source
files; if you want to rebuild targets only when relevant source files
have changed, you should use “redo” instead. A version of “redo” can
be obtained from http://news.dieweltistgarnichtso.net/bin/redo-sh.html
(written in Bourne shell) or http://jdebp.eu./Softwares/redo/ (written
in C++).

Compiling on Linux

Packages needed for Liberation Circuit on Debian GNU/Linux or Ubuntu:

  • liballegro-acodec5-dev
  • liballegro-audio5-dev
  • liballegro-dialog5-dev
  • liballegro-image5-dev
  • liballegro5-dev

To build using cmake (using the cmake scripts by Kyle Findlay; The
following instructions are from u/JCanseco on reddit)

I did compile it with ccmake ncurses frontend on Antergos (based on Arch Linux).

mkdir build, cd build, cmake ..

Adding this line to CMAKE_EXE_LINKER_FLAGS was enough:

-lallegro_image -lallegro_primitives -lallegro_color -lallegro_acodec -lallegro_audio -lallegro_dialog -lallegro_font -lallegro_main -lallegro -lm

make -j4 and it compiled fine with Allegro 5.2.2. Extracted zip data on bin folder and it did run fine.

Compiling on macOS

To build on macOS (Sierra (10.12) with latest Homebrew and Xcode)

git clone https://github.com/linleyh/liberation-circuit.git
cd liberation-circuit
brew install allegro
./do
cd bin
libcirc

If you are using a Retina screen, you may want to set the double_fonts option to make the text larger (edit init.txt to do this).

Thanks to:

  • Nils Dagsson Moskopp for very useful feedback on the alpha and beta versions.
  • zugz (from the tigsource forum) for very useful feedback on the beta.
  • Serge Zaitsev's cucu for a very clear explanation of how to write a simple C compiler.
  • Batuhan Bozkurt's otomata for the basis of the cellular automata-based procedural music generation.

概覽

名稱與所有者linleyh/liberation-circuit
主編程語言C
編程語言C (語言數: 6)
平台
許可證GNU General Public License v3.0
發布數8
最新版本名稱v1.3 (發布於 )
第一版名稱v0.5-alpha (發布於 )
創建於2016-11-06 10:55:28
推送於2022-01-02 11:45:05
最后一次提交2022-01-02 22:45:05
星數380
關注者數19
派生數40
提交數159
已啟用問題?
問題數30
打開的問題數19
拉請求數27
打開的拉請求數1
關閉的拉請求數1
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?
去到頂部