diff --git a/assets/objects/box.mtl b/assets/objects/box.mtl new file mode 100644 index 0000000..d7ea3d6 --- /dev/null +++ b/assets/objects/box.mtl @@ -0,0 +1,2 @@ +# Made in Blockbench 3.7.4 +newmtl none \ No newline at end of file diff --git a/assets/objects/box.obj b/assets/objects/box.obj new file mode 100644 index 0000000..a7cf0e1 --- /dev/null +++ b/assets/objects/box.obj @@ -0,0 +1,101 @@ +# Made in Blockbench 3.7.4 +mtllib box.mtl +o cube +v 0.0625 0.0625 0.0625 +v 0.0625 0.0625 0 +v 0.0625 0 0.0625 +v 0.0625 0 0 +v 0 0.0625 0 +v 0 0.0625 0.0625 +v 0 0 0 +v 0 0 0.0625 +vt 0 1 +vt 0 0.9375 +vt 0.0625 1 +vt 0 0.9375 +vt 0.0625 0.9375 +vt 0.0625 1 +vt 0 1 +vt 0 0.9375 +vt 0.0625 1 +vt 0 0.9375 +vt 0.0625 0.9375 +vt 0.0625 1 +vt 0 1 +vt 0 0.9375 +vt 0.0625 1 +vt 0 0.9375 +vt 0.0625 0.9375 +vt 0.0625 1 +vt 0 1 +vt 0 0.9375 +vt 0.0625 1 +vt 0 0.9375 +vt 0.0625 0.9375 +vt 0.0625 1 +vt 0 1 +vt 0 0.9375 +vt 0.0625 1 +vt 0 0.9375 +vt 0.0625 0.9375 +vt 0.0625 1 +vt 0 1 +vt 0 0.9375 +vt 0.0625 1 +vt 0 0.9375 +vt 0.0625 0.9375 +vt 0.0625 1 +vn 1 0 0 +vn 1 0 0 +vn 1 0 0 +vn 1 0 0 +vn 1 0 0 +vn 1 0 0 +vn -1 0 0 +vn -1 0 0 +vn -1 0 0 +vn -1 0 0 +vn -1 0 0 +vn -1 0 0 +vn 0 1 0 +vn 0 1 0 +vn 0 1 0 +vn 0 1 0 +vn 0 1 0 +vn 0 1 0 +vn 0 -1 0 +vn 0 -1 0 +vn 0 -1 0 +vn 0 -1 0 +vn 0 -1 0 +vn 0 -1 0 +vn 0 0 1 +vn 0 0 1 +vn 0 0 1 +vn 0 0 1 +vn 0 0 1 +vn 0 0 1 +vn 0 0 -1 +vn 0 0 -1 +vn 0 0 -1 +vn 0 0 -1 +vn 0 0 -1 +vn 0 0 -1 +usemtl none +f 1/1/1 3/2/2 2/3/3 +f 3/4/4 4/5/5 2/6/6 +usemtl none +f 5/7/7 7/8/8 6/9/9 +f 7/10/10 8/11/11 6/12/12 +usemtl none +f 5/13/13 6/14/14 2/15/15 +f 6/16/16 1/17/17 2/18/18 +usemtl none +f 8/19/19 7/20/20 3/21/21 +f 7/22/22 4/23/23 3/24/24 +usemtl none +f 6/25/25 8/26/26 1/27/27 +f 8/28/28 3/29/29 1/30/30 +usemtl none +f 2/31/31 4/32/32 5/33/33 +f 4/34/34 7/35/35 5/36/36 diff --git a/assets/sound/music/0_credits.txt b/assets/sound/music/0_credits.txt new file mode 100644 index 0000000..86815c8 --- /dev/null +++ b/assets/sound/music/0_credits.txt @@ -0,0 +1,23 @@ +Music by Bert Cole +www.bitbybitsound.com + +- A Hearty Fellow +- A Reluctant Hero +- A Worthy Challenge +- Failure +- Hurry! +- In Dire Need +- Jump and Shoot Man +- Meeting The Call (Intro) +- Meeting The Call +- Old Friends +- Prove It +- Shopping For The Future +- Success +- The Graveyard +- The Laboratory +- The Operation +- The Threat +- Vast Surroundings +- We Have New Info +- You Beast! \ No newline at end of file diff --git a/assets/sound/music/A Hearty Fellow (LOOP).wav b/assets/sound/music/A Hearty Fellow (LOOP).wav new file mode 100644 index 0000000..8ba9a23 Binary files /dev/null and b/assets/sound/music/A Hearty Fellow (LOOP).wav differ diff --git a/assets/sound/music/A Reluctant Hero (LOOP).wav b/assets/sound/music/A Reluctant Hero (LOOP).wav new file mode 100644 index 0000000..0860f6e Binary files /dev/null and b/assets/sound/music/A Reluctant Hero (LOOP).wav differ diff --git a/assets/sound/music/A Worthy Challenge (LOOP).wav b/assets/sound/music/A Worthy Challenge (LOOP).wav new file mode 100644 index 0000000..efa30a2 Binary files /dev/null and b/assets/sound/music/A Worthy Challenge (LOOP).wav differ diff --git a/assets/sound/music/Failure.wav b/assets/sound/music/Failure.wav new file mode 100644 index 0000000..f5e6bdf Binary files /dev/null and b/assets/sound/music/Failure.wav differ diff --git a/assets/sound/music/Hurry! (LOOP).wav b/assets/sound/music/Hurry! (LOOP).wav new file mode 100644 index 0000000..521c4d3 Binary files /dev/null and b/assets/sound/music/Hurry! (LOOP).wav differ diff --git a/assets/sound/music/In Dire Need (LOOP).wav b/assets/sound/music/In Dire Need (LOOP).wav new file mode 100644 index 0000000..ba262e4 Binary files /dev/null and b/assets/sound/music/In Dire Need (LOOP).wav differ diff --git a/assets/sound/music/Jump and Shoot Man (LOOP).wav b/assets/sound/music/Jump and Shoot Man (LOOP).wav new file mode 100644 index 0000000..1d91bc3 Binary files /dev/null and b/assets/sound/music/Jump and Shoot Man (LOOP).wav differ diff --git a/assets/sound/music/Meeting The Call (INTRO).wav b/assets/sound/music/Meeting The Call (INTRO).wav new file mode 100644 index 0000000..1052097 Binary files /dev/null and b/assets/sound/music/Meeting The Call (INTRO).wav differ diff --git a/assets/sound/music/Meeting The Call (LOOP).wav b/assets/sound/music/Meeting The Call (LOOP).wav new file mode 100644 index 0000000..6ea8fcc Binary files /dev/null and b/assets/sound/music/Meeting The Call (LOOP).wav differ diff --git a/assets/sound/music/Old Friends (LOOP).wav b/assets/sound/music/Old Friends (LOOP).wav new file mode 100644 index 0000000..da3bcb3 Binary files /dev/null and b/assets/sound/music/Old Friends (LOOP).wav differ diff --git a/assets/sound/music/Prove It (LOOP).wav b/assets/sound/music/Prove It (LOOP).wav new file mode 100644 index 0000000..4c9d171 Binary files /dev/null and b/assets/sound/music/Prove It (LOOP).wav differ diff --git a/assets/sound/music/Shopping For The Future (LOOP).wav b/assets/sound/music/Shopping For The Future (LOOP).wav new file mode 100644 index 0000000..8ce66de Binary files /dev/null and b/assets/sound/music/Shopping For The Future (LOOP).wav differ diff --git a/assets/sound/music/Success.wav b/assets/sound/music/Success.wav new file mode 100644 index 0000000..9ec0a03 Binary files /dev/null and b/assets/sound/music/Success.wav differ diff --git a/assets/sound/music/The Graveyard (LOOP).wav b/assets/sound/music/The Graveyard (LOOP).wav new file mode 100644 index 0000000..e2f5fd9 Binary files /dev/null and b/assets/sound/music/The Graveyard (LOOP).wav differ diff --git a/assets/sound/music/The Laboratory (LOOP).wav b/assets/sound/music/The Laboratory (LOOP).wav new file mode 100644 index 0000000..295c000 Binary files /dev/null and b/assets/sound/music/The Laboratory (LOOP).wav differ diff --git a/assets/sound/music/The Operation (LOOP).wav b/assets/sound/music/The Operation (LOOP).wav new file mode 100644 index 0000000..6b21d0d Binary files /dev/null and b/assets/sound/music/The Operation (LOOP).wav differ diff --git a/assets/sound/music/The Threat (LOOP).wav b/assets/sound/music/The Threat (LOOP).wav new file mode 100644 index 0000000..f42e76c Binary files /dev/null and b/assets/sound/music/The Threat (LOOP).wav differ diff --git a/assets/sound/music/Vast Surroundings (LOOP).wav b/assets/sound/music/Vast Surroundings (LOOP).wav new file mode 100644 index 0000000..b10cf15 Binary files /dev/null and b/assets/sound/music/Vast Surroundings (LOOP).wav differ diff --git a/assets/sound/music/We Have New Info (LOOP).wav b/assets/sound/music/We Have New Info (LOOP).wav new file mode 100644 index 0000000..7950a80 Binary files /dev/null and b/assets/sound/music/We Have New Info (LOOP).wav differ diff --git a/assets/sound/music/You Beast! (LOOP).wav b/assets/sound/music/You Beast! (LOOP).wav new file mode 100644 index 0000000..f7d573b Binary files /dev/null and b/assets/sound/music/You Beast! (LOOP).wav differ diff --git a/assets/textures/misc/skybox.png b/assets/textures/misc/skybox.png new file mode 100644 index 0000000..4408314 Binary files /dev/null and b/assets/textures/misc/skybox.png differ diff --git a/main.lua b/main.lua index 84cb10b..43eb727 100644 --- a/main.lua +++ b/main.lua @@ -70,6 +70,8 @@ function love.update(dt) -- do camera if not game_pause then g3d.camera.strategyViewMovement(dt,speed,is_scrolling) + local pos = {g3d.camera.position[1]-5000/16,g3d.camera.position[2]-5000/16,g3d.camera.position[3]-5000/16} + skybox:setTransform(pos) -- movement: w,a,s,d, -- rotate: q,e -- move by screen: 20 px: sides, forward, backwards @@ -147,6 +149,7 @@ function love.draw() game_height = love.graphics.getHeight() -- LAYER 1: THE WORLD + draw_entity(skybox) -- draw every model in entities local ent_count = 0 diff --git a/scripts/levels.lua b/scripts/levels.lua index 7ccddbc..c9491fd 100644 --- a/scripts/levels.lua +++ b/scripts/levels.lua @@ -1,13 +1,20 @@ levels = {} levels.main_menu = { + skybox = nil, entities = {}, units = {} } total_model_count = 0 + +skybox = levels.main_menu.skybox local entities = levels.main_menu.entities local units = levels.main_menu.units +-- skybox + skybox = g3d.newModel("assets/objects/box.obj","assets/textures/misc/skybox.png", {0,0,0}, {0,0,0}, { 10000, 10000, 10000}) + + -- grass ground local radius = math.random(50,50) for r1 = 0, radius, 1 do for r2= 0, radius, 1 do @@ -94,5 +101,5 @@ table.insert(units,nu)]] azifer.tnum = total_model_count load_animation(azifer,animation._yari.idle,4,8) addToUnit(nu,azifer) - + table.insert(units,nu) \ No newline at end of file