TKYM's profile※ 画面は開発中のものですPhotosBlogListsMore Tools Help

Blog


    September 18

    HSPでオセロ

    HSPでとりあえずオセロでも。
    ちなみに、ひとり遊びしかできません。

    実行にはHSPが必要です。

    othello

    全体的な構造としては、

    x, y 座標に置いた場合裏返せる個数を取得する関数
    #defcfunc revcnt array table, int x, int y, int curplayer

    #global
    タイトルとか画面の設定とか

    repeat

      背景描画、コイン描画、入力チェック

    loop

    *s_なんたら は、サブルーチンで、背景・コイン・クリック時がある。
    *s_background
    *s_coin
    *s_clicked

     

    --------

    #defcfunc という関数の定義は、戻り値を返せるが、この値を利用しないとエラーになってしまう。
    戻り値を捨てることを当たり前に考えていて困った。


    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://prog-city.spaces.live.com/blog/cns!E5379F11D9E8BB3F!1651.trak
    Weblogs that reference this entry
    • None