公式パッケージ一覧
はじむの豊富な公式パッケージを使えば、GUI・ゲーム・Web・音声・物理演算など幅広い分野のアプリを日本語で開発できます。
パッケージはすべて hajimu パッケージ 追加 <リポジトリ> または GitHub から入手できます。
Hajimu's official packages enable you to build GUI apps, games, web servers, audio tools and more — all in Japanese.
Install any package via hajimu パッケージ 追加 <repo> or grab them from GitHub.
インストール方法 How to Install
パッケージマネージャを使って簡単にインストールできます。 Use the built-in package manager to install packages with a single command.
# 個別インストール# Install a single package hajimu パッケージ 追加 ReoShiozawa/hajimu_gui # hajimu.json に記載された依存関係を一括インストール# Install all dependencies listed in hajimu.json hajimu パッケージ インストール # パッケージ一覧を確認# List installed packages hajimu パッケージ 一覧
パッケージカタログ Package Catalog
hajimu_gui
日本語 GUI フレームワーク。1,101 の日本語関数でデスクトップアプリを開発。ウィジェット、グラフ、3D 描画、ホットリロード、DevTools を搭載。外部ライブラリ不要。 Japanese-native GUI framework with 1,101 functions. Build desktop apps with widgets, charts, 3D rendering, hot-reload and DevTools. No external libraries required.
取り込む "hajimu_gui" として GUI
変数 アプリ = GUI.アプリ作成("Hello", 400, 300)
GUI.描画ループ(アプリ, 関数():
GUI.ラベル("こんにちは!")
終わり)
GUI.アプリ終了(アプリ)
jp-web
HTTP サーバー & クライアントフレームワーク。API サーバー、WebSocket、静的ファイル配信、ルーティングを日本語で記述できます。 HTTP server & client framework. Build API servers, WebSockets and static file servers entirely in Japanese.
取り込む "hajimu_web" として WEB
変数 サーバー = WEB.サーバー作成(8080)
WEB.ルート追加(サーバー, "/", 関数(要求):
戻す WEB.応答("こんにちは!", 200)
終わり)
WEB.開始(サーバー)
jp-discord
Discord ボットフレームワーク。イベントハンドリング、スラッシュコマンド、メッセージ送受信、Embed 作成などをすべて日本語で実装できます。 Discord bot framework. Handle events, slash commands, messages and embeds — all written in Japanese.
取り込む "hajimu_discord" として DC
変数 ボット = DC.ボット作成(トークン)
DC.イベント(ボット, "メッセージ", 関数(msg):
もし msg["内容"] == "!こんにちは" なら
DC.返信(msg, "やあ!👋")
終わり
終わり)
DC.起動(ボット)
jp-engine_render
OpenGL ベースのレンダリングエンジン。シェーダー管理、テクスチャ、フレームバッファ、カメラ、ライティングなど低レベルのグラフィクス処理を日本語 API で操作できます。 OpenGL-based rendering engine. Manage shaders, textures, framebuffers, cameras and lighting through a Japanese API.
取り込む "jp_engine_render" として RND
RND.初期化(800, 600, "タイトル")
RND.背景色設定(0.1, 0.1, 0.1, 1.0)
RND.描画ループ(関数():
RND.四角描画(0.0, 0.0, 0.5, 0.5)
終わり)
jp-engine_2d
2D ゲームエンジン。スプライト、タイルマップ、衝突判定、アニメーション、カメラ追従など 2D ゲーム開発に必要な機能を揃えています。 2D game engine with sprites, tilemaps, collision detection, animations and camera follow — everything you need for 2D game development.
取り込む "jp_engine_2d" として E2D
変数 シーン = E2D.シーン作成(800, 600)
変数 自機 = E2D.スプライト作成("player.png", 100, 100)
E2D.更新ループ(シーン, 関数(dt):
E2D.スプライト移動(自機, 1.0 * dt, 0)
終わり)
jp-engine_3d
3D ゲームエンジン。メッシュローディング、スカイボックス、ライティング、シャドウマッピング、FPS カメラなど本格的な 3D シーンの構築が可能です。 3D game engine featuring mesh loading, skybox, lighting, shadow mapping and FPS camera for building full 3D scenes.
取り込む "jp_engine_3d" として E3D
変数 シーン = E3D.シーン作成(1280, 720, "3Dデモ")
変数 モデル = E3D.モデル読み込み("cube.obj")
E3D.ライト追加(シーン, [1,1,1], [1.0,1.0,1.0])
E3D.描画ループ(シーン, 関数(dt):
E3D.モデル回転(モデル, dt, [0,1,0])
終わり)
jp-engine_audio
オーディオエンジン。BGM・SE 再生、音量・ピッチ制御、3D 空間音声、ストリーミング再生に対応。WAV / OGG / MP3 形式をサポート。 Audio engine supporting BGM/SE playback, volume & pitch control, 3D positional audio and streaming. WAV / OGG / MP3 formats.
取り込む "jp_engine_audio" として AUD
AUD.初期化()
変数 BGM = AUD.読み込み("bgm.ogg")
AUD.ループ再生(BGM, 真)
AUD.音量設定(BGM, 0.8)
AUD.再生(BGM)
jp-engine_ui
ゲーム内 UI フレームワーク。HP バー、ミニマップ、ダイアログボックス、インベントリ画面など、ゲームに必要な UI コンポーネントを提供します。 In-game UI framework providing HP bars, minimaps, dialog boxes and inventory screens for game UIs.
取り込む "jp_engine_ui" として UI
変数 HPバー = UI.体力バー作成(100, 100, 200, 20)
UI.体力バー更新(HPバー, 75, 100) // 75/100
変数 ダイアログ = UI.ダイアログ作成("話しかけましたか?")
UI.描画(HPバー)
UI.描画(ダイアログ)
jp-engine_rpg
RPG ゲームフレームワーク。キャラクター管理、イベントシステム、ステータス・スキル・アイテムシステム、ターン制バトル、ダイアログエンジンを内蔵。 RPG game framework with character management, event system, stats/skills/items, turn-based battle and an integrated dialog engine.
取り込む "jp_engine_rpg" として RPG
変数 主人公 = RPG.キャラクター作成("勇者", {
"HP": 100, "MP": 50, "攻撃": 20
})
変数 スライム = RPG.敵作成("スライム", {"HP": 30, "攻撃": 8})
RPG.バトル開始(主人公, スライム)
jp-engine_physics
物理演算エンジン。剛体シミュレーション、衝突検出(AABB・円・ポリゴン)、重力・摩擦・反発、ジョイント・コンストレイントをサポート。 Physics engine with rigid body simulation, AABB/circle/polygon collision, gravity, friction, restitution and joints/constraints.
取り込む "jp_engine_physics" として PHY 変数 ワールド = PHY.ワールド作成(0, -9.8) 変数 箱 = PHY.剛体作成(ワールド, 100, 50, 10, 10) PHY.重力設定(ワールド, 0, -9.8) PHY.更新(ワールド, 0.016) 表示(PHY.位置取得(箱))
プロジェクト設定ファイル(hajimu.json) Project Configuration (hajimu.json)
プロジェクトルートに hajimu.json を置くと、依存パッケージを管理できます。
Place hajimu.json at the project root to declare and manage package dependencies.
{
"名前": "私のゲーム",
"バージョン": "1.0.0",
"説明": "はじむで作ったゲーム",
"依存関係": {
"hajimu_gui": "ReoShiozawa/hajimu_gui",
"jp_engine_2d": "ReoShiozawa/jp-engine_2d",
"jp_engine_audio": "ReoShiozawa/jp-engine_audio",
"jp_engine_physics": "ReoShiozawa/jp-engine_physics"
}
}
# 依存関係を一括インストール# Install all dependencies hajimu パッケージ インストール
対応プラットフォーム Platform Support
| パッケージPackage | macOS | Linux | Windows |
|---|---|---|---|
| hajimu_gui | ✅ | ✅ | ✅ |
| jp-web | ✅ | ✅ | ✅ |
| jp-discord | ✅ | ✅ | ✅ |
| jp-engine_render | ✅ | ✅ | ✅ |
| jp-engine_2d | ✅ | ✅ | ✅ |
| jp-engine_3d | ✅ | ✅ | ✅ |
| jp-engine_audio | ✅ | ✅ | ✅ |
| jp-engine_ui | ✅ | ✅ | ✅ |
| jp-engine_rpg | ✅ | ✅ | ✅ |
| jp-engine_physics | ✅ | ✅ | ✅ |
各パッケージはプラットフォームごとに最適化された .hjp(Hajimu Plugin)ファイルとして配布されます。はじむのパッケージマネージャが実行環境を自動検出し、適切なバイナリをインストールします。
Each package is shipped as platform-optimised .hjp (Hajimu Plugin) files. The package manager auto-detects your platform and installs the correct binary.