diff --git a/lib/bowling_lane.mtl b/lib/bowling_lane.mtl new file mode 100644 index 0000000..4876096 --- /dev/null +++ b/lib/bowling_lane.mtl @@ -0,0 +1,13 @@ +# Blender3D MTL File: bowling_lane.blend +# Material Count: 1 +newmtl Material_woodfloor.jpg +Ns 96.078431 +Ka 0.000000 0.000000 0.000000 +Kd 0.640000 0.640000 0.640000 +Ks 0.500000 0.500000 0.500000 +Ni 1.000000 +d 1.000000 +illum 2 +map_Kd woodfloor.jpg + + diff --git a/lib/bowling_lane.obj b/lib/bowling_lane.obj new file mode 100644 index 0000000..b38adeb --- /dev/null +++ b/lib/bowling_lane.obj @@ -0,0 +1,33 @@ +# Blender3D v249 OBJ File: bowling_lane.blend +# www.blender3d.org +mtllib bowling_lane.mtl +v 2.500000 19.999998 -0.100000 +v 2.500000 -20.000000 -0.100000 +v -2.500000 -19.999996 -0.100000 +v -2.499999 20.000008 -0.100000 +v 2.500001 19.999989 0.100000 +v 2.499998 -20.000011 0.100000 +v -2.500001 -19.999992 0.100000 +v -2.500000 20.000000 0.100000 +vt 0.000000 0.000000 +vt 1.000000 0.000000 +vt 1.000000 1.000000 +vt 0.000000 1.000000 +vt -0.500000 -4.500000 +vt 1.500000 -4.500000 +vt 1.500000 5.500000 +vt -0.500000 5.500000 +vn 0.000000 0.000000 -1.000000 +vn 0.000000 0.000000 1.000000 +vn 1.000000 -0.000000 0.000001 +vn -0.000002 -1.000000 -0.000019 +vn -1.000000 0.000000 -0.000004 +vn 0.000002 1.000000 0.000043 +usemtl Material_woodfloor.jpg +s off +f 1/1/1 2/2/1 3/3/1 4/4/1 +f 5/5/2 8/6/2 7/7/2 6/8/2 +f 1/1/3 5/2/3 6/3/3 2/4/3 +f 2/1/4 6/2/4 7/3/4 3/4/4 +f 3/1/5 7/2/5 8/3/5 4/4/5 +f 5/1/6 1/2/6 4/3/6 8/4/6 diff --git a/lib/bowling_lane.phy b/lib/bowling_lane.phy new file mode 100644 index 0000000..5c84ebf --- /dev/null +++ b/lib/bowling_lane.phy @@ -0,0 +1 @@ +cube "Cube" 5.000000 40.000000 0.200000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000 diff --git a/lib/demo/bowling.lua b/lib/demo/bowling.lua new file mode 100644 index 0000000..5327b88 --- /dev/null +++ b/lib/demo/bowling.lua @@ -0,0 +1,15 @@ + +function setupPins() + for i = 1, 10 do + if (pins[i] ~= nil) then + pins[i]:destroy() + end + end +end + +function init_event() + pins = {} + lane = ag.loadModelStatic("bowling_lane") + setupPins() + ag.setCamera(0, -20, 5, 0, 20, 0) +end diff --git a/lib/woodfloor.jpg b/lib/woodfloor.jpg new file mode 100644 index 0000000..07b400c Binary files /dev/null and b/lib/woodfloor.jpg differ diff --git a/libsrc/bowling_lane.blend b/libsrc/bowling_lane.blend new file mode 100644 index 0000000..9f296ef Binary files /dev/null and b/libsrc/bowling_lane.blend differ