GS48 - A study in doing things that probably shouldn't be done
I have a confession to make.
I've been playing 2048 waaaay more than I'd like to admit. It's actually kind of fun. It epitomises all that is worst and best of iPhone gaming. A simple, easy, fun, smooth game, completely ripped off from a better, less popular game.
But you guys know me, I like to do things for the hell of it. So I decided to have a stab at cloning 2048 in GameSalad. I'd read somewhere that the original creators had started in GameSalad and ended up getting frustrated and moving to another platform to make it. I don't know if that's true, but I can believe it.
I went about trying to implement this in three different ways. The first was elegant, smooth, efficient. And didn't work. The second was clumsy, brute-forcing things, and ultimately didn't work. This third attempt is the simplest, but the most long-winded. It is badly in need of optimising, and only goes up to 16 right now (but other numbers will be implemented shortly).
That said, it was a ton of fun trying to work out how to at least vaguely get this working. As it turned out, it was really rather simple. I'm sure there are better ways, and I suspect I'll have to find one before I'm satisfied with the smoothness. It can definitely be speeded up compared to what you see below (it's slowed marginally to make it easier for me to see what happens as I tested it), but when played at the speed the original moves the tiles GameSalad seems to struggle to keep up.
No little animations or score keeping yet, but now I've figured out how to get it to broadly work I may lose interest pretty rapidly, so I make no promises they'll ever turn up.
If people want it I might finish it up/optimise it and knock out a template.
Anyway, BEHOLD THE LATEST OF CLONES.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Comments
Cool, nice job! I'd love to attempt my own clone (just as a learning exercise), but unfortunately I don't have any spare time.
Although the method I ended up using was pretty simple this was definitely one of the trickiest problems to solve I've found for myself in GameSalad. It's good fun and well worth finding the time for!
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Oh wow, me and my friends have made a clone of 2048 in gamesalad too. 30-40 fps. We are now trying to change up the concept so it isn't directly a 2048 clone but the same style.
@Armelline - Now do it using a custom font.
The funny thing is I picked a font that looked similar and then realised after remaking the tiles etc. that it appeared to be the exact same font... (Euphemia)
Great work! Would love to see it!
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@Armelline I'm assuming you simply used invisible actors to get the collision effect with spaces between the tiles?
@Trunks Kinda. There are invisible actors at work but they aren't (directly) handling the collisions. There are three tables used - one handles the tiles and the other two are used for randomly selecting an empty square to spawn new tiles into (one of which is only used to blank out the other one between spawns).
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Excellent work !
I think I've cracked my 2048 addiction, luckily it only lasted a few days, I can get 2048 fairly easily now, not sure I'll bother going for 4096, too much of an investment in time.
Were you going to sell this as a template ?
Looks like you're on the right track. My friend @PureEpicStudios has made a fully functional template. It's extremely smooth; I couldn't see the difference between the real thing and his template.
Keep it up!
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Looking good
I encourage solving problems and coming up with algorithms!
I've made a 2048 game too ( in code though).
Hopefully this is for learning purposes only and not for publish.. From obvious reasons.
Roy.
To be honest once I solved the general problem I optimised it a bit to make it smoother and then lost all interest. So no, probably not. It's the puzzle I love, not all the hard work making something complete :P
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support