Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaoye
mycard
Commits
506b7ffe
Commit
506b7ffe
authored
Feb 26, 2012
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BGM更换,title=青空之影,大厅=无何有之乡,决斗=幽灵乐团
parent
57c31a32
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7 additions
and
3 deletions
+7
-3
audio/bgm/duel.ogg
audio/bgm/duel.ogg
+0
-0
audio/bgm/lobby.ogg
audio/bgm/lobby.ogg
+0
-0
audio/bgm/title.ogg
audio/bgm/title.ogg
+0
-0
lib/action.rb
lib/action.rb
+2
-0
lib/chatmessage.rb
lib/chatmessage.rb
+2
-0
lib/main.rb
lib/main.rb
+1
-1
lib/scene_duel.rb
lib/scene_duel.rb
+1
-1
lib/scene_lobby.rb
lib/scene_lobby.rb
+1
-1
No files found.
audio/bgm/duel.ogg
0 → 100644
View file @
506b7ffe
File added
audio/bgm/lobby.ogg
View file @
506b7ffe
No preview for this file type
audio/bgm/title.ogg
View file @
506b7ffe
No preview for this file type
lib/action.rb
View file @
506b7ffe
...
@@ -107,6 +107,8 @@ class Action
...
@@ -107,6 +107,8 @@ class Action
player_field
.
hand
.
size
-
1
player_field
.
hand
.
size
-
1
when
:decktop
when
:decktop
player_field
.
deck
.
size
-
1
player_field
.
deck
.
size
-
1
when
nil
nil
else
else
(
@card
.
is_a?
(
Game_Card
)
?
from_field
.
index
(
@card
)
:
from_field
.
index
{
|
card
|
card
.
card
==
@card
})
||
from_field
.
index
{
|
card
|!
card
.
known?
}
(
@card
.
is_a?
(
Game_Card
)
?
from_field
.
index
(
@card
)
:
from_field
.
index
{
|
card
|
card
.
card
==
@card
})
||
from_field
.
index
{
|
card
|!
card
.
known?
}
end
end
...
...
lib/chatmessage.rb
View file @
506b7ffe
...
@@ -34,6 +34,8 @@ class ChatMessage
...
@@ -34,6 +34,8 @@ class ChatMessage
end
end
def
self
.
channel_name
(
channel
)
def
self
.
channel_name
(
channel
)
case
channel
case
channel
when
:lobby
"#大厅"
when
Symbol
when
Symbol
"#
#{
channel
}
"
"#
#{
channel
}
"
when
Room
when
Room
...
...
lib/main.rb
View file @
506b7ffe
...
@@ -34,7 +34,7 @@ begin
...
@@ -34,7 +34,7 @@ begin
require
'sdl'
require
'sdl'
include
SDL
include
SDL
SDL
.
init
(
INIT_VIDEO
|
INIT_AUDIO
)
SDL
.
init
(
INIT_VIDEO
|
INIT_AUDIO
)
WM
::
set_caption
(
"MyCard"
,
"
graphics/system/icon.gif
"
)
WM
::
set_caption
(
"MyCard"
,
"
MyCard
"
)
WM
::
icon
=
Surface
.
load
(
"graphics/system/icon.gif"
)
WM
::
icon
=
Surface
.
load
(
"graphics/system/icon.gif"
)
$screen
=
Screen
.
open
(
$config
[
'screen'
][
'width'
],
$config
[
'screen'
][
'height'
],
0
,
HWSURFACE
|
(
$config
[
'screen'
][
'fullscreen'
]
?
FULLSCREEN
:
0
))
$screen
=
Screen
.
open
(
$config
[
'screen'
][
'width'
],
$config
[
'screen'
][
'height'
],
0
,
HWSURFACE
|
(
$config
[
'screen'
][
'fullscreen'
]
?
FULLSCREEN
:
0
))
Mixer
.
open
(
Mixer
::
DEFAULT_FREQUENCY
,
Mixer
::
DEFAULT_FORMAT
,
Mixer
::
DEFAULT_CHANNELS
,
512
)
Mixer
.
open
(
Mixer
::
DEFAULT_FREQUENCY
,
Mixer
::
DEFAULT_FORMAT
,
Mixer
::
DEFAULT_CHANNELS
,
512
)
...
...
lib/scene_duel.rb
View file @
506b7ffe
...
@@ -27,7 +27,7 @@ class Scene_Duel < Scene
...
@@ -27,7 +27,7 @@ class Scene_Duel < Scene
@deck
=
deck
@deck
=
deck
end
end
def
start
def
start
@bgm
=
Mixer
::
Music
.
load
"audio/bgm/
title
.ogg"
@bgm
=
Mixer
::
Music
.
load
"audio/bgm/
duel
.ogg"
Mixer
.
fade_in_music
(
@bgm
,
-
1
,
800
)
Mixer
.
fade_in_music
(
@bgm
,
-
1
,
800
)
@background
=
Surface
.
load
(
"graphics/field/main.png"
).
display_format
@background
=
Surface
.
load
(
"graphics/field/main.png"
).
display_format
Surface
.
blit
(
@background
,
0
,
0
,
0
,
0
,
$screen
,
0
,
0
)
Surface
.
blit
(
@background
,
0
,
0
,
0
,
0
,
$screen
,
0
,
0
)
...
...
lib/scene_lobby.rb
View file @
506b7ffe
...
@@ -93,7 +93,7 @@ class Scene_Lobby < Scene
...
@@ -93,7 +93,7 @@ class Scene_Lobby < Scene
end
end
def
update
def
update
if
@count
>=
6
00
if
@count
>=
3
00
$game
.
refresh
$game
.
refresh
@count
=
0
@count
=
0
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment