diff --git a/.gitignore b/.gitignore index f84c7b2..48dad97 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ build .idea cmake-build-* +build* node_modules +sixsixsix.tap diff --git a/CMakeLists.txt b/CMakeLists.txt index 9bb563c..e4a7267 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ set(DATA_LOC 65000) project(${TARGET}) -set(CMAKE_C_FLAGS "-mz80 --no-std-crt0 --vc --code-loc ${MAIN_CODE_LOC} --data-loc ${DATA_LOC} --std-sdcc99 --max-allocs-per-node 1000000") +set(CMAKE_C_FLAGS "-mz80 --no-std-crt0 --vc --code-loc ${MAIN_CODE_LOC} --data-loc ${DATA_LOC} --std-sdcc99 --max-allocs-per-node 10000") file(GLOB_RECURSE SOURCES RELATIVE ${CMAKE_SOURCE_DIR} "src/*.c") add_executable( ${TARGET} ${SOURCES}) diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..e00eeb6 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,13 @@ +Copyright (c) 2020, Vadim Cherenev + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index 44e2574..4ef542a 100644 --- a/README.md +++ b/README.md @@ -1 +1,72 @@ -Don't look, don't look! +# 6.6.6.6 + +This is the second attempt to make a game for ZX Spectrum. + +Long-long ago, between the world of darkness and the world of living people, +it was built - a line of defense, a trap for dark forces. The Net. +But from the blows of the creatures of darkness, cracks are already scattering across it. +If the defenses collapse, the world will end. The only hope is to repair the cliffs +and restore the fallen areas before the entire Network collapses. + +But who can handle this task? + +You? + +The hero of the game is a rookie in the army of Light, protecting the sparkling The Net +from the intrigues of the Dark Forces, a fighter against darkness and chaos, +a technical support employee who first went to work. evil, restart the routers, +and turn off and then turn on the frozen equipment. Each task consists of two stages: +a bike ride, where you need to overcome a winding path in the allotted time, +and the answer to a question, with a choice of one of three options. +Five attempts, and the attempt is wasted both in the wrong answer to the question +and in the fall from the bike. + +Let the Evil tremble! Our hero is already close! + +P.S. Beware of puddles on the road. " + +![Title image](assets/src/intro.jpg) +![Screenshot](screenshot.png) + +## Prerequisities + +1. [nodejs and npm](https://nodejs.org/en/download/) because assets preparing scripts written in JavaScript. +2. bin2c +3. [zmakebas](https://github.com/z00m128/zmakebas) +4. cmake +5. [sdcc](http://sdcc.sourceforge.net/) +6. [Fuse emulator](http://fuse-emulator.sourceforge.net/) + +## Building + +### Prepare assets + +In a project root directory: +``` +./assets.h +``` + +### Compile binary + +In a project root directory: +``` +mkdir build +cd build +cmake .. +make +``` + +### Compose tape file + +In a project root directory: +``` +./maketape.sh build +``` +This will create tape file sixsixsixsix.tap in a project root directory. + +## Playing + +In a project root directory: +``` +./emulate.sh +``` \ No newline at end of file diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..d2b294a Binary files /dev/null and b/screenshot.png differ