cyross-ruby-miyako 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +977 -0
- data/Rakefile +7 -0
- data/img/cursor.png +0 -0
- data/img/cursors.png +0 -0
- data/img/dice.png +0 -0
- data/img/wait_cursor.png +0 -0
- data/img/win_base.png +0 -0
- data/img/window.png +0 -0
- data/install_miyako.rb +75 -0
- data/lib/Miyako/API/audio.rb +198 -0
- data/lib/Miyako/API/basic_data.rb +431 -0
- data/lib/Miyako/API/bitmap.rb +35 -0
- data/lib/Miyako/API/choices.rb +308 -0
- data/lib/Miyako/API/collision.rb +444 -0
- data/lib/Miyako/API/diagram.rb +573 -0
- data/lib/Miyako/API/drawing.rb +110 -0
- data/lib/Miyako/API/fixedmap.rb +315 -0
- data/lib/Miyako/API/font.rb +384 -0
- data/lib/Miyako/API/input.rb +440 -0
- data/lib/Miyako/API/layout.rb +451 -0
- data/lib/Miyako/API/map.rb +403 -0
- data/lib/Miyako/API/map_event.rb +198 -0
- data/lib/Miyako/API/modules.rb +109 -0
- data/lib/Miyako/API/movie.rb +151 -0
- data/lib/Miyako/API/parts.rb +154 -0
- data/lib/Miyako/API/plane.rb +131 -0
- data/lib/Miyako/API/screen.rb +257 -0
- data/lib/Miyako/API/shape.rb +362 -0
- data/lib/Miyako/API/sprite.rb +338 -0
- data/lib/Miyako/API/sprite_animation.rb +461 -0
- data/lib/Miyako/API/spriteunit.rb +113 -0
- data/lib/Miyako/API/story.rb +224 -0
- data/lib/Miyako/API/textbox.rb +496 -0
- data/lib/Miyako/API/viewport.rb +435 -0
- data/lib/Miyako/API/yuki.rb +779 -0
- data/lib/Miyako/EXT/miyako_cairo.rb +60 -0
- data/lib/Miyako/EXT/raster_scroll.rb +138 -0
- data/lib/Miyako/EXT/slides.rb +136 -0
- data/lib/Miyako/miyako.rb +172 -0
- data/miyako.png +0 -0
- data/miyako_banner.png +0 -0
- data/miyako_no_katana/extconf.rb +34 -0
- data/miyako_no_katana/miyako_no_katana.c +3301 -0
- data/sample/Animation1/m1ku.rb +89 -0
- data/sample/Animation1/m1ku_arm_0.png +0 -0
- data/sample/Animation1/m1ku_arm_1.png +0 -0
- data/sample/Animation1/m1ku_arm_2.png +0 -0
- data/sample/Animation1/m1ku_arm_3.png +0 -0
- data/sample/Animation1/m1ku_back.jpg +0 -0
- data/sample/Animation1/m1ku_body.png +0 -0
- data/sample/Animation1/m1ku_eye_0.png +0 -0
- data/sample/Animation1/m1ku_eye_1.png +0 -0
- data/sample/Animation1/m1ku_eye_2.png +0 -0
- data/sample/Animation1/m1ku_eye_3.png +0 -0
- data/sample/Animation1/m1ku_hair_front.png +0 -0
- data/sample/Animation1/m1ku_hair_rear.png +0 -0
- data/sample/Animation1/readme.txt +72 -0
- data/sample/Animation2/lex.rb +95 -0
- data/sample/Animation2/lex_back.png +0 -0
- data/sample/Animation2/lex_body.png +0 -0
- data/sample/Animation2/lex_roadroller.png +0 -0
- data/sample/Animation2/lex_wheel_0.png +0 -0
- data/sample/Animation2/lex_wheel_1.png +0 -0
- data/sample/Animation2/lex_wheel_2.png +0 -0
- data/sample/Animation2/readme.txt +72 -0
- data/sample/Animation2/song_title.png +0 -0
- data/sample/Diagram_sample/back.png +0 -0
- data/sample/Diagram_sample/chr01.png +0 -0
- data/sample/Diagram_sample/chr02.png +0 -0
- data/sample/Diagram_sample/cursor.png +0 -0
- data/sample/Diagram_sample/diagram_sample_yuki2.rb +283 -0
- data/sample/Diagram_sample/readme.txt +87 -0
- data/sample/Diagram_sample/wait_cursor.png +0 -0
- data/sample/Room3/blue.rb +250 -0
- data/sample/Room3/ending.rb +175 -0
- data/sample/Room3/green.rb +185 -0
- data/sample/Room3/image/akamatsu.png +0 -0
- data/sample/Room3/image/aoyama.png +0 -0
- data/sample/Room3/image/congra.png +0 -0
- data/sample/Room3/image/congratulation.png +0 -0
- data/sample/Room3/image/congratulation_bg.png +0 -0
- data/sample/Room3/image/cursor.png +0 -0
- data/sample/Room3/image/midori.png +0 -0
- data/sample/Room3/image/mittsu_no_oheya.png +0 -0
- data/sample/Room3/image/mittsu_no_oheya_logo.png +0 -0
- data/sample/Room3/image/room_blue.png +0 -0
- data/sample/Room3/image/room_green.png +0 -0
- data/sample/Room3/image/room_red.png +0 -0
- data/sample/Room3/image/start.png +0 -0
- data/sample/Room3/image/three_doors.png +0 -0
- data/sample/Room3/image/wait_cursor.png +0 -0
- data/sample/Room3/main.rb +102 -0
- data/sample/Room3/main_component.rb +58 -0
- data/sample/Room3/readme.txt +76 -0
- data/sample/Room3/red.rb +200 -0
- data/sample/Room3/room3.rb +26 -0
- data/sample/Room3/title.rb +171 -0
- data/sample/fixed_map_test/cursor.png +0 -0
- data/sample/fixed_map_test/fixed_map_sample.rb +149 -0
- data/sample/fixed_map_test/map.csv +19 -0
- data/sample/fixed_map_test/map_01.png +0 -0
- data/sample/fixed_map_test/map_sample.rb +121 -0
- data/sample/fixed_map_test/mapchip.csv +23 -0
- data/sample/fixed_map_test/monster.png +0 -0
- data/sample/fixed_map_test/readme.txt +72 -0
- data/sample/map_test/chara.rb +50 -0
- data/sample/map_test/chr1.png +0 -0
- data/sample/map_test/cursor.png +0 -0
- data/sample/map_test/main_parts.rb +48 -0
- data/sample/map_test/main_scene.rb +137 -0
- data/sample/map_test/map.png +0 -0
- data/sample/map_test/map2.png +0 -0
- data/sample/map_test/map_layer.csv +127 -0
- data/sample/map_test/map_manager.rb +92 -0
- data/sample/map_test/map_test.rb +23 -0
- data/sample/map_test/mapchip.csv +21 -0
- data/sample/map_test/oasis.rb +65 -0
- data/sample/map_test/readme.txt +87 -0
- data/sample/map_test/route.rb +144 -0
- data/sample/map_test/sea.png +0 -0
- data/sample/map_test/town.rb +68 -0
- data/sample/map_test/wait_cursor.png +0 -0
- data/sample/map_test/window.png +0 -0
- data/win/miyako_no_katana.so +0 -0
- metadata +194 -0
@@ -0,0 +1,127 @@
|
|
1
|
+
"Miyako Maplayer",1.5
|
2
|
+
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1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
|
124
|
+
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
|
125
|
+
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
|
126
|
+
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
|
127
|
+
"end"
|
@@ -0,0 +1,92 @@
|
|
1
|
+
#�}�b�v�Ǘ��N���X
|
2
|
+
class MapManager
|
3
|
+
extend Forwardable
|
4
|
+
|
5
|
+
attr_reader :collision
|
6
|
+
|
7
|
+
def initialize
|
8
|
+
@moving = false
|
9
|
+
|
10
|
+
#�}�b�v�`�b�v�C���X�^���X�̍쐬
|
11
|
+
@mp = MapChipFactory.load("./mapchip.csv")
|
12
|
+
|
13
|
+
#�C�x���g��o�^
|
14
|
+
em = MapEventManager.new
|
15
|
+
em.add(3, EventRouteMarker).
|
16
|
+
add(7, EventRouteMarker2).
|
17
|
+
add(8, EventTown).
|
18
|
+
add(16, EventOasis)
|
19
|
+
|
20
|
+
#�}�b�v�̍쐬
|
21
|
+
@map = Map.new(@mp, "./map_layer.csv", em)
|
22
|
+
|
23
|
+
#�����W���R���W�����ݒ�
|
24
|
+
@collision = Collision.new(Rect.new(0, 0, @mp.chip_size[0], @mp.chip_size[1]),
|
25
|
+
Point.new(0, 0))
|
26
|
+
|
27
|
+
#�C�̃}�b�v�`�b�v��g���A�j���[�V��������摜�ɒu������
|
28
|
+
@sp = Sprite.new(:file=>"sea.png", :type=>:as)
|
29
|
+
@sp.oh = @sp.w
|
30
|
+
@ar = SpriteAnimation.new(:sprite=>@sp, :wait=>0.4)
|
31
|
+
@map.set_mapchip_base(0, 3, @ar)
|
32
|
+
end
|
33
|
+
|
34
|
+
def margin
|
35
|
+
return @map.margin
|
36
|
+
end
|
37
|
+
|
38
|
+
def size
|
39
|
+
return @mp.chip_size
|
40
|
+
end
|
41
|
+
|
42
|
+
def move(dx, dy)
|
43
|
+
@map.move(dx, dy)
|
44
|
+
@map.events.each{|e| e.move(dx, dy) }
|
45
|
+
@collision.move(dx, dy)
|
46
|
+
end
|
47
|
+
|
48
|
+
def move_to(x, y)
|
49
|
+
@map.events.each{|e| e.move(x-@map.pos.x, y-@map.pos.y) }
|
50
|
+
@collision.move_to(x, y)
|
51
|
+
@map.move_to(x, y)
|
52
|
+
end
|
53
|
+
|
54
|
+
def sync_margin
|
55
|
+
@map.sync_margin
|
56
|
+
@map.events.each{|e| e.margin.resize(*@map.margin) }
|
57
|
+
end
|
58
|
+
|
59
|
+
def start
|
60
|
+
@ar.start
|
61
|
+
end
|
62
|
+
|
63
|
+
def update
|
64
|
+
@ar.update_animation
|
65
|
+
@map.events.each{|e| e.update(@map, @map.events, nil) }
|
66
|
+
end
|
67
|
+
|
68
|
+
def render
|
69
|
+
@map.render
|
70
|
+
end
|
71
|
+
|
72
|
+
def render_event
|
73
|
+
@map.events.each{|e| e.render }
|
74
|
+
end
|
75
|
+
|
76
|
+
def render_event_box
|
77
|
+
@map.events.each{|e| e.render_box }
|
78
|
+
end
|
79
|
+
|
80
|
+
def stop
|
81
|
+
@ar.stop
|
82
|
+
end
|
83
|
+
|
84
|
+
def dispose
|
85
|
+
@map.dispose
|
86
|
+
@ar.dispose
|
87
|
+
@sp.dispose
|
88
|
+
end
|
89
|
+
|
90
|
+
def_delegators(:@map, :w, :h, :get_code, :get_code_real)
|
91
|
+
def_delegators(:@map, :get_amount, :events)
|
92
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#! /usr/bin/ruby
|
2
|
+
# map_test
|
3
|
+
|
4
|
+
require 'singleton'
|
5
|
+
|
6
|
+
require 'Miyako/miyako'
|
7
|
+
|
8
|
+
include Miyako
|
9
|
+
|
10
|
+
#Screen.fps = 60
|
11
|
+
#Screen.fps_view = true
|
12
|
+
|
13
|
+
require 'main_parts'
|
14
|
+
require 'chara'
|
15
|
+
require 'map_manager'
|
16
|
+
require 'route'
|
17
|
+
require 'oasis'
|
18
|
+
require 'town'
|
19
|
+
require 'main_scene'
|
20
|
+
|
21
|
+
#Screen.set_size(320, 240)
|
22
|
+
mt = Story.new
|
23
|
+
mt.run(MainScene)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"Miyako Mapchip", 1.5
|
2
|
+
"map.png"
|
3
|
+
32,32
|
4
|
+
1
|
5
|
+
0,0,32,32
|
6
|
+
0,0,32,32
|
7
|
+
0,0,32,32
|
8
|
+
0,0,32,32
|
9
|
+
0,0,32,32
|
10
|
+
0,0,32,32
|
11
|
+
0,0,32,32
|
12
|
+
0,0,32,32
|
13
|
+
1,-1,1,-1,-1,1,-1,1
|
14
|
+
1,-1,1,-1,-1,1,-1,1
|
15
|
+
1,-1,1,-1,-1,1,-1,1
|
16
|
+
0, 0,0, 0, 0,0, 0,0
|
17
|
+
1,-1,1,-1,-1,1,-1,1
|
18
|
+
1,-1,1,-1,-1,1,-1,1
|
19
|
+
1,-1,1,-1,-1,1,-1,1
|
20
|
+
1,-1,1,-1,-1,1,-1,1
|
21
|
+
"end"
|
@@ -0,0 +1,65 @@
|
|
1
|
+
#オアシスを表すイベントクラス
|
2
|
+
class EventOasis
|
3
|
+
include MapEvent
|
4
|
+
|
5
|
+
attr_reader :margin
|
6
|
+
|
7
|
+
def init(map, x, y)
|
8
|
+
# イベント用チップを取得
|
9
|
+
@spr = Sprite.new({:filename => "map2.png", :type => :color_key})
|
10
|
+
@spr.ow = @spr.oh = @spr.oy = 32
|
11
|
+
@spr.move_to(x, y)
|
12
|
+
@coll = Collision.new([0, 0, @spr.ow, @spr.oh], [@spr.x, @spr.y])
|
13
|
+
@margin = Size.new(0, 0)
|
14
|
+
@parts = CommonParts.instance
|
15
|
+
@yuki = Yuki.new
|
16
|
+
@yuki.select_textbox(@parts.box[:box])
|
17
|
+
end
|
18
|
+
|
19
|
+
# キャラとイベントが重なり合っているかの判別
|
20
|
+
def met?(param = nil)
|
21
|
+
return @coll.collision?(param[:collision])
|
22
|
+
end
|
23
|
+
|
24
|
+
# イベントの実行
|
25
|
+
def start(param = nil)
|
26
|
+
@yuki.start_plot(self.method(:plot))
|
27
|
+
end
|
28
|
+
|
29
|
+
def executing?
|
30
|
+
@yuki.executing?
|
31
|
+
end
|
32
|
+
|
33
|
+
def plot(yuki)
|
34
|
+
yuki.text " ここは"
|
35
|
+
yuki.color(:cyan){"オアシス"}
|
36
|
+
yuki.text "のようだ。\n しかし、普通は砂漠にあるはずなのに・・・。"
|
37
|
+
yuki.pause
|
38
|
+
yuki.clear
|
39
|
+
end
|
40
|
+
|
41
|
+
def move(dx, dy)
|
42
|
+
@spr.move(-dx, -dy)
|
43
|
+
end
|
44
|
+
|
45
|
+
def move_to(x, y)
|
46
|
+
@spr.move_to(x, y)
|
47
|
+
end
|
48
|
+
|
49
|
+
def update(map_obj, events, params)
|
50
|
+
if @yuki.executing?
|
51
|
+
@yuki.update
|
52
|
+
@parts.box.update_animation
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
def render
|
57
|
+
@spr.move(-@margin.w, -@margin.h)
|
58
|
+
@spr.render
|
59
|
+
@spr.move(@margin.w, @margin.h)
|
60
|
+
end
|
61
|
+
|
62
|
+
def render_box
|
63
|
+
@parts.box.render if @yuki.executing?
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
*******************************************************************************
|
2
|
+
�y ��Җ� �z�@�T�C���X��
|
3
|
+
�y �\�t�g�� �z�@Miyako v1.5�T���v��(�}�b�v�ړ�)
|
4
|
+
�y �o�[�W���� �z�@1.0.2
|
5
|
+
�y �쐬�� �z�@2008/06/06
|
6
|
+
�y ��� �z�@�t���[�E�F�A
|
7
|
+
�y �J������ �z�@Ruby 1.8.6-p114
|
8
|
+
�y �����^�C�� �z�@Miyako v1.5
|
9
|
+
�y �Ή��@�� �z�@Windows 2000/XP/Vista�ALinux
|
10
|
+
�y �Ĕz�z �z�@�C��BSD���C�Z���X�ɂ��
|
11
|
+
�y �]�� �z�@�C��BSD���C�Z���X�ɂ��
|
12
|
+
�y�z�[���y�[�W�z�@http://www.twin.ne.jp/~cyross/Miyako/
|
13
|
+
�y �A���� �z�@cyross@po.twin.ne.jp
|
14
|
+
*******************************************************************************
|
15
|
+
|
16
|
+
�E�T�v
|
17
|
+
|
18
|
+
�@���̃v���O�����́AMiyako v1.5�ȍ~�ɑΉ�����AMiyako�T���v���v���O�����ł��B
|
19
|
+
�@�t�B�[���h�}�b�v����ړ����܂��B
|
20
|
+
�@�{�^�����������ƂŁA������ׁA�X�Ȃǂɑ��郁�b�Z�[�W���\�����ꂽ��A
|
21
|
+
�@�R�}���h���\�������悤�ɂȂ��Ă��܂��B
|
22
|
+
|
23
|
+
�EMiyako�ɂ���
|
24
|
+
|
25
|
+
�@Miyako�Ɋւ��ẮA�ȉ���URL���Q�l�ɂ��Ă��������B
|
26
|
+
(���C���T�C�g)
|
27
|
+
http://www.twin.ne.jp/~cyross/Miyako/
|
28
|
+
(Wiki)
|
29
|
+
http://wiki.fdiary.net/MiyakoDevSrc/
|
30
|
+
|
31
|
+
�@Miyako(Ruby�ARuby/SDL�܂�)�̃C���X�g�[���Ɋւ��܂��ẮA
|
32
|
+
��LURL��H���ē�����A�[�J�C�u���ꂽMiyako���C�u������
|
33
|
+
�W�J����ƁAreadme.txt�������܂��̂ŁA����������Q�Ɖ������B
|
34
|
+
|
35
|
+
�@�{�T���v���ł́AMiyako��Windows��œ��삷�邱�Ƃ�O��ɂ��Ă��܂��B
|
36
|
+
�i�C���X�g�[������Ruby���s����ActiveRuby�ł��邱�Ƃ��O���
|
37
|
+
�@���Ă��܂��j
|
38
|
+
|
39
|
+
�E�N�����@
|
40
|
+
|
41
|
+
�@�G�N�X�v���[���[���J���A�{�T���v���̃t�H���_���ŁA�umap_test.rb�v��
|
42
|
+
�_�u���N���b�N���܂��B
|
43
|
+
�@�������́A�R�}���h���C����œ������ꍇ�́A�{�T���v���̃f�B���N�g����
|
44
|
+
�ړ����āA�ȉ��̃R�}���h����͂��܂��B
|
45
|
+
|
46
|
+
�@ruby map_test.rb
|
47
|
+
|
48
|
+
�E�Ɛӎ���
|
49
|
+
|
50
|
+
�@�{�T���v���͖��ۏł��B�����{�T���v�����g�p���邱�Ƃɂ��s��E�g���u��
|
51
|
+
���N�������Ƃ��Ă��A�����Ȃ�g���u���ɑ���ӔC��Ȃ����Ƃ��������������B
|
52
|
+
|
53
|
+
�@�{�T���v���́A�C��BSD���C�Z���X�Ɋ�Â����]�ځE�Ĕz�z�������܂��B
|
54
|
+
|
55
|
+
�E�C������
|
56
|
+
|
57
|
+
�@(1.0.1)
|
58
|
+
�@�E�ړ��L�[���������Ƃ��ɁA��������D�悷��悤�ɏC��
|
59
|
+
�@�E�ߕ������������Ƃ��ɁA�L�����N�^��������s����C��
|
60
|
+
�@�E�R���W������MapManager�N���X�Ɉړ�(�}�b�v�����W�̑��݂�����)
|
61
|
+
�@�E�X�N���v�g���t�@�C���ɕ���
|
62
|
+
�@(1.0.2)
|
63
|
+
�@�E1.5RC3�ɑΉ�
|
64
|
+
|
65
|
+
�EBSD���C�Z���X��
|
66
|
+
|
67
|
+
Copyright (c) 2008, Cyross Makoto
|
68
|
+
|
69
|
+
All rights reserved.
|
70
|
+
|
71
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
72
|
+
|
73
|
+
�ERedistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
74
|
+
�ERedistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
75
|
+
�ENeither the name of the Cyross Makoto nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
76
|
+
|
77
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
78
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
79
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
80
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
81
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
82
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
83
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
84
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
85
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
86
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
87
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,144 @@
|
|
1
|
+
|
2
|
+
# 道しるべ(1)を表すイベントクラス
|
3
|
+
class EventRouteMarker
|
4
|
+
include MapEvent
|
5
|
+
|
6
|
+
attr_reader :margin, :collision
|
7
|
+
|
8
|
+
def init(map, x, y)
|
9
|
+
# イベント用チップを取得
|
10
|
+
@spr = Sprite.new({:filename => "map2.png", :type => :color_key})
|
11
|
+
@spr.ow = @spr.oh = 32
|
12
|
+
@spr.ox = 96
|
13
|
+
@spr.move_to(x, y)
|
14
|
+
@coll = Collision.new([0, 0, @spr.ow, @spr.oh], [@spr.x, @spr.y])
|
15
|
+
@margin = Size.new(0, 0)
|
16
|
+
@parts = CommonParts.instance
|
17
|
+
@yuki = Yuki.new
|
18
|
+
@yuki.select_textbox(@parts.box[:box])
|
19
|
+
@yuki.select_commandbox(@parts.cbox[:box])
|
20
|
+
end
|
21
|
+
|
22
|
+
# キャラとイベントが重なり合っているかの判別
|
23
|
+
def met?(param = nil)
|
24
|
+
return @coll.collision?(param[:collision])
|
25
|
+
end
|
26
|
+
|
27
|
+
# イベントの実行
|
28
|
+
def start(param = nil)
|
29
|
+
@yuki.start_plot(self.method(:plot))
|
30
|
+
end
|
31
|
+
|
32
|
+
def executing?
|
33
|
+
@yuki.executing?
|
34
|
+
end
|
35
|
+
|
36
|
+
def plot(yuki)
|
37
|
+
yuki.text " ここに立て札がある。"
|
38
|
+
yuki.pause
|
39
|
+
yuki.clear
|
40
|
+
yuki.text " しかし、そこには何も書かれていない。"
|
41
|
+
yuki.pause
|
42
|
+
yuki.clear
|
43
|
+
end
|
44
|
+
|
45
|
+
def move(dx, dy)
|
46
|
+
@spr.move(-dx, -dy)
|
47
|
+
end
|
48
|
+
|
49
|
+
def move_to(x, y)
|
50
|
+
@spr.move_to(x, y)
|
51
|
+
end
|
52
|
+
|
53
|
+
def update(map_obj, events, params)
|
54
|
+
if @yuki.executing?
|
55
|
+
@yuki.update
|
56
|
+
@parts.box.update_animation
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def render
|
61
|
+
@spr.move(-@margin.w, -@margin.h)
|
62
|
+
@spr.render
|
63
|
+
@spr.move(@margin.w, @margin.h)
|
64
|
+
end
|
65
|
+
|
66
|
+
def render_box
|
67
|
+
@parts.box.render if @yuki.executing?
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# 道しるべ(2)を表すイベントクラス
|
72
|
+
class EventRouteMarker2
|
73
|
+
include MapEvent
|
74
|
+
|
75
|
+
attr_reader :margin
|
76
|
+
|
77
|
+
def init(map, x, y)
|
78
|
+
# イベント用チップを取得
|
79
|
+
@spr = Sprite.new({:filename => "map2.png", :type => :color_key})
|
80
|
+
@spr.ow = @spr.oh = 32
|
81
|
+
@spr.ox = 96
|
82
|
+
@spr.move(x, y)
|
83
|
+
@coll = Collision.new([0, 0, @spr.ow, @spr.oh], [@spr.x, @spr.y])
|
84
|
+
@margin = Size.new(0, 0)
|
85
|
+
@parts = CommonParts.instance
|
86
|
+
@yuki = Yuki.new
|
87
|
+
@yuki.select_textbox(@parts.box[:box])
|
88
|
+
end
|
89
|
+
|
90
|
+
# キャラとイベントが重なり合っているかの判別
|
91
|
+
def met?(param = nil)
|
92
|
+
return @coll.collision?(param[:collision])
|
93
|
+
end
|
94
|
+
|
95
|
+
# イベントの開始
|
96
|
+
def start(param = nil)
|
97
|
+
@yuki.start_plot(self.method(:plot))
|
98
|
+
end
|
99
|
+
|
100
|
+
def executing?
|
101
|
+
@yuki.executing?
|
102
|
+
end
|
103
|
+
|
104
|
+
def plot(yuki)
|
105
|
+
yuki.text " ここに立て札がある。"
|
106
|
+
yuki.pause
|
107
|
+
yuki.cr
|
108
|
+
yuki.text " 読んでみよう。"
|
109
|
+
yuki.pause
|
110
|
+
yuki.clear
|
111
|
+
yuki.color(:blue){"東"}.text("・・・果て野")
|
112
|
+
yuki.cr
|
113
|
+
yuki.color(:blue){"西"}.text("・・・荒れ海")
|
114
|
+
yuki.cr
|
115
|
+
yuki.color(:blue){"南"}.text("・・・グリージアの街")
|
116
|
+
yuki.pause
|
117
|
+
yuki.clear
|
118
|
+
end
|
119
|
+
|
120
|
+
def move(dx, dy)
|
121
|
+
@spr.move(-dx, -dy)
|
122
|
+
end
|
123
|
+
|
124
|
+
def move_to(x, y)
|
125
|
+
@spr.move_to(x, y)
|
126
|
+
end
|
127
|
+
|
128
|
+
def update(map_obj, events, params)
|
129
|
+
if @yuki.executing?
|
130
|
+
@yuki.update
|
131
|
+
@parts.box.update_animation
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
def render
|
136
|
+
@spr.move(-@margin.w, -@margin.h)
|
137
|
+
@spr.render
|
138
|
+
@spr.move(@margin.w, @margin.h)
|
139
|
+
end
|
140
|
+
|
141
|
+
def render_box
|
142
|
+
@parts.box.render if @yuki.executing?
|
143
|
+
end
|
144
|
+
end
|
Binary file
|
@@ -0,0 +1,68 @@
|
|
1
|
+
#街を表すイベントクラス
|
2
|
+
class EventTown
|
3
|
+
include MapEvent
|
4
|
+
|
5
|
+
attr_reader :margin
|
6
|
+
|
7
|
+
def init(map, x, y)
|
8
|
+
# イベント用チップを取得
|
9
|
+
@spr = Sprite.new({:filename => "map2.png", :type => :color_key})
|
10
|
+
@spr.ow = @spr.oh = @spr.ox = @spr.oy = 32
|
11
|
+
@spr.move_to(x, y)
|
12
|
+
@coll = Collision.new([0, 0, @spr.ow, @spr.oh], [@spr.x, @spr.y])
|
13
|
+
@margin = Size.new(0, 0)
|
14
|
+
@parts = CommonParts.instance
|
15
|
+
@yuki = Yuki.new
|
16
|
+
@yuki.select_textbox(@parts.box[:box])
|
17
|
+
end
|
18
|
+
|
19
|
+
# キャラとイベントが重なり合っているかの判別
|
20
|
+
def met?(param = nil)
|
21
|
+
return @coll.collision?(param[:collision])
|
22
|
+
end
|
23
|
+
|
24
|
+
# イベントの開始
|
25
|
+
def start(param = nil)
|
26
|
+
@yuki.start_plot(self.method(:plot))
|
27
|
+
end
|
28
|
+
|
29
|
+
def executing?
|
30
|
+
@yuki.executing?
|
31
|
+
end
|
32
|
+
|
33
|
+
# イベントの実行
|
34
|
+
def plot(yuki)
|
35
|
+
yuki.text " ここが"
|
36
|
+
yuki.color([255,200,200]){"グリージアの街"}
|
37
|
+
yuki.text "か・・・。"
|
38
|
+
yuki.cr
|
39
|
+
yuki.text " まぁ、入るつもりは無いが。"
|
40
|
+
yuki.pause
|
41
|
+
yuki.clear
|
42
|
+
end
|
43
|
+
|
44
|
+
def move(dx, dy)
|
45
|
+
@spr.move(-dx, -dy)
|
46
|
+
end
|
47
|
+
|
48
|
+
def move_to(x, y)
|
49
|
+
@spr.move_to(x, y)
|
50
|
+
end
|
51
|
+
|
52
|
+
def update(map_obj, events, params)
|
53
|
+
if @yuki.executing?
|
54
|
+
@yuki.update
|
55
|
+
@parts.box.update_animation
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def render
|
60
|
+
@spr.move(-@margin.w, -@margin.h)
|
61
|
+
@spr.render
|
62
|
+
@spr.move(@margin.w, @margin.h)
|
63
|
+
end
|
64
|
+
|
65
|
+
def render_box
|
66
|
+
@parts.box.render if @yuki.executing?
|
67
|
+
end
|
68
|
+
end
|
Binary file
|
Binary file
|
Binary file
|