• R/O
  • SSH

silny-kombat: Resumen Repositorio

Mercurial repo for silny-kombat project


Recent Commits RSS

Rev. Tiempo Autor Mensaje
01499f7fa020 2024-04-18 04:31:44 SecT tip Updated the installation manual
73cd9eb3a180 2024-04-18 03:09:30 SecT Update install instruction
d1f83f1ca7b2 2024-04-18 03:03:22 SecT Menu - use Enter to proceed
455b3833da82 2024-04-18 02:38:37 Piotr Kozka feature_animations started implementing independent frame counters
1289372e3e02 2024-04-18 02:35:46 SecT Merge menu
fe23c1fdad42 2024-04-18 02:34:56 SecT menu Added temporary warning
afa2887713d4 2024-03-27 04:57:35 SecT menu Refactoring
d04b58f470a7 2024-03-27 04:22:14 SecT menu Refactoring
254aec8451c2 2024-03-27 04:11:26 SecT menu Move the second selection box
5f0010d4cb57 2024-03-27 04:07:05 SecT menu Display the second selection box

Recently edited Tags

Nombre Rev. Tiempo Autor
tip 01499f7fa020 2024-04-18 04:31:44 SecT

Branches

Nombre Rev. Tiempo Autor Mensaje
TestFix 6558b24efa44 2023-11-15 05:09:58 SecT Test fix - combat Kick. Use...
addingRaiden 74245ac17e9a 2023-11-18 18:22:41 SecT Implemented fight between t...
bugfix_punchStopsWorking 929a73ae3c29 2023-11-15 04:28:39 SecT Bugfix - Transition Crouchi...
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 01499f7fa020 2024-04-18 04:31:44 SecT Updated the installation ma...
extract_window 0e4ca723c4f9 2024-01-25 03:45:17 SecT Moved window to renderer
feature_animations 455b3833da82 2024-04-18 02:38:37 Piotr Kozka started implementing indepe...
feature_hp_meter da47c5a5add1 2023-02-03 05:30:50 Piotr Kozka Added red rectangle
feature_hp_meter_tmp_0 6cc5d8ec9f92 2023-02-03 05:25:57 SecT Merged default to feature_h...
feature_hp_meter_v2 bf9a466f9b56 2023-02-16 05:13:14 Piotr Kozka Left hp bar working
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_match_result_message 54a9fee8e499 2024-01-18 05:06:11 Piotr Kozka merged default
feature_non_animated_message d6314b653cc8 2023-11-29 05:23:52 Piotr Kozka Small message coordinates a...
feature_state_machine_improvements 5b4b8b21c184 2022-03-10 03:21:30 Piotr Kozka restored the main loop
feature_timer 35c01ea9dc01 2023-07-27 04:08:07 Piotr Kozka Fight message working
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...
menu fe23c1fdad42 2024-04-18 02:34:56 SecT Added temporary warning
merging_state_machine 14e1a65a5beb 2022-09-22 02:47:29 SecT Merge
preparingSteps 57091a0baeb4 2024-01-18 04:41:13 SecT Created basic controllers f...
punching be0837ba27d0 2023-01-20 05:24:36 SecT Added state - punching
ref_01 2875f41afa74 2023-03-06 14:37:08 SecT Added test for resolve_combat
refactor_controllers_v2 d1fa45aa8741 2024-02-14 05:09:21 SecT Added menuController
refactor_stages c3f643c7f813 2024-01-25 05:46:23 SecT fightStart() and fightEnd()
split_texture_array 9bf5e5d8f366 2023-02-16 03:51:13 SecT Refactoring - separate arra...
tmp ae3d1e7b4e35 2023-02-16 05:26:48 SecT merged hp_meter_v2
tmp_hp_meter_merge d9d03c4829e1 2023-01-26 04:30:53 SecT Merged feature hp meter
transitions_fix e8e6a1fda302 2023-07-06 03:35:19 SecT Refactoring - keyProcessing...
transitions_fix_2 9a51016b3691 2023-07-27 04:25:47 SecT IN PROGRESS - key_processin...
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 SFML on your PC

Install Rust on your PC

sudo apt-get install libsfml-dev libcsfml-dev

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

// - 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
NOTE - you need to use the version tagged as v0.16.0
https://github.com/jeremyletang/rust-sfml/tree/v0.16.0 !!!!!


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/
/////

NOTE - the sfml libs versions specified in toml may need to be changed to 0.6.0 from 0.5.0 
TODO - commit and push a fix!

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

Tests:
cargo test tests

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

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.
Show on old repository browser