Giter VIP home page Giter VIP logo

arena_keeper_quick's Introduction

dependency status

arena_keeper_quick

A continuation of arena_keeper but using quicksilver instead of Yew.

Arena keeper is a game where you will take care of people from various species and let them fight for money. This will allow you to get more people and buy more stuff for them.

An online build is available here though this may not always be up to date. Alternatively, you can build the game yourself using the steps below.

Setup

To set the project up all you need is rustup and cargo, along with any dependencies from quicksilver.

In order to make WASM builds cargo-web is highly recomended.

Run

After you ran the above commands, simply run cargo run to run the project in debug mode. If you installed cargo-web You can also use cargo web start to start a http server that will host a wasm build of the project. This allows you play the game in your browser.

You can also use cargo run --release and cargo web start --release to build the game in release mode.

Develop mode

The game also features a "Develop" mode. You can compile it into develop mode using cargo run --bin develop.

develop builds allow you to enter dev mode by pressing ctl + p. This will pause the game and give you extra ways to interact with the window.

By clicking on the screen its possible to draw a square and get its exact coordinates. This is usefull when creating parts of a GUI as it allows you to quickly draw where the elements should go and get the coordinates that corresponds to the given screen location.

Assuming you have access to the stdin of the program (Ran it from the terminal for example) you are also able to give it extra commands. Right now only read is supported.

read takes an index and prints out the position and size of the drawn square corresponding to index.

Note

Develop mode makes use of a seperate thread and thus does not work when compiling to WASM.

Modules

Most content will be added through dynamically loaded json files, which are packed inside .zip files that are placed inside the static folder.

There is also a json file called mods.json. This one tells the game which zip files to load. The zip files can contain a tiles folder and/or a species folder. The tiles folder is used to describe tiles and the species folder is used to describe species.

There are no further requirments in the layout of the .zip contents. There are however requirements on the layout of the json files. The layout for both of them can be viewed in structs.rs as SpeciesConf for species and Tile for tiles.

Credit

Sprites made by: 0x72 and disfey

arena_keeper_quick's People

Contributors

dependabot-preview[bot] avatar lenscas avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cruelu

arena_keeper_quick's Issues

way to select tools

There should be some menu that can be used to easily select between the various building tools that this game will have.

Dependabot couldn't find a package.json for this project

Dependabot couldn't find a package.json for this project.

Dependabot requires a package.json to evaluate your project's current JavaScript dependencies. It had expected to find one at the path: /package.json.

If this isn't a JavaScript project, or if it is a library, you may wish to disable updates for it from within Dependabot.

shop

Right now the shop is missing the following things

  • Way to get to the shop
  • Button to get out of the shop
  • Picture of character near their names
  • The cost of every character
  • Your own money
  • An actual buy button

better terrain gen

Right now the terrain works but is boring. Also, it is not always useable.

Things that may help:

  • Terrain features
  • More tile types

more?

Immi replacement

quicksilvers Immi api is deprecated and Immi doesn't offer much anyway, as such it should be removed by something else.

Dependabot couldn't find a package.json for this project

Dependabot couldn't find a package.json for this project.

Dependabot requires a package.json to evaluate your project's current JavaScript dependencies. It had expected to find one at the path: /package.json.

If this isn't a JavaScript project, or if it is a library, you may wish to disable updates for it from within Dependabot.

asset generation sound

Right now the script that generates the loader for every asset inside the assets folder has no support for sounds.

remove/cluster checks for wasm compilation

Currently there are checks during compile time that check if it is being compiled for wasm. This is mainly to switch par_iter to a normal iter to prevent the wasm build from crashing.

However, it would be better if this didn't lead to 2 functions doing the same thing every time a function uses rayoun

load screen

Right now, the screen is red while assets are being loaded. Not exactly the most exiting

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.