Skip to content

New Zff, the lightest adventure game, about 99kB

License

Notifications You must be signed in to change notification settings

ohzff/Zff-Reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zff-Reload

This is a reloaded version of Zff.

GitHub repo size GitHub tag (latest SemVer) GitHub top language

Notice: Developing now!

Screen.Recording.2022-12-14.at.9.13.36.PM.mov

Getting started

Windows

Get the Zff-Windows-*.zip from releases page.

Ubuntu

Get the Zff-Ubuntu.deb from releases page.

sudo dpkg -i ./Zff-Ubuntu.deb

Architecture: all

ArchLinux

Download from AUR.

You can use package manager such as yay, yaourt to download AUR packages.

macOS & Linux

Download linux.sh from folder zff-reload/.

curl https://raw.githubusercontent.com/ohzff/install/main/zff-reload/linux.sh > linux.sh

Change file modes to execute bits.

chmod +x ./linux.sh

Then, run it.

./linux.sh

Get more information from here.

Usage

Notice for Windows Users: You may need to make the terminal smmaller than 80x80.

First, make sure usr/ folder is there with your executable file.

Second, run the executable file.

Double click it in Windows

Run ./Zff or zff in terminal in macOS and Linux

Use Left Right arrow to move the people and Up arrow or SPACE bar to jump up to reach the exit place #.

Advanced usages

Args

  • Get version info: zff version or ./Zff version

In Level Selection

  • Press l to load custom world.

In game

  • Move forcely: type /pos X Y to move to (X, Y)

Development

App developing

If you have any idea, please create a pull requst to tell us.

Windows compile flags

g++ ./main.cpp -o zff -std=c++11 -static-libgcc -static-libstdc++ -L.

Mac&Linux compile flags

g++ ./main.cpp -o zff -std=c++11 -pthread

World data developing

A world includes main, world, trigger three files in an ID folder.

usr
└── world
    ├── 1                   # ID folder
    │   ├── main            # main info
    │   ├── trigger         # Trigger settings
    │   └── world           # Full world information
    └── 2
        ├── main
        ├── trigger
        └── world

main file

6 integers: n, m, Sx, Sy, Ex, Ey

  • n for the number of rows.
  • m for the number of columns.
  • (Sx, Sy) for the starting position.
  • (Ex, Ey) for the ending position.

world file

A n*m matrix, saved the world information.

Notice: Please fill the n*m frame with SPACE or symbol @!

trigger file

One integers n in the first line, refering to the number of triggers.

The following n rows with 6 integers Tx, Ty, Cx, Cy, To, d in each row.

  • (Tx, Ty) for the position of trigger.
  • (Cx, Cy) for the position that trigger controled.
  • To for the ID that trigger changes to.
  • d for the delay time of disappear (ms).

FAQ

usr/ folder cannot found

  1. Go here to get an zip file data.zip.
  2. Unzip it and put usr/ with your executable file.

License

This project is under MIT-License.

MIT License

Copyright (c) 2022 LanGong Zff

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

More...

...

About

New Zff, the lightest adventure game, about 99kB

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages