Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 16    Views: 143

SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
05/27/15 08:08 AM (9 years ago)

Free for members: Smug 2048 for iOS only.

Native 2048 game. For now it's iOS only. Support via Forum only. It's free. https://www.buzztouch.com/plugins/plugin.php?pid=9A0EF65DBFE70C8829B70D0 For some, it's a nice introduction on how to 'import' a project into BT. Look at the original code. Look at what I did. Other than a couple of buttons, I really didn't do too much to get it 'BT Ready'. I've tested on devices and simulators and 'as far as I can tell', it works well and centers nicely on all devices, iPhone 4-5-6-6+ iPad mini and others. On the iPad it is an 'iPhone size on an iPad layout'. It wouldn't take much to 'tie' a few properties to the control panel, but I haven't done that. Yet. So for the time being, you have to modify properties directly in the code. If someone wants to tie a few properties to the plugin, that'd be just dandy. Cheers! -- Smug
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
05/27/15 08:34 AM (9 years ago)
Thanks Smug!! Awesome gesture. I'll try to do some things to it. Currently, I'm enabling accessibility for most of the plugins that I've bought and own! I'll add the same to this and send it over when I get a chance ;)
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
05/27/15 09:24 AM (9 years ago)
Thanks Smug, I will look at the code, I need all the help I can get! I used to play the game, once I got past 2048 (which took a while), I stopped cold turkey. Alan
 
RonBo
buzztouch Evangelist
Profile
Posts: 167
Reg: Feb 26, 2012
Raleigh, NC
5,220
like
05/27/15 10:29 AM (9 years ago)
Very generous of you, thanks! I'll dive into the mods you did to make it BT Ready.
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
05/27/15 05:29 PM (9 years ago)
Thanks Smug! Sounds like a fun way to check out how you BT-sized it... I downloaded it tonight, and one of the imports is missing a file? #import "F3HNumberTileGameViewController.h" 2048 plugin included the following files: SW_smug2048.h SW_smug2048.m ================= Reminder for others checking it out: on line 64 of the .m - insert the name of your project in front of _appdelegate (replacing duanepahlv2)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/27/15 11:13 PM (9 years ago)
Oh yeah? Lemme take a look. And oops about the appDelegate; those always seem to escape me for some odd reason. Cheers! -- Smug
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/28/15 12:14 AM (9 years ago)
Alrighty. v1.1 has been posted. Fixed the 'oops' appDelegate. Also added a bunch of 'hooks' for the control panel, should anyone feel like creating them. Cheers! -- Smug
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
05/28/15 06:05 AM (9 years ago)
Thanks Smug! LA
 
0z2000tv
Aspiring developer
Profile
Posts: 315
Reg: Sep 10, 2011
Nashville
11,950
like
05/28/15 09:36 AM (9 years ago)
Thank you Smug for providing plugin. My build fails. (MBpro - xcode 6.3.1) /Users/oz2000tv_MACBOOK/Documents/APPS/2048/test2048_iOS(1)/BT_Plugins/SW_smug2048/SW_smug2048.m:92:14: Interface type cannot be statically allocated NSString myBackGroundColor = [BT_strings getJsonPropertyValue:self.screenData.jsonVars nameOfProperty:@"backgroundColor" defaultValue:@"#003366"]; ///////// Any suggestions? Thank you again for providing. Mike
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
05/28/15 03:40 PM (9 years ago)
Smug must have been hacked, he never released anything not iOS AND Android ;-)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/28/15 05:14 PM (9 years ago)
Oz, put an askterisk (*) before that, so it looks like this: NSString *myBackGroundColor = [BT_strings getJs..... My bad. Just can't seem to release something anymore, lol! Cheers! -- Smug
 
0z2000tv
Aspiring developer
Profile
Posts: 315
Reg: Sep 10, 2011
Nashville
11,950
like
05/28/15 09:25 PM (9 years ago)
Thank you, Smug Mike
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
05/29/15 07:46 AM (9 years ago)
I found I had to take the code that caused that first error and copy it to avoid a second error around line 160 - (void)playGameButtonTapped { It now looks like this: - (void)playGameButtonTapped { ///////// NSString *myBackGroundColor = [BT_strings getJsonPropertyValue:self.screenData.jsonVars nameOfProperty:@"backgroundColor" defaultValue:@"#003366"]; ///////// F3HNumberTileGameViewController *c = [F3HNumberTileGameViewController numberTileGameWithDimension:4 winThreshold:2048 backgroundColor:[BT_color getColorFromHexString:myBackGroundColor] scoreModule:YES buttonControls:NO swipeControls:YES]; [self presentViewController:c animated:YES completion:nil]; }
 
0z2000tv
Aspiring developer
Profile
Posts: 315
Reg: Sep 10, 2011
Nashville
11,950
like
05/29/15 09:52 AM (9 years ago)
Thank you AlanMac. It builds and runs now. Mike
 
imac_ing
Apple Fan
Profile
Posts: 3
Reg: May 28, 2015
Atlanta
30
like
06/02/15 04:14 AM (9 years ago)
Im new to the forum and Buzztouch... Im in the process of trying to create and app for iOS but I need a little help with a few things. Like having it were people could create profiles and upload things on their profiles. I'm not the richest person in the world but I will pay for your time and expertise. For faster contact you could email me at [email protected] Thanks in Advance
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/02/15 06:40 AM (9 years ago)
This is probably not the place to ask; repost your request on the main forum. This 'particular' post is only 'followed' by the post initiator (me) and those who comment (everyone else you see on this post). That means only a few will see it. For much wider audience, go to http://www.buzztouch.com/forum and select the "Introduce Yourself" section, and create a new post there. Say hello, and repost your request. You'll probably get more response that way. Welcome to Buzztouch, by the way! Cheers! -- Smug
 
imac_ing
Apple Fan
Profile
Posts: 3
Reg: May 28, 2015
Atlanta
30
like
06/02/15 10:05 AM (9 years ago)
Ok thanks for letting me know.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.