xamarin / angryninjas Goto Github PK
View Code? Open in Web Editor NEWAngry Ninjas Cocos2D/XNA Sample
License: MIT License
Angry Ninjas Cocos2D/XNA Sample
License: MIT License
Hi, this sample is featured on https://developer.xamarin.com/guides/cross-platform/game_development/ but it's outdated as heck. Please either update it or update the docs to say it's obsolete. Thanks
The default identity should be set to Developer (Automatic)
Hello:
I installed as specified (see below). Started Xamarin, selected Debug, iPad Simulator 6.1, and Run. Got 36 errors. Here are two of them...
[1] TheLevel.cs(40,40): Error CS0117: Box2D.Dynamics.b2BodyDef' does not contain a definition for
Create' (CS0117) (AngryNinjas)
b2BodyDef groundBodyDef = b2BodyDef.Create();
[2] StartPlatform.cs(34,34): Error CS0117: Box2D.Dynamics.b2FixtureDef' does not contain a definition for
Create' (CS0117) (AngryNinjas)
var fixtureDef = b2FixtureDef.Create();
The rest of the errors are all related to vars not being set to correct values because the Create() methods didn't compile.
Any clues?
INSTALLATION:
mike@mikes-mac-2:/Projects/Angry$ git clone git://github.com/mono/cocos2d-xna.git/Projects/Angry$ git clone git://github.com/mono/MonoGame.git
Cloning into 'cocos2d-xna'...
remote: Counting objects: 22492, done.
remote: Compressing objects: 100% (8576/8576), done.
remote: Total 22492 (delta 15541), reused 20388 (delta 13466)
Receiving objects: 100% (22492/22492), 105.32 MiB | 3.04 MiB/s, done.
Resolving deltas: 100% (15541/15541), done.
Checking out files: 100% (4500/4500), done.
mike@mikes-mac-2:
Cloning into 'MonoGame'...
remote: Counting objects: 33370, done.
remote: Compressing objects: 100% (10417/10417), done.
remote: Total 33370 (delta 25374), reused 29898 (delta 22624)
Receiving objects: 100% (33370/33370), 33.50 MiB | 2.73 MiB/s, done.
Resolving deltas: 100% (25374/25374), done.
mike@mikes-mac-2:~/Projects/Angry$ git clone git://github.com/xamarin/AngryNinjas
Cloning into 'AngryNinjas'...
remote: Counting objects: 1009, done.
remote: Compressing objects: 100% (662/662), done.
remote: Total 1009 (delta 349), reused 1000 (delta 341)
Receiving objects: 100% (1009/1009), 23.72 MiB | 1.71 MiB/s, done.
Resolving deltas: 100% (349/349), done.
Checking out files: 100% (1289/1289), done.
Right now the Angry Ninjas projects point to a separate MonoGame repo instead of the MonoGame submodule of Cocos2D-XNA. These should be changed to point to the submodule instead.
I raised this issue with Xamarin and they said to post it here:
This is the error I get when I try to compile:
Error 131 Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'System.Web.dll'
at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
at Xamarin.Android.Tasks.ResolveAssemblies.Execute() C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 824 2 AngryNinjas.Android
In attempting to load the angry ninjas sample in Visual Studio 2013, I am getting the following error message:
"These projects are either not supported or need project behavior impacting modifications to open in this version of Visual Studio."
Please note, I am getting this also when I attempt to open AngryNinjas-Windows.sln as well.
Details:
Did the git pull as per installation instructions on Feb. 16.
I am able to load and run on device the AngryNinjas-Android.sln (so cool!).
I have installed all of the cocos2d-xna visual studio extensions.
Please advise when you get a chance,
Cheers,
Bill
There are some issues with the sample not loading on iOS.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.