/siv3d_examples

Siv3Dミニサンプル集(scrapbox.ioへ移行しました)

Primary LanguageRubyOtherNOASSERTION


以下のサイトへ移行しました。
Siv3Dミニサンプル集



Siv3D Examples

ここでは、Siv3D 及び OpenSiv3D のいろいろな便利な機能を試したり、紹介したりするために作成した、ちょっとしたプログラムをサンプル集として公開しています。

🐣 OpenSiv3D サンプル集

イメージ リンク 内容 キーワード
ddp_s ddp.cpp 障害物に当たるまで上方へ伸びる DDP 風レーザー intersectsAt(), Emoji
whites_s whites.cpp チョウのようなものの群れが飛んで行く
glyph_s glyph.cpp グリフアニメーション Glyph
sparkle_s emoji_sparkle.cpp 絵文字のみを使ってキラッとするアニメーション Emoji

🐣 Siv3D サンプル集

イメージ リンク 内容 キーワード
leadline_s leadline.cpp 引き出し線を描く Line, Font
morph_s morph.cpp 図形のモーフィング Polygon
transform_s transform.cpp 2D 描画位置を自由にずらす Transformer2D
keyname_s keyname.cpp 押されたキーの名前を表示 Key, Input, GetKeyNameText (Win32API)
noimage loadTextures.cpp 指定したフォルダ内のすべての PNG 画像を TextureAsset に登録する.アセット名はファイル名を使用 TextureAsset, FileSystem
noimage scale.cpp ポストエフェクトを使用し、描画結果を等倍拡大する PostEffect
power_s power.cpp バッテリー残量、AC 電源接続状態を表示 GetSystemPowerStatus (Win32API)
twinkle_s twinkle.cpp キラキラ CreateNStar
cutinfx_s cutinfx.cpp ゲームでよく見るカットインエフェクト
intersect_s intersect.cpp Shape に対する当たり判定 Shape, Geometry2D
blink_s s3dkun_blink.cpp ピクセルシェーダでテクスチャを白く点滅させるエフェクト PixelShader, ConstantBuffer
noimage nodraw_during_resize.cpp ウィンドウのリサイズ中は描画を抑制する ScalableWindow, StopWatch
encimg_s decodeimage.cpp Base64 でエンコードした画像をソースコードに 直接埋め込み、表示する Base64
scene_s siv3d_scene.cpp ham::SceneManager でお手軽シーンチェンジ SceneManager
imgcomb_s imgcomb.cpp 2 つの画像を横または縦に繋げて保存 Image, DragDrop, GUI
fadeframes_s siv3d_fade_frames.cpp 描画結果をフレーム毎にフェードアウトさせる効果 RenderTexture
titlebar_s siv3d_custom_titlebar.cpp タイトルバーと閉じるボタンを独自に実装する Rectangle

開発環境

  • Windows 10 Pro 64bit
  • Visual Studio 2015 Community
    • Siv3D August 2016 v2
  • Visual Studio 2017 Community
    • OpenSiv3D v0.1.5

連絡先

質問や意見などあればこちらへ (Twitter): @voidproc

License

These examples are published under the MIT license. See LICENSE.