gameoflife-cpp's People
gameoflife-cpp's Issues
Incomplete type error
I am seeing an error:
Incomplete type 'Creature' named in nested name specifier.
when I try to define creature in the loop here:
for (int row = 0; row < ROWS; ++row)
{
for (int col = 0; col < COLUMNS; ++col)
{
Creature* creature = Creature::create();
creature->setAnchorPoint(Vec2(0.0f, 0.0f));
creature->setPosition(cellWidth * float(col), cellHeight * float(row));
gridSprite->addChild(creature);
gridArray.pushBack(creature);
}
}
on the line
Creature* creature = Creature::create();
Does this need to be defined in the .hpp file for this class? I know that the version I am using is the most recent but if you could maybe help me clue in why I am seeing this error in the editor or point me in the right direction. I am new to c++ and still learning the rules
Unhadled exception
After run project -
Based on: cocos2d-x-3.8.1
Microsoft Visual Studio 2015 Version 14.0.23107.0.
Copyright (C) Microsoft Corp. All rights reserved.
The license for Visual Studio expires in 21 days.
Upgrading project 'GameOfLife'...
No upgrade required.
Migration completed successfully, but some warnings were detected during migration.
For more information, see the migration report:
C:\Users\slavo\Documents\Cocos\CocosProjects\GameOfLife\proj.win32\UpgradeLog15.htm
Microsoft Visual Studio 2015 Version 14.0.23107.0.
Copyright (C) Microsoft Corp. All rights reserved.
The license for Visual Studio expires in 21 days.
1>------ Build started: Project: GameOfLife, Configuration: Debug Win32 ------
1> 60 File(s) copied
1> GameOfLife.vcxproj -> C:\Users\slavo\Documents\Cocos\CocosProjects\GameOfLife\proj.win32\Debug.win32\GameOfLife.exe
1> C:\Users\slavo\Documents\Cocos\CocosProjects\GameOfLife\Resources\res\MainScene.csb -> C:\Users\slavo\Documents\Cocos\CocosProjects\GameOfLife\proj.win32\Debug.win32\res\MainScene.csb
1> C:\Users\slavo\Documents\Cocos\CocosProjects\GameOfLife\Resources\res\Assets\Assets\BackgroundImage\Grid.csb -> C:\Users\slavo\Documents\Cocos\CocosProjects\GameOfLife\proj.win32\Debug.win32\res\Assets\Assets\BackgroundImage\Grid.csb
1> 2 File(s) copied
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Ready for GLSL
Ready for OpenGL 2.0
but next :
Unhandled exception at 0x5C199BEC (libcocos2d_2015.dll) in GameOfLife.exe: 0xC0000005: Access violation reading location 0x00000000.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.