new, bigger menu image and replaced black bars with dirt
This commit is contained in:
parent
48686f5bbf
commit
4233a560dd
7 changed files with 24 additions and 1 deletions
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
🕹️cube-tube/sprites/menu_l.png filter=lfs diff=lfs merge=lfs -text
|
|
@ -123,6 +123,14 @@ class CubeTubeGame < GameplayScene
|
|||
end
|
||||
@bg_x %= @bg_w if @bg_x >= @bg_w
|
||||
|
||||
dirt = Sprite.for(:dirt)
|
||||
10.times do |i|
|
||||
dirt.render(@args, { x: @bg_x + (i * (dirt.w)), y: 0 - dirt.h + 1 })
|
||||
dirt.render(@args, { x: @bg_x - (i * (dirt.w)), y: 0 - dirt.h + 1 })
|
||||
dirt.render(@args, { x: @bg_x + (i * (dirt.w)), y: @args.grid.h })
|
||||
dirt.render(@args, { x: @bg_x - (i * (dirt.w)), y: @args.grid.h })
|
||||
end
|
||||
|
||||
Sprite.for(:tunnel_loop).render(@args, { x: @bg_x + @bg_w, y: 0, w: @bg_w, h: 720 })
|
||||
Sprite.for(:tunnel_loop).render(@args, { x: @bg_x, y: 0, w: @bg_w, h: 720 })
|
||||
Sprite.for(:tunnel_loop).render(@args, { x: @bg_x - @bg_w, y: 0, w: @bg_w, h: 720 })
|
||||
|
|
|
@ -9,6 +9,7 @@ class Intro < GameplayScene
|
|||
@train_spline = [
|
||||
[1.0, 0.25, 0, 0]
|
||||
]
|
||||
@full_station_w = Sprite.for(:station_loop).w + Sprite.for(:station_end).w
|
||||
@station_start_w = Sprite.for(:station_start).w
|
||||
@tunnel_w = Sprite.for(:tunnel_loop).w
|
||||
@full_station_start_w = @station_start_w + @tunnel_w
|
||||
|
@ -64,6 +65,14 @@ class Intro < GameplayScene
|
|||
end
|
||||
end
|
||||
|
||||
dirt = Sprite.for(:dirt)
|
||||
dx = 0 - @full_station_start_w - @tunnel_w
|
||||
while dx < @full_station_w
|
||||
dirt.render(args, { x: @station_pos + dx, y: 0 - dirt.h + 1 })
|
||||
dirt.render(args, { x: @station_pos + dx, y: args.grid.h })
|
||||
dx += dirt.w
|
||||
end
|
||||
|
||||
Sprite.for(:station_loop).render(args, { x: @station_pos })
|
||||
Sprite.for(:station_start).render(args, { x: @station_pos - @station_start_w })
|
||||
Sprite.for(:tunnel_loop).render(args, { x: @station_pos - @full_station_start_w })
|
||||
|
|
|
@ -88,7 +88,7 @@ class MenuScene < SceneInstance
|
|||
super
|
||||
@first_render = args.state.tick_count if @first_render.nil?
|
||||
|
||||
Sprite.for(:menu).render(args)
|
||||
Sprite.for(:menu_l).render(args)
|
||||
|
||||
args.outputs.labels << label(
|
||||
@title.to_s.upcase,
|
||||
|
|
|
@ -25,8 +25,10 @@ module Sprite
|
|||
screen_s3: SpriteInstance.new({ w: 250, h: 210, path: 'sprites/screen-s3.png' }),
|
||||
screen_s4: SpriteInstance.new({ w: 250, h: 210, path: 'sprites/screen-s4.png' }),
|
||||
menu: SpriteInstance.new({ w: 1280, h: 720, path: 'sprites/menu.png' }),
|
||||
menu_l: SpriteInstance.new({ w: 2760, h: 1550, path: 'sprites/menu_l.png', x: -740, y: -415 }),
|
||||
tunnel_loop: SpriteInstance.new({ w: 1358, h: 720, path: 'sprites/tunnel-loop.png' }),
|
||||
tracks: SpriteInstance.new({ w: 1358, h: 55, path: 'sprites/tracks.png' }),
|
||||
dirt: SpriteInstance.new({ w: 194, h: 150, path: 'sprites/dirt.png' }),
|
||||
station_loop: SpriteInstance.new({ w: 1811, h: 720, path: 'sprites/station-loop.png' }),
|
||||
station_start: SpriteInstance.new({ w: 618, h: 720, path: 'sprites/station-start.png' }),
|
||||
station_end: SpriteInstance.new({ w: 518, h: 720, path: 'sprites/station-end.png' })
|
||||
|
|
BIN
🕹️cube-tube/sprites/dirt.png
Normal file
BIN
🕹️cube-tube/sprites/dirt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
BIN
🕹️cube-tube/sprites/menu_l.png
(Stored with Git LFS)
Normal file
BIN
🕹️cube-tube/sprites/menu_l.png
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in a new issue