Skip to content

Commit

Permalink
Merge branch 'migration' of ssh://service-gitea/geefr/olcjam2020
Browse files Browse the repository at this point in the history
  • Loading branch information
geefr committed Sep 2, 2020
2 parents dae7719 + 3b95286 commit 0f4ba0a
Show file tree
Hide file tree
Showing 49 changed files with 34,263 additions and 0 deletions.
1,740 changes: 1,740 additions & 0 deletions Cargo.lock

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[package]
name = "goldberg"
version = "0.1.0"
authors = ["Gareth Francis <gfrancis.dev@gmail.com>"]
edition = "2018"

[profile.release]
lto = true

# TODO: wasm no longer supported, had issues with graphics frameworks
#[lib]
#crate-type = ["cdylib"]

[[bin]]
name = "main"
path = "src/bin/main.rs"
include = ["assets"]

[[bin]]
name = "define-primitive"
path = "src/bin/define-primitive.rs"

[dependencies]
#wasm-bindgen = "0.2.67"
#log = "0.4.11"
#console_error_panic_hook = "0.1.6"
#console_log = "0.2.0"
nphysics3d = { version = "0.17.0", features = ["dim3", "use-wasm-bindgen"] }
ncollide3d = { version = "0.24.0" }
nalgebra = { version = "0.22.0" }
kiss3d = { path = "../../kiss3d" }
serde = "1.0.115"
serde_derive = "1.0.115"
serde_json = "1.0.57"
text_io = "0.1.8"

# Audio support - cpal or similar seems useful, but lots of dev to get the boilerplate in..
# Requires alsa dev libs on Linux (libasound2-dev)
# cpal = { version = "0.12.1"} #, features = ["wasm-bindgen"] }
51 changes: 51 additions & 0 deletions assets/entities/cannon-2m.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "Cannon-2m",
"entity_type": "Cannon",
"primitive": {
"name": "Cannon-2m",
"path_obj": "models/cannon/cannon.obj",
"path_mtl": "models/cannon/",
"scale": [
1.0,
1.0,
1.0
],
"density": 150000.0,
"restitution": 0.0,
"friction": 0.9,
"collider_def": [
{
"collider_type": "Cuboid",
"origin": [
0.0,
1.5,
3.5
],
"dimensions": [
1.0,
1.5,
3.5
]
}
]
},
"active_default": false,
"cannon_spawn_point": [
0.0,
2.0,
7.0
],
"cannon_spawn_force": [
0.0,
0.0,
1000.0
],
"cannon_projectile_name": "cannon-ball-1m",
"cannon_projectile_scale": [
1.0,
1.0,
1.0
],
"cannon_ammo": 1,
"cannon_fire_delay": 0.0
}
Loading

0 comments on commit 0f4ba0a

Please sign in to comment.