CoRサンプル集: Legacy Engine

旧RmakeゲームをCode on Rmakeで動かすことを目指す非公式のプロジェクトです

バージョン公開日メモ
0.52019/5/22初期の試作品をアルファ版として公開
プレー:100 (人数:41) クリア:14 評価: 0 (0回)
# ------------------------------------------------------------------------------ # Legacy Engine for Code on Rmake v0.5 alpha # Created by Shainy #------------------------------------------------------------------------------- class ChangeChapterRequested < RuntimeError; end def novel identifier, &block scene_instance = nil scene identifier do scene_instance = self @chapters = {} def chapter name, &block @chapters[name] = { proc: block, index: @chapters.size } end @big_images = [] def big_image id @big_images << id sprite id do image id origin :left_top end end preload do @big_images.each do |id| image id, id: id end end create do @ready = true end update do if @ready then def waitTime time wait_time time end def changeScene identifier start_scene identifier end def changeChapter name if @chapters[name] then raise ChangeChapterRequested, name end end def goEnding game_clear end @current_chapter_index = 0 while @current_chapter_index < @chapters.keys.size do begin self.instance_eval &@chapters[@chapters.keys[@current_chapter_index]][:proc] @current_chapter_index += 1 rescue ChangeChapterRequested => next_chapter_name @current_chapter_index = @chapters[next_chapter_name.message][:index] end end @ready = false end end end scene_instance.instance_eval &block end
コード一覧
投稿者:Material 315238 1 mini shainy 対象Lv1 公開日:2019年05月22日 02:28:31
プレー内容を公開する

違反を通報する

コメントする

コメントするには、ログインする必要があります。

コメント一覧

コメントはありません。

プレー履歴

プレー履歴はありません。

全てのプレー履歴を見る

新着レビュー

レビューはまだ投稿されていません。 作品の感想を作者に伝えるためにレビューを投稿してみませんか?

全てのレビュー

フォロー/シェア

ブログ/Wiki/掲示板で共有する

Rmake内(ブログ/Wiki/掲示板)に貼り付ける場合は以下のタグを利用してください。

リンク

プレイヤー

外部ホームページに貼り付ける

外部ホームページに貼り付ける場合は以下のタグを利用してください。