Sometimes you need a grab an object in jQuery using a variable name, this is pretty easy to do and you can get pretty stupid with it. First an easy one...
var foo = "some_div_id"; $('#' + foo).click(function() { alert("hey"); })
That will make a div with an id of 'some_div_id' alert the word "hey" when you click it. Now a stupid one...
$(".some_clicky_thing").dblclick(function() { $('#item_' + this.id.substr(this.id.length-1) + ' .section_header a.toggler') .trigger('click'); });
When "some_clicky_thing" is double clicked, that triggers the click event on an anchor, with the class of "toggler", inside of an html element with the class "section_header", inside of an html element who's id is a concatenated string of a constant and the currently operated-on-object's id's last character (in this case a number). *cough*
jQuery selectors are just strings that are evaluated, so feel free to generate a string following basic Javascript rules and use it in jQuery selectors. But, be careful. It's easy to make a selector that's really supid. :D
Downloadable Content (DLC) comes in MANY different shapes and sizes, and this is a quick look at three pieces of DLC and their perceived value.
In the earliest days of the Xbox 360, Oblivion was released by Bethesda Softworks and was an amazing game (I didn't finish it though). Bethesda then went on to release what was the first DLC for the 360, in the form of 'Horse Armor' to be used on your in game horse. It was a purely cosmetic addition and Bethesda tried an experiment, by pricing the armor at $2.50 which wasn't exactly met with universal acclaim.
Since the DLC was cosmetic only and used on something you didn't really need in the game, it was easy to dismiss it and say it was over priced
The first of two map packs for Modern Warfare 2 (MW2) was release at a higher than expected $15 price point ($10 was the expected price) and was met with whining in the press and good sales from consumers. The pack contained three new maps and two remakes from the first Modern Warfare games (which was Call of Duty 4). Many people, including myself, boiled the DLC package down to "three new maps for $15 means five bucks per map." The original $60 game shipped with 16 multiplayer maps and a solo campaign, so it's reasonable to suggest that there's a price premium on these new maps.
The reason why it sold so well is that MW2 is the best game of its type and FPS players will tend to gravitate and stay loyal to one game, and in this case, it's MW2. If you want to keep playing and not be bounced from multiplayer lobbies when new maps are chosen, you need the new maps.
Since it's a multiplayer game and people usually form clans, the effect of socially obligated gaming comes into play and the perceived value of having the new maps (or just the game in the first place) is boosted.
Worth noting at this point is the comment from "amaan4ever" saying "i feel so left out for not buying this game".
In spite of the bad press about the price, and some whining on various forums, the second map pack was released at $15 and included the same distribution of new and rehashed maps.
At $25, the Celestial Steed in World of Warcraft is the most expensive single piece of DLC I've ever bought (as an aftermarket addition). It's value is that it's an enabler. The horse can run fast and it can fly (assuming you have leveled your character and have paid for the riding skill (with in-game currency)). Every last person I know who bought the mount already had another mount that enabled the player to fly and travel at very high speeds.
The reason why the star pony sold so well is that you can use it on any character you have ever created in the game and it's very common for players to create multiple characters. Each new character you create can use this mount. You can go from a lowly level 20 nobody to an overpowered death machine with this one mount under you, and it will assume all new abilities (speeds and flying) as you acquire them in game.
Having a mount is, besides tons of gold, the greatest single enabling ability in the game. $25 buys you mobility for all characters you have or ever will have in the game. That's why a small pile of polygons sold at such an amazing rate.
DLC, when presented as a trinket, isn't very compelling, but when it's delivered as an enabler it can demand a lot of real money for something that technically doesn't exist.
Surfers off the north shore of Maui, taken from the park above the beach. This scene, and the drive thru Paia made me want to sell everything I own and move there.
You may freely download this and other iPad wallpapers on inmyexperience.com for your own, personal use. You MAY NOT distribute these on other websites or use them for commercial purposes without approval.
Download.
As should be obvious from the title, this was taken on Haleakala during a sunrise, right before the sun crested over the clouds. I thought we were overdressed when we wore coats, sweatshirts and jeans in Hawaii, but as it turns out, we were freezing. As always, the joke's on the tourists, but that sunrise was amazing.
You may freely download this and other iPad wallpapers on inmyexperience.com for your own, personal use. You MAY NOT distribute these on other websites or use them for commercial purposes without approval.
Download.
Today starts a new series of posts featuring photographic iPad wallpapers. Greens was taken at the Washington DC zoo using a Canon PowerShot SX210 IS.
You may freely download this and other iPad wallpapers on inmyexperience.com for your own, personal use. You MAY NOT distribute these on other websites or use them for commercial purposes without approval.
Download.
I will be implementing Google AdSense very soon as a way to pay the costs for this blog. It's been ad free for over 8 years, but now I'd like to recover some (likely a tiny fraction) of the costs.
A massive percentage of the traffic to my site is coming from search engines and most of that traffic goes to only a few pages. I'm considering only placing AdSense on individual archive pages and not on the home page (and probably not in my RSS feed either). This would effectively only target those random people who arrived here via search and not those who regularly read the site.
So, here's heads up to those who read this blog. Ads are coming soon. If you don't like ads then disable cookies and Javascript or just don't come to the site. Feel free to yell at me via Twitter.
There are varying levels of gameplay depth, from the one button jump in Canabalt to the incredibly complex Yogg-Saron fight in Warcraft. A given depth of gameplay is good or bad depending on who is playing the game, how much they paid for the game and the platform the game is being played on. The PC allows for very complex/deep gameplay and I think it's obvious by now that the iPhone lends itself to 'shallow' gameplay. The iPad is somewhere in between.
It's my hope that over time we will see iPad games evolve beyond single button style gameplay. This video of multitouch gameplay in Plants vs Zombies is an indication of where games can go, it's the point where "the iPad is just a big iPod Touch" argument starts to fall apart.
Think about the size of your thumb as it compares to the iPod Touch screen. It's a huge percentage, maybe as high as 10%, but then think about the iPad. You can literally have two people using five fingers each, and still see most of the screen. Also, those 10 fingers will not max out the iPad's ability to deal with those inputs (11 seems to be the max). Those physical and technical facts make it possible to create more complex games that involve more than one person.
Now, as an aside, does "complex" = "deep"? Well, the answer is of course, "not necessarily." For me, "deep" gameplay exists when you have these three layers stacked up...
After that, anything stacked on top is flavoring and anything below is more meat. The leveling system in Call of Duty or the gear progression system in Warcraft is flavoring on top of the gameplay meat. Good design and great execution can make or break that meal of course, but (I think) you have to supply that basic framework to say the gameplay has any depth.
The iPad is uniquely positioned to allow head-to-head multiplayer on the same iPad due to its physical size and its ability to cope with a lot of incoming multitouch input. I can see an opportunity to create very social games that have much more depth than Canabalt (which is awesome, not bashing Canabalt) that you play in person. Of course, you'd have to support playing over the internet, but I think there's a great opportunity to make compelling meatspace games right now.
The theory goes like this, if you make an element of the gameplay involve other people, such as leaving a gift for someone in Farmville, then you're more likely to return and play more due to the social obligation. Another framework is layered below that, which is to have everything take a specified amount of time to complete. Farming crop X takes 2 hours and crop Y takes 4 hours. Two of ngmoco's freemium games use these dynamics, but they follow two models. As a player, one is clearly superior in my mind (We Rule), but as a business owner, I think they got it backwards.
Note: this blog entry doesn't address the use of 'for pay' instant gratification gameplay. Each game uses it in the same way and isn't the interesting story (imho).
Both games leverage a social obligation and a decay of 'stuff' in the game, to encourage you to login and do some stuff. That of course increases the amount of time you spend looking at the game which generates ad impressions. In terms of the ad supported business model, I think GodFinger should be an ad supported game, just like We Rule. Here's why...
In We Rule, I have many options for the types of crops to plant, each with its own time to maturity. Those time periods range from 5 minutes to a full day (or longer). If I know I don't want to, or can't, play for a set amount of time, I just plant a long term crop and then logoff. If someone places an order at one of my businesses, I can let it sit there for a long time before approving it. So, the bottom line is that I can control the amount of time I put into the game and how often I play it. The incentive to come back and login RIGHT NOW isn't very strong since I scheduled my crop maturity time period. Any orders placed at my business can be safely ignored since those business will generate money anyway, albeit more slowly.
GodFinger on the other hand is NOT ad supported but has a "you should come back and play right now" model that I CAN'T control. If I want to optimize my cash flow in the game, I have to log back in much more regularly to deal with things. Since, I have to log back in when the game wants me to, it would be the better game to use an ad supported model, but for some reason, it doesn't have ads and only wants me to spend money on something the game gives me anyway (slowly).
I'm writing this from an iPad, comfortably from my lap at just about the same word entry rate that I usually get on a real keyboard. I'm going to email this to my Evernote account (free) and post this tomorrow after doing some editing in TextMate (not free but is awesome). I haven't bought a single piece of software for the iPad yet and have been able to be productive. I've also had fun playing a few "freemium" games (eg, We Rule and GodFinger).
This isn't a review but here's a few things to think about...
More often I'm hearing people describing Twitter as the place to get all of your news and to connect to everything and everyone. More than a few times I've heard people say RSS is dead and Twitter now owns the empty hole in your soul that can only be filled with up to the second news. They may be right, but there's one hole in my soul that Twitter couldn't fill and that a good old fashioned blog could.
I've been playing We Rule on the iPhone, which is a Farmville clone (cue the moans and groans). Anyway, there's a social component to the game and I posted up my Plus+ name (which We Rule uses to connect players) and got only one reply. I then posted my name on a We Rule story on tuaw.com and got 20 replies that night (and they continue to come in as I type). So, maybe it's not a shocker that a specific story and a comment posted on it would garner more results, but consider the fact that I posted my name on Twitter in a standardized format.
There's an in-game feature that spams Twitter saying you're looking for people to play with. It's done in the same format every time and only the name in the post is different. You can do a search for that right now and you'll see tons of people looking for each other. Now, I'm just one person, but it's worth pointing out that a blog comment in the right place can be far more productive than shouting into the Twitter abyss.
Oh yeah, add Circk on Plus+ when you get a chance. :D