[Game] In Progress - Creating a game from scratch

@Michael
Thanks for the tip. Testing it right now.

I agree with @Michael, you should use the code ide as this is the fastest way to create a game that can work on ios and android. Plus you can test it over wifi without problem.

I’ve created a game from scratch and the initial game only took a couple of weeks part-time. The code ide really helped in this as far as assets like pngs and json files.

The one thing I think that would be good for cocos2d-js/cocos code ide is a simpler way of adding external sdks. Right now you can use plugin-x if you know a bit of c++, but that will scare off most novice js programmers. Even guys like soom.la have not been able to keep their -js sdk up to date with their -x version. For me, I want to add GameSparks sdk but worry that I may have to maintain it as their -x version is still in beta.

yeah… so far, so good with Cocos Code IDE. Code-completion + “run in browser” button.

Here we are with @nite, coding the game.

2 Likes

It says “Simplicity” behind you. That says it all!

1 Like

Appreciate you guys dog fooding the engine, should help make 4.x even more awesome!

1 Like

Many things to improve in cocos2d-js, but we were able to create a super quick mock-up in a just a few hours.
The code is here: https://github.com/darkdukey/PeriodicQuest

Here is a screenshot of what we have done so far:

1 Like

Take away for dog fooding today.

  1. I miss the type checking in c++
  2. js documentation is really lacking
  3. Code IDE + Cocos Studio + cocos js 3 works quite well (except labels)
  4. Be able to test your game without building is great
  5. Don’t have to deal with android build system is great

I see cocos-js is the perfect platform for small games, we have to solve the native sdk issue for js developers.

1 Like

You need to look at all available languages to program a cocos2d-x game before you can give a conclusion what the perfect platform for small games is. I would prefer lua over js (because lovely syntax and luajit). But nevertheless, great work so far ^^

Will there be a tutorial for advanced APIs and plugin integration used in this game or will it be just the code… and the code… and just the code forever for us? :smiley: :stuck_out_tongue:

I guess even a small document and very good commenting can also work :smiley:

@code_game_chef the goal for this experiment, is to identify the weak points of cocos2d-x, so we can fix them.

@Michael saying that XXX is good doesn’t mean that YYY is worse or better. Lua and JS are both good languages for rapid development.

@ricardo you are right. I just wanted to point out that the perfect platform is absolute. But the way you say it it’s relative compared to others.

Hey,

here we are again… another Friday, another day to keep developing the game. I’ll post my today’s findings here.
Also, were discussing some internals things about the game on IRC: Freenode #cocos2d channel:
http://webchat.freenode.net/

Where is today’s pic? last Friday you posted one.

Coming on to IRC!!

ha :), here goes the photo:

Issues found today:

cc.BLACK:
Apparently I cannot use sprite.setColor(cc.BLACK); but greping the source code returns cc.BLACK.
Does cocos2d-html5 have predefined colors? It must!

Chrome:
I spent 30 minutes trying to find out what was wrong with my code… and it wasn’t my code… it was chrome that for some reason it was using and old copy from the cache… (even though I restarted the server and reload the page).

CPU consuption:
Ouch… cocos2d-html5 takes 100% of CPU… tested on Firefox.
Something is not Ok with the main loop

Issue: It is important to track down how people play the game. For that Google Analytics seems to be a good option. It provides SDKs for three platform: Web, iOS, and Android. And I found a few cocos2d-x C++ wrappers for some individual platforms:

But PeriodicQuest is going to be cross-platform, I would like to integrate it once and then work for all.

Proposal: create a unified JS wrapper interface for GA’s platform dependent libraries. What you guys think?

+1 for that.
should it be part of plugin-x ? does plugin-x support HTML5 plugins as well?
Where is the Facebook plugin hosted ? in plugin-x ?

There is a html5 version of pluginx with only Facebook right now: frameworks/cocos2d-html5/external/pluginx

Yeah, GA can be a new plugin there.

The game is progressing. My feedback today is more or less the say as last friday:

  • I need code-completion… but Cocos Code IDE is not very appealing to me. It has great features, but it feels slow and buggy.
  • What happened with Chrome ? Today I did all my testing with Firefox.

Screenshot:

1 Like

@ricardo: Nice going dude. :smiley: eagerly waiting for the game. Best Wishes!!!