Can I make a sets of sprites have different solid behavior for different sprites?
e.g.
Sprite A is solid to Sprite B.
Sprite A
Sprite B
Sprite C is solid to Sprite D.
Sprite C
Sprite D
And maybe some sprites are solid to some only if some instance variable is set.
Is there a function to pad a string?
Maybe console.table could help:
console.table
var foo = [[1,2],[3,4],[5,6]]; console.log(foo); console.log(JSON.stringify(foo)); console.table(foo); var bar = [[[1,2],[3,4]],[[5,6],[7,8]],[[9,10],[11,12]]]; console.log(bar); console.log(JSON.stringify(bar)); console.table(bar);
repl.it/@BanksySan/Console-magic
I'm assuming that behind the scenes the array is a JavaScript array? In which case it a multidimensional array is basically an array of arrays of arrays.
(Don't understand why C3 has this odd array object with just three dimensions though)
Thank you. I thought I was going insane!
There are quite a few warnings on the Google Play console around the usage of unsupported APIs:
Unsupported 9 warnings identified The following APIs are grey-listed and Google can’t guarantee that they will work on existing versions of Android. Some may already be restricted for your target SDK API Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; 2 occurrences identified. Only unique stack traces are shown. API Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; 2 occurrences identified. Only unique stack traces are shown. API Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; 2 occurrences identified. Only unique stack traces are shown. API Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; 2 occurrences identified. Only unique stack traces are shown. API Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; 2 occurrences identified. Only unique stack traces are shown. API Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; 2 occurrences identified. Only unique stack traces are shown. API Landroid/view/textclassifier/logging/SmartSelectionEventTracker;-><init>(Landroid/content/Context;I)V 2 occurrences identified. Only unique stack traces are shown. API Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V 2 occurrences identified. Only unique stack traces are shown. API Landroid/content/Context;->bindServiceAsUser(Landroid/content/Intent;Landroid/content/ServiceConnection;ILandroid/os/Handler;Landroid/os/UserHandle;)Z 1 occurrence identified
How worried should I be about these? Is there any way I can estimate what problems they might cause?
Develop games in your browser. Powerful, performant & highly capable.
You do not have permission to view this post
All the links are dead now.
Even int() doesn't seem to solve all problems.
int()
Sometimes it'll just have a value it can't handle.
Wrapping the properties in an str() doesn't do anything, parsing it as an integer does work (but obviously means that only integer values are available).
str()
I'm using the Touch.Alpha, Touch.Beta & Touch.Gamma properties. The problem is, they only seem to be a valid value for integers.
Touch.Alpha
Touch.Beta
Touch.Gamma
https://drive.google.com/open?id=1XEArIF97ABCOdSovFpW3s0qTdsaqwnOe
I can prove this with Chrome dev tooling. When the emulated orientation is any fraction, no valid is available. When it is an integer, it's fine.
Is this a bug or is this me not understanding it's use?
Found it. i was exporting it as a Cordova project. i should have exported it as an APK build.
Member since 26 Feb, 2015