Groups
Sign in
Groups
Star Ruby
Conversations
About
Send feedback
Help
画像と音声の暗号化+パック化について
37 views
Skip to first unread message
洋一 酒井
unread,
Jul 2, 2009, 3:30:21 AM
7/2/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Star Ruby
初めまして。
RUDLを使って商用ゲームを作ってた事がありますが
#(SDL_mixer にメモリ上のデータから再生する API がない)。
SDL自体に入力を仮想化する仕組みがあります。
1.SDL_RWops構造体をラップしたクラスを拡張ライブラリとして作成する
(中ではアーカイブされた暗号化ファイルがあれば優先して
読み込み、無かった場合は生ファイルを読み込むとかしておく)
・音声
Mix_LoadWAV_RWを使用してオブジェクトを作成
・画像
IMG_Load_RWを使用してオブジェクトを作成
こんな感じで作れば暗号化もリソースの1ファイルパック化も可能です。
ただ・・rubyレベルで暗号化アルゴリズムを入れるのは無理なので
starrubyではサンプル暗号化アルゴリズム(xorとか)を組み込んで置いて
あとは独自で改造してねくらいしか出来ないかと。
starruby応援してます。頑張ってください
Hajime Hoshi
unread,
Jul 6, 2009, 11:47:52 AM
7/6/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to star...@googlegroups.com
星です。返答がものすごく遅れてしまい申し訳ございません。
ご要望は、ファイルからだけではなく、バイト列もしくは IO オブジェクトで、 BGM や SE が再生できる機能、ということであってますでしょうか?
2009/07/02 16:30 に 洋一 酒井<
oosa...@gmail.com
> さんは書きました:
--
Hajime Hoshi <
hajim...@gmail.com
>
Reply all
Reply to author
Forward
0 new messages