changed game resolution

This commit is contained in:
Eugenio Marzo
2020-05-23 22:39:10 +02:00
parent 8c58049b79
commit d77bf7f6e7
13 changed files with 52 additions and 72 deletions

View File

@@ -1,6 +1,6 @@
font: "/assets/Adore64.ttf"
material: "/builtins/fonts/font.material"
size: 10
size: 14
antialias: 1
alpha: 1.0
outline_alpha: 0.0

7
assets/bg.atlas Normal file
View File

@@ -0,0 +1,7 @@
images {
image: "/assets/bg.png"
sprite_trim_mode: SPRITE_TRIM_MODE_OFF
}
margin: 0
extrude_borders: 2
inner_padding: 0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 357 KiB

7
assets/planet.atlas Normal file
View File

@@ -0,0 +1,7 @@
images {
image: "/assets/planet1.png"
sprite_trim_mode: SPRITE_TRIM_MODE_OFF
}
margin: 0
extrude_borders: 2
inner_padding: 0

BIN
assets/planet1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -1,34 +1,40 @@
images {
image: "/assets/bg.png"
}
animations {
id: "spaceship"
images {
image: "/assets/spaceship_00.png"
sprite_trim_mode: SPRITE_TRIM_MODE_OFF
}
images {
image: "/assets/spaceship_01.png"
sprite_trim_mode: SPRITE_TRIM_MODE_OFF
}
images {
image: "/assets/spaceship_02.png"
sprite_trim_mode: SPRITE_TRIM_MODE_OFF
}
images {
image: "/assets/spaceship_03.png"
sprite_trim_mode: SPRITE_TRIM_MODE_OFF
}
images {
image: "/assets/spaceship_04.png"
sprite_trim_mode: SPRITE_TRIM_MODE_OFF
}
images {
image: "/assets/spaceship_05.png"
sprite_trim_mode: SPRITE_TRIM_MODE_OFF
}
images {
image: "/assets/spaceship_06.png"
sprite_trim_mode: SPRITE_TRIM_MODE_OFF
}
images {
image: "/assets/spaceship_07.png"
sprite_trim_mode: SPRITE_TRIM_MODE_OFF
}
images {
image: "/assets/spaceship_08.png"
sprite_trim_mode: SPRITE_TRIM_MODE_OFF
}
playback: PLAYBACK_LOOP_FORWARD
fps: 30

View File

@@ -9,8 +9,8 @@ version = 0.2.8
variable_dt = 1
fullscreen = 0
update_frequency = 60
width = 1280
height = 720
width = 1920
height = 1080
[script]
shared_state = 1

View File

@@ -27,8 +27,8 @@ background_color {
}
nodes {
position {
x: 79.0
y: 89.0
x: 75.0
y: 158.0
z: 0.0
w: 1.0
}
@@ -101,9 +101,9 @@ nodes {
w: 1.0
}
scale {
x: 1.076
y: 1.076
z: 1.076
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
@@ -151,8 +151,8 @@ nodes {
}
nodes {
position {
x: 79.0
y: 45.0
x: 75.0
y: 107.0
z: 0.0
w: 1.0
}
@@ -275,7 +275,7 @@ nodes {
}
nodes {
position {
x: 350.0
x: 223.0
y: 129.0
z: 0.0
w: 1.0
@@ -399,8 +399,8 @@ nodes {
}
nodes {
position {
x: -161.0
y: 782.0
x: 1387.0
y: -155.0
z: 0.0
w: 1.0
}
@@ -417,8 +417,8 @@ nodes {
w: 1.0
}
size {
x: 800.0
y: 900.0
x: 399.0
y: 200.0
z: 0.0
w: 1.0
}

View File

@@ -84,8 +84,8 @@ embedded_instances {
"}\n"
""
position {
x: 640.0
y: 360.0
x: 840.0
y: 365.0
z: 0.0
}
rotation {
@@ -105,14 +105,14 @@ embedded_instances {
data: "embedded_components {\n"
" id: \"sprite\"\n"
" type: \"sprite\"\n"
" data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
" data: \"tile_set: \\\"/assets/bg.atlas\\\"\\n"
"default_animation: \\\"bg\\\"\\n"
"material: \\\"/builtins/materials/sprite.material\\\"\\n"
"blend_mode: BLEND_MODE_ALPHA\\n"
"\"\n"
" position {\n"
" x: 640.0\n"
" y: 360.0\n"
" x: 644.0\n"
" y: 352.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
@@ -124,8 +124,8 @@ embedded_instances {
"}\n"
""
position {
x: 4.0
y: -8.0
x: 314.0
y: -247.0
z: -1.0
}
rotation {
@@ -507,48 +507,8 @@ embedded_instances {
"}\n"
""
position {
x: 4.0
y: 0.0
z: 0.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
embedded_instances {
id: "logo"
data: "embedded_components {\n"
" id: \"sprite\"\n"
" type: \"sprite\"\n"
" data: \"tile_set: \\\"/assets/logo.atlas\\\"\\n"
"default_animation: \\\"kubeinvaderslogo\\\"\\n"
"material: \\\"/builtins/materials/sprite.material\\\"\\n"
"blend_mode: BLEND_MODE_ALPHA\\n"
"\"\n"
" position {\n"
" x: 1077.0\n"
" y: 62.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
""
position {
x: 0.0
y: 0.0
x: -268.0
y: -132.0
z: 0.0
}
rotation {

View File

@@ -1,7 +1,7 @@
local M = {}
function M.get_help()
msg.post("ui#gui","help",{ position = vmath.vector3(24, 680, 0) })
msg.post("ui#gui","help",{ position = vmath.vector3(856, 95, 0) })
end
function M.quit_help()

View File

@@ -86,7 +86,7 @@ function M.http_pod_result(self, _, response)
check_above = false
a = 0
distance_between_pods = 1000 / pod_items_size
y_pos = 600
y_pos = 950
space_between_factor = 0
if pod_items_size <= alien_proximity_factor then

View File

@@ -113,7 +113,7 @@ function on_input(self, action_id, action)
if action_id == hash("up") then
msg.post("ui#gui","pod_log",{infomessage = ''})
last_pod_log = false
if p.y < 700 then
if p.y < 1000 then
p.y = p.y + 4
go.set_position(p)
end
@@ -134,7 +134,7 @@ function on_input(self, action_id, action)
elseif action_id == hash("right") then
msg.post("ui#gui","pod_log",{infomessage = ''})
last_pod_log = false
if p.x < 1280 then
if p.x < 1800 then
p.x = p.x + 4
go.set_position(p)
end
@@ -201,7 +201,7 @@ function on_input(self, action_id, action)
local pos = go.get_position()
local to = pos.y + 2 * 64
local bullet = factory.create("/bullet#bulletfactory", pos)
go.animate(bullet, "position.y", go.PLAYBACK_ONCE_FORWARD, 700, go.EASING_INQUAD, 1,0,function()
go.animate(bullet, "position.y", go.PLAYBACK_ONCE_FORWARD, 1200, go.EASING_INQUAD, 1,0,function()
go.delete(bullet)
end)
last_hit_time = os.clock()