Initialize

This commit is contained in:
2026-05-27 10:43:56 +04:00
commit 3e4534fe0b
71 changed files with 5817 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/target

5470
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

15
Cargo.toml Normal file
View File

@@ -0,0 +1,15 @@
[package]
name = "rusty_engine_tutorial"
version = "0.1.0"
edition = "2024"
[dependencies]
rusty_engine = "7.0.0"
[profile.dev]
opt-level = 3
debug = false
debug-assertions = false
overflow-checks = false
incremental = false
codegen-units = 16

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1 @@
The music files "Arcade Fantasy.ogg", "Classy 8-Bit.ogg", "Mysterious Magic.ogg", and "Whimsical Popsicle.ogg" have been licensed for non-attribution use in Rusty Engine itself by a commercial license agreement between the author of Rusty Engine and the creator of the music, Eric Matyas. However, any distribution of these music files in any project created using Rusty Engine must include attribution information as per the directions at https://soundimage.org/attribution-info/ or be independently licensed.

Binary file not shown.

View File

@@ -0,0 +1,4 @@
Assets adapted from Kenney [Audio Packs] under the [CC0 1.0 Universal] license.
[CC0 1.0 Universal]: https://creativecommons.org/publicdomain/zero/1.0/
[Audio Packs]: https://www.kenney.nl/assets?q=audio

BIN
assets/audio/sfx/click.ogg Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
assets/audio/sfx/tones1.ogg Normal file

Binary file not shown.

BIN
assets/audio/sfx/tones2.ogg Normal file

Binary file not shown.

BIN
assets/font/FiraMono-Medium.ttf Executable file

Binary file not shown.

BIN
assets/font/FiraSans-Bold.ttf Executable file

Binary file not shown.

View File

@@ -0,0 +1,4 @@
Assets adapted from Kenney [Racing Pack] under the [CC0 1.0 Universal] license.
[CC0 1.0 Universal]: https://creativecommons.org/publicdomain/zero/1.0/
[Racing Pack]: https://kenney.nl/assets/racing-pack

View File

