#!python # -*- mode: python; Encoding: utf-8; coding: utf-8 -*- # Last updated: <2017/08/18 13:36:46 +0900> u""" cocos2d Hello World. Windows10 x64 + Python 2.7.13 32bit + cocos2d 0.6.4 """ import cocos class HelloWorld(cocos.layer.Layer): def __init__(self): super(HelloWorld, self).__init__() label = cocos.text.Label( 'Hello, world !!', font_name='Times New Roman', font_size=64, anchor_x='center', anchor_y='center' ) label.position = 320, 240 self.add(label) cocos.director.director.init() cocos.director.director.run(cocos.scene.Scene(HelloWorld()))