Goatup 2?

Nostalgia ain't what it used to be...
Post Reply
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Goatup 2?

Post by gravy »

nyarla wrote:an even more convenient thing than QR codes would be encoding levels to a string, possibly short enough to post on twitter, with a #goatup2 hashtag or some such.. and then have the app make a custom url scheme on ios devices so, eg, "goat://<levelstring>" opens the level in Goatup 2. (exactly the same as what Glitch Machine does with its glitch:// song encoding). pretty much the only good reason for an app to tweet stuff!
Oh that's nice.
User avatar
gilesgoat
Sheepie Whore
Sheepie Whore
Posts: 27259
Joined: Wed Sep 03, 2003 7:54 am 0
Location: Monfalcone, Italy
Contact:

Re: Goatup 2?

Post by gilesgoat »

I can't see string encoding to work, levels have a certain size, even if you'd compress it I think you'd still get into the realm of a few KBs and putting a string some KB long sounds quite impractical.

According to a quick look on Wikipedia a QR code can store approx < 3Kb of raw binary data, I think that's going to still be quite a stretch to fit a level in even with compression.

Anyway I think the approach of "image" maybe could be 'an easier route', maybe, just because it seems it's easier to share an image rather than sharing a genreric file (?).

But no strings encoding I definitely can't see that working.
Giles the billy goat
"Baa"
User avatar
nyarla
Baaaaaa!
Baaaaaa!
Posts: 2820
Joined: Tue Jan 14, 2003 1:53 pm 0
Location: i said kiss me you're beautiful these are truly the last days
Contact:

Re: Goatup 2?

Post by nyarla »

ah yeah, sounds like levels can be way too big for twitter-length strings, d'oh.
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Re: Goatup 2?

Post by Dio »

It's certainly possible, but you have to forgo some aspects of 'design':
- Generate most of the level randomly from one or more seeded RNGs for different aspects of the level
- Review lots of different values for the seeds until you find one that plays well
- Use the remaining space to tweak the randomly generated data to polish gameplay

For a certain type of game it would work OK. After all, for some types of game procedural generation from a seed is about all that controls the levels.
User avatar
Yak
Sheepie Whore
Sheepie Whore
Posts: 20266
Joined: Wed Apr 17, 2002 10:22 am 0
Location: Wales
Contact:

Re: Goatup 2?

Post by Yak »

Yeah, but for this game the whole idea is to let people build levels naturally, by drawing platforms and placing objects by hand. Generating levels procedurally is certainly possible, but whereas they might end up being playable, I think it takes a human designer's ingenuity to make levels actually interesting and fun. Being Matthew Smith is what it's all about :).
Justified and Ancient.
User avatar
gilesgoat
Sheepie Whore
Sheepie Whore
Posts: 27259
Joined: Wed Sep 03, 2003 7:54 am 0
Location: Monfalcone, Italy
Contact:

Re: Goatup 2?

Post by gilesgoat »

Dio wrote:It's certainly possible, but you have to forgo some aspects of 'design':
- Generate most of the level randomly from one or more seeded RNGs for different aspects of the level
- Review lots of different values for the seeds until you find one that plays well
- Use the remaining space to tweak the randomly generated data to polish gameplay

For a certain type of game it would work OK. After all, for some types of game procedural generation from a seed is about all that controls the levels.
There's an "upper mem limit" to what a level can be, it's just this limit is a bit too big to fit into a QR and definitely too big to fit into a string, given that this is "an editor" for HUMANS to use it, it kinda "defeats" the concept of random generated stuff ( for which you would just need maybe some seeds and some vars ).

For the very nature of the levels and type of game random won't do, plus the idea to leave the editor accessible is precisely for people to edit levels, sure you could have a "pseudo random" gen where you could fiddle with "a bit of knobs" and let's say "generate something messing with 10 params" but this is not that kind of stuff.

Anyway the problem is only about the fact that "they made it complex to share a file", that's the only root of the thing and it's down to politics not technicalities.
Giles the billy goat
"Baa"
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Goatup 2?

Post by gravy »

You can register a customer URI scheme for your app that if it's clicked on in an email your app will launch and be sent the link. For example:

goatup2://<uri string>

How does that help? You can actually encode data into the URI and they can be quite long. Here's someone sending a javasctipt app:

http://blog.clawpaws.net/post/2007/07/1 ... -data-URLs

That'd work and mean you can just email levels to each other
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Goatup 2?

Post by gravy »

And a bit more reading up it seems there isn't a limit on URI length for IoS

