added silent letters

master
Neuromancer 2012-12-27 18:31:05 -06:00
parent d7a24c2f0b
commit e5e518e454
28 changed files with 59 additions and 45 deletions

View File

@ -32,48 +32,48 @@
phonics = {
--handler = {},
a={name="a", length=1.2, gain=1},
a_={name="a_", length=2.0, gain=1},
ar={name="ar", length=.93, gain=1},
au={name="au", length=2.0, gain=1},
b={name="b", length=.71, gain=1},
c={name="c", length=.3, gain=1},
ch={name="ch", length=.17, gain=1},
d={name="d", length=.77, gain=1},
e={name="e", length=1.38, gain=1},
e_={name="e_", length=2.0, gain=1},
er={name="er", length=1.53, gain=1},
f={name="f", length=2.0, gain=1},
g={name="g", length=.14, gain=1},
h={name="h", length=.48, gain=1},
i={name="i", length=2.0, gain=1},
i_={name="i_", length=1.2, gain=1},
ing={name="ing", length=.67, gain=1},
j={name="j", length=.20, gain=1},
k={name="k", length=.3, gain=1},
l={name="l", length=2.0, gain=1},
m={name="m", length=2.0, gain=1},
n={name="n", length=2.0, gain=1},
o={name="o", length=2.0, gain=1},
o_={name="o_", length=2.0, gain=1},
oo_={name="oo_", length=1.9, gain=1},
oo={name="oo", length=2.0, gain=1},
ou={name="ou", length=2.27, gain=1},
p={name="p", length=.13, gain=1},
q={name="q", length=.15, gain=1},
r={name="r", length=2.0, gain=1},
s={name="s", length=2.0, gain=1},
sh={name="sh", length=2.0, gain=1},
t={name="t", length=.3, gain=1},
th={name="th", length=.18, gain=1},
u={name="u", length=2.0, gain=1},
u_={name="u_", length=.92, gain=1},
v={name="v", length=2.0, gain=1},
w={name="w", length=.45, gain=1},
wh={name="wh", length=.23, gain=1},
x={name="x", length=.6, gain=1},
y={name="y", length=.84, gain=1},
z={name="z", length=.65, gain=1}
a={name="a", length=1.2, gain=1, is_letter=1},
a_={name="a_", length=2.0, gain=1, is_letter=0},
ar={name="ar", length=.93, gain=1, is_letter=0},
au={name="au", length=2.0, gain=1, is_letter=0},
b={name="b", length=.71, gain=1, is_letter=1},
c={name="c", length=.3, gain=1, is_letter=1},
ch={name="ch", length=.17, gain=1, is_letter=0},
d={name="d", length=.77, gain=1, is_letter=1},
e={name="e", length=1.38, gain=1, is_letter=1},
e_={name="e_", length=2.0, gain=1, is_letter=0},
er={name="er", length=1.53, gain=1, is_letter=0},
f={name="f", length=2.0, gain=1, is_letter=1},
g={name="g", length=.14, gain=1, is_letter=1},
h={name="h", length=.48, gain=1, is_letter=1},
i={name="i", length=2.0, gain=1, is_letter=1},
i_={name="i_", length=1.2, gain=1, is_letter=0},
ing={name="ing", length=.67, gain=1, is_letter=0},
j={name="j", length=.20, gain=1, is_letter=1},
k={name="k", length=.3, gain=1, is_letter=1},
l={name="l", length=2.0, gain=1, is_letter=1},
m={name="m", length=2.0, gain=1, is_letter=1},
n={name="n", length=2.0, gain=1, is_letter=1},
o={name="o", length=2.0, gain=1, is_letter=1},
o_={name="o_", length=2.0, gain=1, is_letter=0},
oo_={name="oo_", length=1.9, gain=1, is_letter=0},
oo={name="oo", length=2.0, gain=1, is_letter=0},
ou={name="ou", length=2.27, gain=1, is_letter=0},
p={name="p", length=.13, gain=1, is_letter=1},
q={name="q", length=.15, gain=1, is_letter=1},
r={name="r", length=2.0, gain=1, is_letter=1},
s={name="s", length=2.0, gain=1, is_letter=1},
sh={name="sh", length=2.0, gain=1, is_letter=0},
t={name="t", length=.3, gain=1, is_letter=1},
th={name="th", length=.18, gain=1, is_letter=0},
u={name="u", length=2.0, gain=1, is_letter=1},
u_={name="u_", length=.92, gain=1, is_letter=0},
v={name="v", length=2.0, gain=1, is_letter=1},
w={name="w", length=.45, gain=1, is_letter=1},
wh={name="wh", length=.23, gain=1, is_letter=0},
x={name="x", length=.6, gain=1, is_letter=1},
y={name="y", length=.84, gain=1, is_letter=1},
z={name="z", length=.65, gain=1, is_letter=1}
}
local words = {
@ -95,10 +95,24 @@ for key,value in pairs(phonics) do
is_ground_content = true,
groups = {cracky=3, choppy=3, not_in_creative_inventory=1},
sounds = default.node_sound_stone_defaults(),
})
})
if phonics[key].is_letter ==1 then
minetest.register_node("phonics:"..key.."_silent", {
description = "Silent "..key,
tiles = {key.."_silent.png"},
is_ground_content = true,
groups = {cracky=3, choppy=3},
sounds = default.node_sound_stone_defaults(),
})
end
end
-- minetest.register_node("phonics:e_silent", {
-- description = "Silent e",
-- tiles = {"e_silent.png"},
-- is_ground_content = true,
-- groups = {cracky=3, choppy=3},
-- sounds = default.node_sound_stone_defaults(),
-- })
--current_word =
minetest.register_node("phonics:SayWord", {

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

BIN
phonics/textures/gray.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B