skibox
This commit is contained in:
parent
051e1a941f
commit
e6756ccda7
|
@ -0,0 +1,2 @@
|
|||
# Made in Blockbench 3.7.4
|
||||
newmtl none
|
|
@ -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
|
|
@ -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!
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 130 B |
3
main.lua
3
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue