diff --git a/bundle/.gitignore b/bundle/.gitignore index 377cc42..594f6b6 100644 --- a/bundle/.gitignore +++ b/bundle/.gitignore @@ -1,2 +1,3 @@ */*.zip -*/release \ No newline at end of file +*/release +release \ No newline at end of file diff --git a/bundle/create-releases.sh b/bundle/create-releases.sh index de7808d..3837f1a 100755 --- a/bundle/create-releases.sh +++ b/bundle/create-releases.sh @@ -4,4 +4,15 @@ set -e # Build all platforms ./bundle/linux/create-release.sh -./bundle/windows/create-release.sh \ No newline at end of file +./bundle/windows/create-release.sh + +# Make a uni-bundle +echo "Creating a fat bundle for all platforms" +rm -rf ./bundle/release +rm -rf ./bundle/ludum-dare-48.zip +mkdir -p ./bundle/release +cp -r ./assets ./bundle/release +cp ./bundle/linux/release/ludum-dare-48 ./bundle/release/ludum-dare-48 +cp ./bundle/windows/release/ludum-dare-48.exe ./bundle/release/ludum-dare-48.exe +cd ./bundle/release +zip -r ../ludum-dare-48.zip ./ \ No newline at end of file diff --git a/bundle/linux/create-release.sh b/bundle/linux/create-release.sh index d3c2cbc..2e130e0 100755 --- a/bundle/linux/create-release.sh +++ b/bundle/linux/create-release.sh @@ -8,6 +8,7 @@ cross build --target x86_64-unknown-linux-gnu --release echo "Creating bundle output" rm -rf ./bundle/linux/release +rm -rf ./bundle/linux/release-x86_64-unknown-linux-gnu.zip mkdir -p ./bundle/linux/release echo "Copying binary" diff --git a/bundle/ludum-dare-48.zip b/bundle/ludum-dare-48.zip new file mode 100644 index 0000000..4b5b813 Binary files /dev/null and b/bundle/ludum-dare-48.zip differ diff --git a/bundle/windows/create-release.sh b/bundle/windows/create-release.sh index f7421f9..46a2412 100755 --- a/bundle/windows/create-release.sh +++ b/bundle/windows/create-release.sh @@ -7,6 +7,7 @@ cross build --target x86_64-pc-windows-gnu --release echo "Creating bundle output" rm -rf ./bundle/windows/release +rm -rf ./bundle/windows/release-x86_64-pc-windows-gnu.zip mkdir -p ./bundle/windows/release echo "Copying binary" diff --git a/src/lib/animation/wrapper.rs b/src/lib/animation/wrapper.rs index eb02da1..e5bfff1 100644 --- a/src/lib/animation/wrapper.rs +++ b/src/lib/animation/wrapper.rs @@ -67,9 +67,8 @@ impl FrameAnimationWrapper { width: self.size.x, height: self.size.y, }; - println!("{:?}", frame_box); + // Render - // handle.draw_texture(&mut self.sprite_sheet, 0, 0, Color::WHITE); handle.draw_texture_rec(&mut self.sprite_sheet, frame_box, position, Color::WHITE); } }