4d Snake!

Update 10/02: TestFlight beta link…

This is an iOS (and eventually Android) game that is very close to being done.

I decided to take probably the oldest, simplest, most-copied game idea of all time and update it into something more challenging and worthy of 21st century hardware. The basic gameplay you already know- keep eating fruit and getting longer until your run into yourself and die. But in this version, you can turn in any direction, plus two more.

The way I represented a fourth dimension was with color. The playing area is 9x9x9, and there are 9 hues. Purple wraps
through to red, the same way you can wrap across from one side of the box to the other. Objects are only fully
opaque when your head is on the same color layer, and fade out the further you get from them.

It runs in portrait and landscape, and the snakes’s 3d motion is controlled by finger swipes; 4d turns (or frequency-shift) by the two buttons. Little 3d arrow indicators appear in front of the snake’s head to show the turn you have just signalled.
The camera position responds to tilt, and a sudden large tilt in either direction will make the camera rotate 90º to face the next side of the box. Swiping multiple times in the same direction will make the snake speed up. The longer it gets, the longer it takes to slow back down to normal; unless you run into a fruit. I made 9 different kinds of fruit that are already the color they should be (well, sort of- I used a feijoa for the teal fruit, let me know if you know of a tealer one.)

The gyro-compass-rangefinder-gizmo in the corner indicates (from the snake’s point of view) if the currently targeted fruit is lined up on each axis, or if not, how many spaces away it is.

The fruits have time limits and expire- if you keep missing them, mines start to appear at random points. If you eat enough in a row, they start to appear in longer chains of fruit, then in chains with turns and multiple chains. The chains score combo points: the points for each fruit is higher than the last, if you line up right to eat them all in a a row and not pick them off one at a time. Getting all the fruit in a chain releases a number gold coins depending on its length, that float off in all directions and are worth an extra 50 points each.

There is also espresso, which can make you shorter but temporarily makes you go very fast; donuts, which appear at the same time as the coffee and make you longer but score no points. Finally, a magical backward running pocketwatch, of which you can collect up to three. They are used automatically when you die, and back you up a few seconds to give you a do-over chance.

It uses GameCenter, and tracks worldwide high scores.

This is my first game; indeed first software application of any kind. The whole thing’s my sole creation except for the soundtrack, which I arranged from public domain midi files of classical music. (I can’t compose my way out of a wet paper bag.)

I just want to know what other people think of this. I’ve been looking at it too long to have any opinion whether it’s cool or not. I just know that there’s a lot of good games on the app store with a handful of downloads, and you can get a lot for 99¢ (probably the only place in the world where that’s true.)
There’s not much to it; by design- no levels or anything, just play as long as you can until you die. (then play again, just this one more time, to see if you can get a higher score than last time…) I personally like that sort of game, but maybe it’s not enough. Any suggestions on what it still “needs”?

It would certainly benefit from a multiplayer mode, but that will have to wait for version 2.0.

I’ll be doing a beta with TestFlight (once it’s almoster done, of course) so if you want to be a tester send me a message and I’ll put you on the list.

tl;dr : here are some screenshots.

Sounds very good and well thought out. I just hope the controls aren’t too difficult to figure out. The graphics are very nice!

The controls now are at least the fourth version I’ve gone through. First, it had 2 up-down-left-right d-pads on either side of the screen. Then it had just one d-pad and a button to shift it from being up-down-in-out to north-south-east-west. Then I had a transparent 8-way controller centered on the snake’s head. Then it used sudden accelerometer movements to make the snake turn. The touch controls now suck less than all previous ones, but it’s still not perfect. You do a short vertical swipe to move toward or away from the screen and a long vertical swipe to turn up or down, and I think it’s still too easy to get the two mixed up.
I think if I rewrite that part so it favors a move on the forward-back axis if your swipe is closer to the angle in perspective that forward and back look on the screen, and up and down if it is closer to the angle that axis appears in perspective on the screen, it won’t have that problem.

Very kool looking game reminds me of BoaBite 3D http://www.games-bot.org/spielebot_daten/Spiele-Bot-Frei/Spiele-Bot-Hauptmenu/spiel.php?Spiel_ID=176

I have been toying with the idea of a 4D fps using a color grade as the 4th dimension and am very interested to see how well it fits in with your game.

Can’t wait to give it a try, Keep up the great work.

this is only 3D… 4D is nearly impossible to emulate/make in a real world…

Source: http://www.youtube.com/watch?v=uDaKzQNlMFw

However bring a game like snake back to life and into a 3D world is AWESOME!!!

jackieeeee! scientists discoverd that bumblebees can’t fly normally based on their anatomy (body). They just fly because they don’t know it is not possible. So please don’t stop Kilo! Maybe we get a way to 4th dimension just because Kilo don’t know it’s impossible! (:slight_smile:

I actually saw a “really-4d” snake game some math-type-people made ( once well into already working on mine ) where they had it moving around in a projection of a rotating hypercube. Besides being a pain in the butt to program within Unity, I think a 4d-to-2d projection like that would be needlessly confusing to the player; and not really what I’m trying to do anyway.

So all I currently have besides the transparency fade is a small fake-perspective effect that moves objects from a point closer to the center of the box than they really are, to a point further from the center of the box, as you travel past them in the “in” (red-to-blue) direction, and moves them the other way as you travel past them in the “out” (blue-to-red) direction. Even that may be too confusing or distracting, but it gives more of a sense of continuous movement.

I think of it as a 3d view of a top-down 4d world, like a “3d” game where you’re always looking down at the character and your “height” is represented by fog and scaling. It takes as much time to travel from red to purple as it does from east to west, and the game area is a lot larger than if it were simply a 3d game- 729 grid units as opposed to 81 in a 9x9x9 cube, because 9 objects can fit into the same 3d grid unit. (Which is good, because a 9-to-a-side grid is pretty small.)

This sounds really good so far. A creative, fresh, unique and innovative concept for sure. The graphics looks good also

Looks like fun!

Realized I already had a WIP thread and should just reply to that one rather than start a new one- but anyway, the first beta version is available.

Here’s the link- you’ll need to sign up with TestFlight.

This is my first game ever. There’s intentionally really not much to it: as with the original and most every other “snake game” made in the last 36 years, you eat fruit, grow longer, run into yourself, and die. But now the fruit can appear on 9 color layers of a 9x9x9 cube, and you are able to turn in any direction- including redward and blueward. And there are combo chains, and mines.

There were more features that I had planned for it to have, but a deadline’s a deadline and it’s time to just sew this thing up and shove it out the door. I’m mainly looking for crashes, and I am interested to see if you can even figure out the swipe controls, the color shifting, and the nav scope without any tutorial or docs telling you how to do it.

Any playability improvement suggestions that don’t require me to completely go back to the drawing board are appreciated, and will probably make it into the final release.