레이블이 cocos2d-x 3.1인 게시물을 표시합니다. 모든 게시물 표시
레이블이 cocos2d-x 3.1인 게시물을 표시합니다. 모든 게시물 표시

2014년 11월 12일 수요일

cocos2d-x max size of sprite each platform

http://www.cocos2d-x.org/wiki/Max_size_of_textures_in_cocos2d-x_depends_on_each_platform


platformmaxsize in pixelsr
win322048 * 2048
android4096 * 4096
iPhone31024 * 1024
iPhone3GS2048 * 2048
iPhone42048 * 2048

if in android, sprite size over 4096 => not show

on visual studio, I think 8196px x 8196px

2014년 10월 14일 화요일

cocos2d-x curl header

cURL include header file


#if (CC_TARGET_PLATFORM==CC_PLATFORM_WIN32)
#include <curl\include\win32\curl\curl.h>
#elif (CC_TARGET_PLATFORM==CC_PLATFORM_ANDROID)
#include "curl/curl.h"
#endif


develop on Visual Studio (CC_FLATFORM_WIN32)
#include <curl\include\win32\curl\curl.h>

if you want to use cURL,
setting project properties
properties->Configuration Properties->Linker->Input

Additional Dependencies : libcurl_imp.lib;%(AdditionalDependencies)



if Android (CC_FLATFORM_ANDROID),

#include "curl/curl.h"


2014년 7월 15일 화요일

cocos2d-x 3.1 with cocostudio ISSUE


this is my Question

http://discuss.cocos2d-x.org/t/cocostudio-export-data-use-on-cocos2dx-3-1/15534


I received answer

http://discuss.cocos2d-x.org/t/android-stencil-buffer-not-enabled/11089

on page,

So you can refer to cocos2d-x/samples/Cpp/TestCpp/proj.android/src/org/cocos2dx/testcpp/TestCpp.java

and i go to

C:\Users\pineoc\Desktop\cocos2d-x-3.1.1\tests\cpp-tests\proj.android\src\org\cocos2dx\cpp_tests


on code(AppActivity.java),

ckage org.cocos2dx.cpp_tests;

import org.cocos2dx.lib.Cocos2dxActivity;
import org.cocos2dx.lib.Cocos2dxGLSurfaceView;

public class AppActivity extends Cocos2dxActivity {
   
    public Cocos2dxGLSurfaceView onCreateView() {
        Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
        // TestCpp should create stencil buffer
        glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
       
        return glSurfaceView;
    }
}

this code copy to my project folder android
C:\Users\pineoc\cocos2d-x-3.1.1\\proj.android\src\org\cocos2dx\cpp\AppActivity.java

add code

import org.cocos2dx.lib.Cocos2dxGLSurfaceView;

public Cocos2dxGLSurfaceView onCreateView() {
        Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
        // TestCpp should create stencil buffer
        glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
       
        return glSurfaceView;
    }

and you will see that all okay
success!

good for coding!

2014년 7월 8일 화요일

cocos2d-x 3.1.1 cocos error on python 2.7.8

C:\Users\Administrator\cocos2d-x-3.1.1\tools\cocos2d-console\bin>
python cocos.py new test -p com.test.game -l cpp -d .

Runing command: new
Traceback (most recent call last):
  File "cocos.py", line 482, in <module>
    run_plugin(command, argv, plugins)
  File "cocos.py", line 449, in run_plugin
    plugin.run(argv, dependencies_objects)
  File "..\plugins\project_new\project_new.py", line 169, in run
    self.parse_args(argv);
  File "..\plugins\project_new\project_new.py", line 103, in parse_args
    self.init(args)
  File "..\plugins\project_new\project_new.py", line 58, in init
    self._cocosroot, self._templates_root = self._parse_cfg(self._lang)
  File "..\plugins\project_new\project_new.py", line 153, in _parse_cfg
    langcfg['COCOS_ROOT'] = os.path.abspath(os.path.join(self.script_dir,langcfg["COCOS_ROOT"]))
  File "C:\Python27\lib\ntpath.py", line 84, in join
    result_path = result_path + p_path
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc8 in position 29: ordinal not in range(128)

this error on python or my env or cocos2dx

in this error,

if env path not english -> Error on ascii

change the name of folder number or english that can be comprised in ascii

JIRA Plugin - ScriptRunner 소개 #2

관련 글 소개 #1:  https://pineoc.blogspot.com/2019/03/scriptrunner-1.html ScriptRunner 소개 #2 지난 글에서는 Behaviours를 보았고 다음 내용인 콘솔, 리스너 등을 ...