@@ -0,0 +1,18 @@
Poly([
(28, 0),
(25.868626, 10.715136),
(19.79899, 19.79899),
(10.715136, 25.868626),
(0, 28),
(-10.715136, 25.868626),
(-19.79899, 19.79899),
(-25.868626, 10.715136),
(-28, 0),
(-25.868626, -10.715136),
(-19.79899, -19.79899),
(-10.715136, -25.868626),
(0, -28),
(10.715136, -25.868626),
(19.79899, -19.79899),
(25.868626, -10.715136),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 977 B

View File

@@ -0,0 +1,18 @@
Poly([
(28, 0),
(25.868626, 10.715136),
(19.79899, 19.79899),
(10.715136, 25.868626),
(0, 28),
(-10.715136, 25.868626),
(-19.79899, 19.79899),
(-25.868626, 10.715136),
(-28, 0),
(-25.868626, -10.715136),
(-19.79899, -19.79899),
(-10.715136, -25.868626),
(0, -28),
(10.715136, -25.868626),
(19.79899, -19.79899),
(25.868626, -10.715136),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 977 B

View File

@@ -0,0 +1,10 @@
Poly([
(-105, -29),
(-105, 28),
(-102, 31),
(102, 31),
(105, 28),
(105, -29),
(103, -31),
(-103, -31),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

View File

@@ -0,0 +1,10 @@
Poly([
(-105, -29),
(-105, 28),
(-102, 31),
(102, 31),
(105, 28),
(105, -29),
(103, -31),
(-103, -31),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

View File

@@ -0,0 +1,19 @@
Poly([
(-45, 33.5),
(38.5, 33.5),
(50, 29.5),
(57, 22.5),
(59, 18),
(59, -13),
(57, -23),
(51, -29),
(45, -32),
(37, -34),
(-43, -34),
(-50, -32),
(-57, -26.5),
(-60, -19),
(-60, 19),
(-58, 24.5),
(-52, 30.5),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -0,0 +1,19 @@
Poly([
(-45, 33.5),
(38.5, 33.5),
(50, 29.5),
(57, 22.5),
(59, 18),
(59, -13),
(57, -23),
(51, -29),
(45, -32),
(37, -34),
(-43, -34),
(-50, -32),
(-57, -26.5),
(-60, -19),
(-60, 19),
(-58, 24.5),
(-52, 30.5),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -0,0 +1,19 @@
Poly([
(-45, 33.5),
(38.5, 33.5),
(50, 29.5),
(57, 22.5),
(59, 18),
(59, -13),
(57, -23),
(51, -29),
(45, -32),
(37, -34),
(-43, -34),
(-50, -32),
(-57, -26.5),
(-60, -19),
(-60, 19),
(-58, 24.5),
(-52, 30.5),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -0,0 +1,19 @@
Poly([
(-45, 33.5),
(38.5, 33.5),
(50, 29.5),
(57, 22.5),
(59, 18),
(59, -13),
(57, -23),
(51, -29),
(45, -32),
(37, -34),
(-43, -34),
(-50, -32),
(-57, -26.5),
(-60, -19),
(-60, 19),
(-58, 24.5),
(-52, 30.5),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -0,0 +1,19 @@
Poly([
(-45, 33.5),
(38.5, 33.5),
(50, 29.5),
(57, 22.5),
(59, 18),
(59, -13),
(57, -23),
(51, -29),
(45, -32),
(37, -34),
(-43, -34),
(-50, -32),
(-57, -26.5),
(-60, -19),
(-60, 19),
(-58, 24.5),
(-52, 30.5),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -0,0 +1,10 @@
Poly([
(-22, 16),
(-16, 22),
(16, 22),
(22, 16),
(22, -16),
(16, -22),
(-16, -22),
(-22, -16),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -0,0 +1,4 @@
Assets adapted from Kenney [Rolling Ball Assets] pack under the [CC0 1.0 Universal] license.
[CC0 1.0 Universal]: https://creativecommons.org/publicdomain/zero/1.0/
[Rolling Ball Assets]: https://kenney.nl/assets/rolling-ball-assets

View File

@@ -0,0 +1,18 @@
Poly([
(16.5, 0),
(15.244012, 6.3142767),
(11.667262, 11.667262),
(6.3142767, 15.244012),
(0, 16.5),
(-6.3142767, 15.244012),
(-11.667262, 11.667262),
(-15.244012, 6.3142767),
(-16.5, 0),
(-15.244012, -6.3142767),
(-11.667262, -11.667262),
(-6.3142767, -15.244012),
(0, -16.5),
(6.3142767, -15.244012),
(11.667262, -11.667262),
(15.244012, -6.3142767),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 647 B

View File

@@ -0,0 +1,18 @@
Poly([
(16.5, 0),
(15.244012, 6.3142767),
(11.667262, 11.667262),
(6.3142767, 15.244012),
(0, 16.5),
(-6.3142767, 15.244012),
(-11.667262, 11.667262),
(-15.244012, 6.3142767),
(-16.5, 0),
(-15.244012, -6.3142767),
(-11.667262, -11.667262),
(-6.3142767, -15.244012),
(0, -16.5),
(6.3142767, -15.244012),
(11.667262, -11.667262),
(15.244012, -6.3142767),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 743 B

View File

@@ -0,0 +1,18 @@
Poly([
(16.5, 0),
(15.244012, 6.3142767),
(11.667262, 11.667262),
(6.3142767, 15.244012),
(0, 16.5),
(-6.3142767, 15.244012),
(-11.667262, 11.667262),
(-15.244012, 6.3142767),
(-16.5, 0),
(-15.244012, -6.3142767),
(-11.667262, -11.667262),
(-6.3142767, -15.244012),
(0, -16.5),
(6.3142767, -15.244012),
(11.667262, -11.667262),
(15.244012, -6.3142767),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 647 B

View File

@@ -0,0 +1,18 @@
Poly([
(16.5, 0),
(15.244012, 6.3142767),
(11.667262, 11.667262),
(6.3142767, 15.244012),
(0, 16.5),
(-6.3142767, 15.244012),
(-11.667262, 11.667262),
(-15.244012, 6.3142767),
(-16.5, 0),
(-15.244012, -6.3142767),
(-11.667262, -11.667262),
(-6.3142767, -15.244012),
(0, -16.5),
(6.3142767, -15.244012),
(11.667262, -11.667262),
(15.244012, -6.3142767),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 743 B

View File

@@ -0,0 +1,10 @@
Poly([
(-64, 59),
(-59, 64),
(-49, 64),
(64, -49),
(64, -59),
(59, -64),
(-59, -64),
(-64, -59),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 947 B

View File

@@ -0,0 +1,10 @@
Poly([
(-64, 11),
(-59, 16),
(59, 16),
(64, 11),
(64, -11),
(59, -16),
(-59, -16),
(-64, -11),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,10 @@
Poly([
(-16, 11),
(-11, 16),
(11, 16),
(16, 11),
(16, -11),
(11, -16),
(-11, -16),
(-16, -11),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

View File

@@ -0,0 +1,10 @@
Poly([
(-32, 27),
(-27, 32),
(27, 32),
(32, 27),
(32, -27),
(27, -32),
(-27, -32),
(-32, -27),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 B

View File

@@ -0,0 +1,18 @@
Poly([
(18.5, 0),
(17.09177, 7.0796432),
(13.081475, 13.081475),
(7.0796432, 17.09177),
(0, 18.5),
(-7.0796432, 17.09177),
(-13.081475, 13.081475),
(-17.09177, 7.0796432),
(-18.5, 0),
(-17.09177, -7.0796432),
(-13.081475, -13.081475),
(-7.0796432, -17.09177),
(0, -18.5),
(7.0796432, -17.09177),
(13.081475, -13.081475),
(17.09177, -7.0796432),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 909 B

View File

@@ -0,0 +1,18 @@
Poly([
(24.5, 0),
(22.635048, 9.375744),
(17.324116, 17.324116),
(9.375744, 22.635048),
(0, 24.5),
(-9.375744, 22.635048),
(-17.324116, 17.324116),
(-22.635048, 9.375744),
(-24.5, 0),
(-22.635048, -9.375744),
(-17.324116, -17.324116),
(-9.375744, -22.635048),
(0, -24.5),
(9.375744, -22.635048),
(17.324116, -17.324116),
(22.635048, -9.375744),
])

Binary file not shown.

After

Width:  |  Height:  |  Size: 970 B

9
src/main.rs Normal file
View File

@@ -0,0 +1,9 @@
use rusty_engine::prelude::*;
fn main() {
let mut game = Game::new();
// setup game here
game.run(());
}