原创 php a*算法

<?php header("Access-Control-Allow-Origin: *"); class PathSprite{ public $m_parent;//父節點 public $m_child;//子節點 pub

原创 cocos2dx 使用curl

#include "HelloWorldScene.h" #include "AppMacros.h" #include "pthread.h" #include "Json.h" #include "curl.h" USING_NS

原创 socket + A* + c++

// #include "stdafx.h" #include <stdio.h> #include <Winsock2.h> #pragma comment (lib, "ws2_32") #include <threa

原创 cocos2dx lua 學習文章

http://blog.csdn.net/xiaominghimi/article/category/1155088

原创 初學unity3d

文件菜單: 打開項目, 打開場景, 新建項目, 新建場景, 保存場景. 編輯菜單: duplicate , frame selected, play 資源菜單 倒入包, 導出包, select dependencies 選擇依賴資源 ga

原创 cocos2dx 觀察者模式

cocos2d-x v3.0alpha0加入 介紹 cocos2d-x 3.0介紹了一種新的響應用戶事件的機制,本文檔介紹它的使用。 基礎: 事件監聽器封裝了事件處理代碼事件派發器通知用戶事件的監聽器事件對象  包含了事件的相關信

原创 子龍山人

http://4gamers.cn/ 點贊 收藏 分

原创 轉向行爲

http://gamedevelopment.tutsplus.com/series/understanding-steering-behavior

原创 cocos2dx 連接php

#include "HelloWorldScene.h" #include "AppMacros.h" #include "pthread.h" #include "Json.h" USING_NS_CC; CCScene* He

原创 cocos2d html5 簡易點餐客戶端

<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Cocos2d-HTML5 Test Cases</title> <link rel="ico

原创 cocos2dx 3.3 適配(縮放距離, 不縮放圖片)

bool AppDelegate::applicationDidFinishLaunching() 中修改爲 Vec2 frameSize(1500, 300); Vec2 resolutionSize(960,640); bool

原创 cocos2d html5 適配

index.html5 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Cocos2d-html5 Hello World test</title>

原创 socket udp

//Server 端程序源代碼: #include <stdio.h> #include <Winsock2.h> #pragma comment (lib, "ws2_32") #include <thread> stru

原创 初學php

<?php echo "hello PHP!"; $str = "aaa"; //獲取類型 echo gettype($str); //變量是否定義 echo $str; echo isset($str); var_dump(isset

原创 3d 魚的旋轉角度

enum FishSiwmDirection { SWIM_FRONT = -1, SWIM_BACK = 1, }; void HelloWorld::update(float dt) { int _dire