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?

【4日目】25日間でCocos Creatorでゲームを作る

Last updated at Posted at 2025-12-03

背景に画像を設定する

Cocos Creatorのプロジェクトに画像を取り込む

  1. Assetsパネルのassets内を右クリック→Create→Folderを選択する
  2. 名称をimagesとする
  3. 追加したい画像をドラッグ&ドロップする
    サンプル画像
    TitleScene.png

背景画像を置き換える

  1. ヒエラルキーパネルのCanvasのBackgroundを選択する
    ※3日目に作った背景
  2. インスペクターパネルのcc.Spriteを確認する
  3. ColorをFFFFFFにする
  4. Sprite Frameに取り込んだ画像をドラッグ&ドロップする
    ※クリックすると画像が選択されインスペクターパネルも置き換わるので注意

まとめ

画像のような状態になれば、設定完了です。
image.png

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?