Carts: Merge boost_cart as "carts" mod
authorAuke Kok <sofar@foo-projects.org>
Sat, 8 Oct 2016 21:14:10 +0000 (14:14 -0700)
committerparamat <mat.gregory@virginmedia.com>
Mon, 21 Nov 2016 03:15:04 +0000 (03:15 +0000)
commit1e691c442907d6bb5602bc34fdbb3c9a7436c223
tree5dfde52995a483a4df50e41b7915472d21c78844
parent75caa9167c00681e1adccc5ed58926b882823a68
Carts: Merge boost_cart as "carts" mod

This is all the working code from SmallJoker's boost_cart, poored into
a more suitable form for minetest_game.

- Mesecons and moreores stuff was removed entirely.
- Textures were all renamed and moved out of default/
- Updated license, readme.txt, attribution
- Changed code license to MIT, left artwork at CC0
- removed default:rail and made aliases for it
- :carts:rail is now carts:rail.
- localized entity def
- removed copper rail entirely
- startstop rail was removed, as well as detector rail
- remodeled to b3d using stujones11 excellent blend model, but sizes
  of cart adjusted to make pixel sizes consistent (0.625) everywhere.
- slightly more complex texture map for the cart (front/side visibly
  different)
- rail parameters are passed as a separate def table, and stored in
  a private list. This avoids having to call `get_meta` on every
  node. In return, we need the node name, though.
- adds metal sounds (based on default metal sound function) and
  cart moving sound.
- reduced cart speeds to max 7, 5 by pushing.
- Added on_step() rail event handler, gets called when a cart is on
  a rail.
- Added various rebased updates from upstream (thanks Krock)
- Included a fix that removes the 'reverse jiggle' when stopping.
- Included reworked textures by sofar.

The mod namespace is still public, but I'm NOT declaring it an API. I'd
rather see it localized instead, for now. Any public interface in this
code is *experimental* at best, and should be considered non-stable and
unsupported for now.
35 files changed:
game_api.txt
mods/carts/README.txt [new file with mode: 0644]
mods/carts/depends.txt [new file with mode: 0644]
mods/carts/functions.lua [new file with mode: 0644]
mods/carts/init.lua [new file with mode: 0644]
mods/carts/license.txt [new file with mode: 0644]
mods/carts/models/carts_cart.b3d [new file with mode: 0644]
mods/carts/models/carts_cart.blend [new file with mode: 0644]
mods/carts/rails.lua [new file with mode: 0644]
mods/carts/sounds/carts_cart_moving.1.ogg [new file with mode: 0644]
mods/carts/sounds/carts_cart_moving.2.ogg [new file with mode: 0644]
mods/carts/sounds/carts_cart_moving.3.ogg [new file with mode: 0644]
mods/carts/textures/carts_cart.png [new file with mode: 0644]
mods/carts/textures/carts_cart_front.png [new file with mode: 0644]
mods/carts/textures/carts_cart_side.png [new file with mode: 0644]
mods/carts/textures/carts_cart_top.png [new file with mode: 0644]
mods/carts/textures/carts_rail_crossing.png [new file with mode: 0644]
mods/carts/textures/carts_rail_crossing_brk.png [new file with mode: 0644]
mods/carts/textures/carts_rail_crossing_pwr.png [new file with mode: 0644]
mods/carts/textures/carts_rail_curved.png [new file with mode: 0644]
mods/carts/textures/carts_rail_curved_brk.png [new file with mode: 0644]
mods/carts/textures/carts_rail_curved_pwr.png [new file with mode: 0644]
mods/carts/textures/carts_rail_straight.png [new file with mode: 0644]
mods/carts/textures/carts_rail_straight_brk.png [new file with mode: 0644]
mods/carts/textures/carts_rail_straight_pwr.png [new file with mode: 0644]
mods/carts/textures/carts_rail_t_junction.png [new file with mode: 0644]
mods/carts/textures/carts_rail_t_junction_brk.png [new file with mode: 0644]
mods/carts/textures/carts_rail_t_junction_pwr.png [new file with mode: 0644]
mods/default/aliases.lua
mods/default/crafting.lua
mods/default/nodes.lua
mods/default/textures/default_rail.png [deleted file]
mods/default/textures/default_rail_crossing.png [deleted file]
mods/default/textures/default_rail_curved.png [deleted file]
mods/default/textures/default_rail_t_junction.png [deleted file]