0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

tmlib-rpg ウィンドウクラスの作成

Last updated at Posted at 2013-10-07

まずは、ウィンドウクラス
参考にするのは、やっぱりRGSSかな~と思うので、ウィンドウスキン素材を入れ替えれるようにするのがまず必要。

tmlib でイメージを表示して、ウィンドウを作成する。
ってことで、こんな感じ。
ss20131007a.png

ローカル環境なので、VX Ace のウィンドウ素材をそのままつかってます。

MainScene.coffee
tm.define "MainScene",
	superClass: "tm.app.Scene"
	init: ->
		# 親の初期化
		@superInit()

		window1 = rpg.Window(50, 50, 200, 200)
		window1.drawText("はろ~!",0,0)
		@addChild(window1)

tmlib.js を触り始めたけど、なかなか良い感じ?
いろいろ用意されてるし、RGSSで必要になりそうな Map 関連もあるみたい。
これは大きい、あれを再実装するのは疲れるし…

ウィンドウスキンでもやったけどレイヤーも対応できそう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?