• R/O
  • SSH

silny-kombat: レポジトリ概要

Mercurial repo for silny-kombat project


最近のコミット RSS

Rev. 日時 作者 メッセージ
11994e53e0fc 2023-01-26 05:57:58 Piotr Kozka tip Merged feature_hp_meter
e70499ca4828 2023-01-26 05:52:12 Piotr Kozka feature_hp_meter Implemented HealthBar struct. For now extracting sprite i...
130884356625 2023-01-26 05:08:57 SecT Refactoring - added getStateAsInt32
b0cf8097afef 2023-01-26 04:32:06 SecT Merge tmp_hp_meter_merge
d9d03c4829e1 2023-01-26 04:30:53 SecT tmp_hp_meter_merge Merged feature hp meter
00d776c71e0a 2023-01-26 04:23:28 SecT Check if attacking
4feeb30ebbef 2023-01-26 04:10:11 Piotr Kozka feature_hp_meter Added hp to the Character class
0ae49b6099db 2023-01-26 03:31:20 SecT Check collision for punching
7f2576f49091 2023-01-26 03:22:16 SecT Refactoring - removed SignalForSM
123dd2680578 2023-01-20 05:55:26 SecT Merged punching

最近変更されたタグ

名前 Rev. 日時 作者
tip 11994e53e0fc 2023-01-26 05:57:58 Piotr Kozka

ブランチ

名前 Rev. 日時 作者 メッセージ
compilation_warning_fixes 707f636fe792 2021-09-08 05:17:59 Piotr Kozka Fixed compilation warnings ...
debug 2ace60778d79 2022-02-24 03:07:29 Piotr Kozka debug stuff
default 11994e53e0fc 2023-01-26 05:57:58 Piotr Kozka Merged feature_hp_meter
feature_hp_meter e70499ca4828 2023-01-26 05:52:12 Piotr Kozka Implemented HealthBar struc...
feature_hud 56bb897b2f5a 2023-01-20 05:39:36 Piotr Kozka Added health bars
feature_level_background 789144919049 2022-12-15 05:27:39 Piotr Kozka Added stage background. Mov...
feature_state_machine_improvements 5b4b8b21c184 2022-03-10 03:21:30 Piotr Kozka restored the main loop
frameImplementation b2f5ba8f93a5 2021-11-11 04:25:31 SecT Timer based on iteration co...
integration 30ed48aeff1c 2021-09-08 03:57:20 Piotr Kozka Bugfix related to trigger m...
merging_state_machine 14e1a65a5beb 2022-09-22 02:47:29 SecT Merge
punching be0837ba27d0 2023-01-20 05:24:36 SecT Added state - punching
tmp_hp_meter_merge d9d03c4829e1 2023-01-26 04:30:53 SecT Merged feature hp meter
warning_fixes_22092022 7c678169802f 2022-10-07 03:34:25 Piotr Kozka Fixed window events

readme.txt

How to set up project - ubuntu
[TODO - the below manual for ubuntu may be not accurate, verify]

Install Rust on your PC

sudo apt-get install libsfml-dev libcsfml-dev

// - note - the below may be not needed on ubuntu
Copy SFML and CSFML from here
https://github.com/jeremyletang/rust-sfml/wiki/
to the proj dir

Copy the unzipped bindings (folder rust-sfml-master) to the main project directory (the directory that contains Cargo.toml)
Then run the following commands:
cd silny-kombat
mkdir csfml
cp -r ./rust-sfml-master/ffi/* ./csfml/
mkdir sfml
cp -r ./rust-sfml-master/src/* ./sfml/
/////

Clone the silny-kombat repo
hg clone ssh://sect@hg.osdn.net//hgroot/silny-kombat/silny-kombat

Run:
cargo build

Copy the assets and place them in the main project directory  [TODO - list the required assets together with urls]
http://www.mortalkombatwarehouse.com/mk1
You can use the following script:
sh ./downloadAssets.sh

cargo run

#####################

How to set up project - windows

0. Install Rust on your PC

1. Install SFML and CSFML on your PC as described here:
https://github.com/jeremyletang/rust-sfml/wiki/

2. Clone the silny-kombat repo
hg clone ssh://sect@hg.osdn.net//hgroot/silny-kombat/silny-kombat

3. Download and unpack the sfml bindings for Rust from here:
https://github.com/jeremyletang/rust-sfml

4. Copy the unzipped bindings (folder rust-sfml-master) to the main project directory (the directory that contains Cargo.toml)
Then run the following commands:
cd silny-kombat
mkdir csfml
cp -r ./rust-sfml-master/ffi/* ./csfml/
mkdir sfml
cp -r ./rust-sfml-master/src/* ./sfml/

Then you can delete the rust-sfml-master folder.

5. Run:
cargo build

6. Copy the binaries (dll files on windows) to the project folder, as described here:
https://github.com/jeremyletang/rust-sfml/wiki/

On windows it's done by copying
CSFML\bin\*.dll
into silny-kombat directory

7. Copy the assets and place them in the main project directory  [TODO]
http://www.mortalkombatwarehouse.com/mk1


8. Run
Cargo run


/////////////////////////Alternative manual for windows////////////////////

Copied from https://github.com/jeremyletang/rust-sfml/wiki/Windows


For MSVC Toolchains

    Download the archived precompiled Visual C++ SFML and CSFML libraries for SFML. Extract both zip files to a preferred location for libraries. i.e. D:\libs\x64\
	https://www.sfml-dev.org/download/sfml/2.5.1/
	https://www.sfml-dev.org/download/csfml/
	////NOTE - LLVM wasn't necessary in my case /////////
    Download LLVM  (https://github.com/llvm/llvm-project/releases/latest)                                            
        Set for path for user or users during install.      
	/////////////////////////////////////
    Set environment variables:
        SFML_INCLUDE_DIR=D:\libs\x64\SFML-2.5.1\include
        SFML_LIBS_DIR=D:\libs\x64\SFML-2.5.1\lib
    From within the extracted archives:
        Copy the *.lib files from CSFML\lib\msvc and SFML\lib to C:\Users\[USERNAME]\.rustup\toolchains\[RUST_TOOLCHAIN]\lib\rustlib\[MSVC_TOOLCHAIN]\lib
        If you change Rust toolchains, make sure to copy the *.lib files to the new toolchain's directory as well.
    Build your project
        Copy the *.dll files from CSFML\bin to the working directory of your compiled executable (usually target\debug or target\release)
        Note: You only need to copy the *.dll files that correspond to the rust-sfml modules you are using. e.g. copy csfml-graphics-2.dll if your code contains using sfml::graphics.

    Note: If you cloned this repo to test the examples you need to copy the *.dll files from SFML\bin to target\debug\examples or target\release\examples. You only need to copy the *.dll files that correspond to the rust-sfml modules you are using. e.g. copy sfml-graphics-2.dll if your code contains use sfml::graphics.
旧リポジトリブラウザで表示