Sub prcScreenInit()
'エクセルスマイル★シューティングゲームを作ろう
'処理概要:ゲーム画面の初期化を行う
'記述場所:ワークシート「ゲーム」
Dim i As Long
'ワークシート「ゲーム」を選択し、
'念のため表示倍率や表示部分を標準に戻す
Sheets(1).Select
ActiveWindow.Zoom = 20
Sheets(1).Range("A1").Select
Sheets(1).Range("GG1").Select
'パターンのローディング
Call Sheet2.prcPatternCopy
'背景色
With Range(Cells(1, 1), Cells(150, 187)).Interior
.ColorIndex = 1 '黒
.Pattern = xlSolid
End With
'ゲーム部分と情報部分の分割線(白)
With Range(Cells(1, 146), Cells(150, 146)).Interior
.ColorIndex = 2 '白
.Pattern = xlSolid
End With
'ハイスコア(HI:)をコピー
Range(Cells(225, 66), Cells(229, 80)).Copy _
Destination:=Range(Cells(4, 149) _
, Cells(8, 163))
'@ハイスコア用0(7個)をコピー
For i = 0 To 6
Range(Cells(225, 1), Cells(229, 5)).Copy _
Destination:=Range(Cells(10, 149 + (i * 5)) _
, Cells(14, 153 + (i * 5)))
Next
'スコア(SC:)をコピー
Range(Cells(225, 51), Cells(229, 65)).Copy _
Destination:=Range(Cells(19, 149) _
, Cells(23, 163))
'Aスコア用0(7個)をコピー
For i = 0 To 6
Range(Cells(225, 1), Cells(229, 5)).Copy _
Destination:=Range(Cells(25, 149 + (i * 5)) _
, Cells(29, 153 + (i * 5)))
Next
End Sub
|