Git Product home page Git Product logo

gameoflife-cpp's People

Contributors

danielhaaser avatar

Stargazers

libc avatar Alexey Sinitskikh avatar Trung Bui avatar  avatar Yuriy Solodkyy avatar  avatar

Watchers

Alan Davis // Rainbow avatar Lucas Arruda avatar  avatar  avatar Mitchell Hudson avatar  avatar James Cloos avatar Naomi Alterman avatar Ian Birnam avatar Anne avatar  avatar  avatar susan nesbitt avatar Siebe Jan Stoker avatar Lauren Maxwell avatar Royce Brooks avatar Jordan avatar Erika Bjune avatar Claire avatar Shannon avatar Nicolai Safai avatar Komal Desai avatar Ali Shalabi avatar Miki Nomura avatar  avatar  avatar Sean Lawrence avatar

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.