You can send megs if you want
User avatar
hyphz
Baaaaaa!
Baaaaaa!
Posts: 2856
Joined: Tue Aug 13, 2002 4:24 pm 0
Yahoo Messenger: hyphz
Location: Reading, which is deep and dark apparantly
Contact:

Goatup 2?

Post by hyphz »

gilesgoat wrote: Anyway I think the approach of "image" maybe could be 'an easier route', maybe, just because it seems it's easier to share an image rather than sharing a genreric file (?).
Well, it is. Go to the Twitter or Facebook apps and they have "attach image" right there. iCloud can't share files but it can share photo streams. Sites like imgur do free adless image hosting whereas general file hosts have the dreaded "click here to download.. no here.. no here" thing going on.

I'd think an image of say 4x4 or 8x8 pixel single color blocks (to avoid compression problems) in 255 palletised colours could encode plenty of data in a shareable way.
sonixtorm
Baa!
Baa!
Posts: 52
Joined: Thu Apr 21, 2011 6:19 pm 0

Re: Goatup 2?

Post by sonixtorm »

hyphz wrote:
gilesgoat wrote: Anyway I think the approach of "image" maybe could be 'an easier route', maybe, just because it seems it's easier to share an image rather than sharing a genreric file (?).
Well, it is. Go to the Twitter or Facebook apps and they have "attach image" right there. iCloud can't share files but it can share photo streams. Sites like imgur do free adless image hosting whereas general file hosts have the dreaded "click here to download.. no here.. no here" thing going on.

I'd think an image of say 4x4 or 8x8 pixel single color blocks (to avoid compression problems) in 255 palletised colours could encode plenty of data in a shareable way.
Or maybe better still, levels could be steganographically encoded onto images selected from an inbuilt selection or from a user's photo library, with the option to tweet directly from the app.
User avatar
hyphz
Baaaaaa!
Baaaaaa!
Posts: 2856
Joined: Tue Aug 13, 2002 4:24 pm 0
Yahoo Messenger: hyphz
Location: Reading, which is deep and dark apparantly
Contact:

Goatup 2?

Post by hyphz »

Stego that isn't destroyed by compression is a b*stard to do though. Even some commercial versions cheat and use the comment field..
sonixtorm
Baa!
Baa!
Posts: 52
Joined: Thu Apr 21, 2011 6:19 pm 0

Re: Goatup 2?

Post by sonixtorm »

hyphz wrote:Stego that isn't destroyed by compression is a b*stard to do though. Even some commercial versions cheat and use the comment field..
Just the type of challenge that Giles would relish, surely? :wink:
User avatar
sdetoni
Baaaaa!
Baaaaa!
Posts: 1368
Joined: Tue Jun 18, 2002 4:14 am 0
Location: New Sheepland

Re: Goatup 2?

Post by sdetoni »

sonixtorm wrote:
hyphz wrote:
gilesgoat wrote: Anyway I think the approach of "image" maybe could be 'an easier route', maybe, just because it seems it's easier to share an image rather than sharing a genreric file (?).
Well, it is. Go to the Twitter or Facebook apps and they have "attach image" right there. iCloud can't share files but it can share photo streams. Sites like imgur do free adless image hosting whereas general file hosts have the dreaded "click here to download.. no here.. no here" thing going on.

I'd think an image of say 4x4 or 8x8 pixel single color blocks (to avoid compression problems) in 255 palletised colours could encode plenty of data in a shareable way.
Or maybe better still, levels could be steganographically encoded onto images selected from an inbuilt selection or from a user's photo library, with the option to tweet directly from the app.

Both are really cool ideas, though the stegano method is more involved, not sure if there is an open source lib for this?
The image method would be relatively easy to do, encoding data as RGB 8bit pixel data in a gif or png file, and have a CRC checksum at the end to ensure data correctness within the image (preventing user alteration, and possible game crashes).
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Goatup 2?

Post by gravy »

You can't guarantee that whatever twitter picture hosting service you use won't rewrite the data unfortunately.
User avatar
merman
Sheepie Whore
Sheepie Whore
Posts: 10943
Joined: Wed Feb 16, 2005 1:44 pm 0
XBL Gamertag: merman1974
Yahoo Messenger: andrewrfisher
Location: Skegness, England
Contact:

Re: Goatup 2?

Post by merman »

iTunes sharing does have the advantage that the files will be backed up on connection to a host computer though
Twitter, Xbox, Wii U and Steam - merman1974
ZZAP is back - https://www.patreon.com/zzapmagazine
Post Reply