Multipart body must have at least one part
Using RN caused this error. After checking, the problematic code is: postJson(cmd, dataObj) { let url = Defines.SERVER_ADDR + cmd; let formData = new FormData(); ...
Using RN caused this error. After checking, the problematic code is: postJson(cmd, dataObj) { let url = Defines.SERVER_ADDR + cmd; let formData = new FormData(); ...
I’ve been with Flash for fifteen years. As a kid, my first encounter with Adobe was Photoshop and ImageReady. Later, Macromedia was acquired by Adobe, the web trio got the Adobe prefix, and only th...
AS code for calling the ANE: _context = ExtensionContext.createExtensionContext(EXTENSION_ID, null); You’ll find that _context is always null. The reason is that the jar was built with JDK 1.7...

Happy Restaurant is a strategy-driven business simulation game: use your wits to grow a tiny eatery step by step into something big. Bring in spectacular foot traffic and hefty revenue! Unlike mos...
FOV (Field of view)Manipulating the FOV property value can make 3D display objects appear larger up close and smaller at a distance. The FOV property represents an angle, between 0 and 180 degrees,...
I’ve spent a great deal of time thinking about video games — far more than just from concept to completion. Whether making them, playing them, or taking part in community discussions, I’ve realized there are some things I want to share. Game design is both organic and emotional, and structural and rational. The more I’ve dealt with the process and the results, the more I’ve realized that there are hidden core values in game design, values tightly bound to the six human needs. The more a game aligns with these values/needs, the better a game it is, subjectively speaking. Level 1: Needle in a HaystackAs you probably know, an enormous number of video games ship across many platforms, and the number grows every day — and every day it gets harder to find a game you’ll love. On Steam, for example, games are sorted by “Featured”, “Popular”, “New Releases” and “Recently Updated”. Dig deeper into the search options and you’ll find genres, user tags, ratings, user ratings, and unique features and categories. That’s all well and good, but it’s absolutely not as good as just telling me which game I’ll love. At best, it’s a careful guess.
Starting with Tiled 0.9.0, a new tool was added that makes it easier to edit terrain transitions in tile maps. There are many ways to handle terrain transitions between tiles in a tile map, but Tiled’s terrain tool supports transitions between tile graphics whose corners are all well-defined, which is also the most common approach. Now let’s demonstrate how to use this tool and the steps for setting up terrain information, by working through the desert.tmx that ships in the example directory of the Tiled installation package. Creating a new tile map and tileset Create a new map with a tile size of 32x32:

This afternoon I upgraded to OS X 10.9. After spending just a short while with it, I’m disappointed. I complained a lot to Baozi. When Finder is in column view, sliding the Magic Mouse left and right produces this ghosting issue. That first impression did serious damage to my feelings for 10.9.
I’ve started digging into the Raspberry Pi these past few days. I bought a book on Amazon and found it way too basic, but it works well as a table of contents. That’s good enough for me. There are ...
I used to be an ActionScript developer. Last year I started working with Objective-C, and this year I got into cocos2d. I’ve had some insights during the learning process, so I’m looking back and sharing them, as a report and reference for more fellow developers who want to move from Flash development to cocos2d. Learning cocos2d has been a pleasant process, because switching from Starling feels incredibly convenient—like back when I moved from PureMVC to Robotlegs, that feeling of meeting too late. This article records a short summary of what I learned about Action in cocos2d. Actions in cocos2d are similar to motion tweens in Flash, but they’re more powerful. In Flash, everything you can do with motion tweens, including position, rotation, scale, color, and opacity, can also be done with Actions in Cocos2D. But in Flash development, relying only on changes in position, rotation, scale, color, and opacity isn’t enough to make an interesting game—these are just animations. More comprehensive actions are what make various values change, and they come in two types: instantaneous changes and changes over time. In Flash, I generally use GTween to control changes to various values. Here’s an example: say you’re making the resource amount display text in StarCraft. When you spend or gather some resources, the resource amount text doesn’t change directly; it ticks over time. So I usually create a custom TextField, implement a pair of getter and setter, and use GTween to change their values, adding easing. Many effects can be achieved this way. You can even ease through texture swaps according to certain rules.
Now that’s real talent and creativity!
A single-player iPad game I developed in my spare time. My wife loves match-3 games, so I started with a match-3, and since food is adorable, I went with a food theme. Development plus assembling ...

I’m Laobai’s older brother. Laobai treats me like his own brother, so I’m begging you — please take good care of him. We even took a family photo together, and I once vowed to look after him into ...
The day after WWDC MMXIII wrapped up, I was watching the official Podcast on iTunes, and the ad at the end hit me right in the feels — I was deeply moved. It reminded me of the line from the iPad ad “If you asked,” released before Steve Jobs passed away: “If you asked us, we’d say: ‘This is only the beginning.’”
cn.flashj.ane.ios.OpenMap is a native extension for iOS that does one very simple thing: jump to the system’s built-in Maps app and navigate to a place. It provides 2 methods: openMap.routeFromSourceToDest(source, dest); navigates from source to dest. openMap.routeToDest(dest); navigates from the current location to dest. The source and dest parameters are both cn.flashj.ane.ios.MapItemVO, a class with three fields: latitude, longitude, and place name. Example usage: