Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  Snake on a Plane  (Read 7278 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass

JGO Kernel


Medals: 186
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Posted 2011-11-23 10:20:04 »

Just had an idea and prototyped something up, it looks like this:



What if Snake was a platformer?

Cheers,

Kev

Offline Damocles
« Reply #1 - Posted 2011-11-23 10:22:22 »

Yes, this can be cool. Since the path for the player to take has to be taken into account, not just the targetlocations.

You could use gravity on the snakes tail.

And maybe some sections on the tail, wich can be passed, when a pickup is added at the time it "grew"

Offline kevglass

JGO Kernel


Medals: 186
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #2 - Posted 2011-11-23 10:25:29 »

Yep, the whole snake is affected by gravity. So you can only climb as far, or reach as far as the length of the snake - which grows when you pick up pellets (just like normal snake).

You can trap yourself of course, which is a bit of a pain.

Cheers,

Kev

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Damocles
« Reply #3 - Posted 2011-11-23 10:27:34 »

Thats where a "passage" section could give the player a well-timed alternative.

Offline Mike

JGO Wizard


Medals: 85
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #4 - Posted 2011-11-23 10:29:00 »

Looks like fun and easy to understand how the physics works, I say go for it with lots of complex puzzles Wink

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #5 - Posted 2011-11-23 10:30:30 »

This is crazy! Only a few days ago I was chatting to Don, trying to convince him to make a 4k game. He said he had no ideas. I randomly told him to "make Snakes on a Plane 4k". But now that you've gone and done that, I guess I shall have to think of something else for him to do...

Also, my idea was based on a small drawing I made in class once, that featured a bunch of snakes on a mathematical plane... silly, I know.

EDIT: When can we try it? Cheesy

Offline kevglass

JGO Kernel


Medals: 186
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #6 - Posted 2011-11-23 10:36:30 »

Want to build a quick level editor and add some features. Maybe after lunch? Smiley

Cheers,

Kev

Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #7 - Posted 2011-11-23 10:45:30 »

Yay! I'll give it a spin when it's up and I can find some time. Smiley

Offline thaaks
« Reply #8 - Posted 2011-11-23 12:25:20 »

Great idea!

Don't forget Android and IPhone versions later on  Wink

Maybe add some mechanism to receive user created levels that can be added to the game later (after human filtering happened to avoid "disturbing" level design)...

Offline kevglass

JGO Kernel


Medals: 186
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #9 - Posted 2011-11-23 13:58:24 »

Here's the first ditch attempt:

http://www.cokeandcode.com/fourkay/snakeonaplane/

Only one simple level but the level editor is included at the bottom with some test framework. Let me know if you make anything interesting. I'm going to start adding some features:

a) Sticking patches
b) Bad guys
c) Spikes
d) Switches
e) etc etc
f) ideas welcome Smiley

Cheers,

Kev

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Mike

JGO Wizard


Medals: 85
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #10 - Posted 2011-11-23 14:06:53 »

It worked great, didn't find any weird things and the physics reacted in a logical way. I'm so curious about your levels! :-D

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline me

Senior Duke


Projects: 4


Java games rock!


« Reply #11 - Posted 2011-11-23 14:35:46 »

Great start!

Found an issue. I created a level where the snake could fall down to the
bottom of the screen:

Exception in thread "Thread-10" java.lang.ArrayIndexOutOfBoundsException: 621
   at A.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

Pushing the limits further gave a freeze after eating about 50 or so pellets.

Very interesting levels could be made using only the current physics!!

Best regards from

M.E.


M.E.
--------
Offline kevglass

JGO Kernel


Medals: 186
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #12 - Posted 2011-11-23 14:40:57 »

Yeah, 50 pellets is sorta unlikely and I don't check any bounds yet.

Still, seems to have legs this one Smiley (or not if you see what I mean)

Cheers,

Kev

Offline ReBirth
« Reply #13 - Posted 2011-11-23 22:54:41 »

LoL the snake can stand up Grin

Offline kevglass

JGO Kernel


Medals: 186
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #14 - Posted 2011-11-24 00:17:54 »

Quick update, some bug fixes and 6 levels (5 provided by the fine people on Twitter Smiley).

http://www.cokeandcode.com/fourkay/snakeonaplane/

Just about reached the limit now, time to take debug symbols out, obfuscate, compress etc and of course compact all the levels into one file.

Forgotten how fantastic fun java4k is Smiley

Cheers,

Kev

Offline sproingie

JGO Kernel


Medals: 202



« Reply #15 - Posted 2011-11-24 04:40:11 »

I don't know anything about the rest of the game, but the name is a winner Smiley

For extra credit, make the quit button read "I am TIRED of this muthaf***ing snake on this muthaf***ing plane!"
Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #16 - Posted 2011-11-24 05:40:52 »

Do you have the source code? I'm interrested in how this works persecutioncomplex Peeking isn't worth much in the 4k  Tongue

Offline pitbuller
« Reply #17 - Posted 2011-11-24 09:07:40 »

Game idea is brilliant yet simple.

Edit: addidg food pellet that has to be collect but do not grow the size would give more room for puzzle desing. now aftert x number of pellets snake can almout fly.
Offline kevglass

JGO Kernel


Medals: 186
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #18 - Posted 2011-11-24 09:11:46 »

Thanks for the feedback, good idea on the pellet. I'll add that.

I'll make the source available shortly.

Cheers,

Kev

Offline Apo
« Reply #19 - Posted 2011-11-24 12:39:51 »

Great game.

But how to solve the 4th level? All other level are great.

I can fall down on the left and right side of the level. There should be a border!
Offline kevglass

JGO Kernel


Medals: 186
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #20 - Posted 2011-11-24 12:41:34 »

Yeah, still working on it Smiley

The 4th level is a bit of a trick, remember you can pick up pellets with any part of your body, not just the head Smiley

Cheers,

Kev

Offline Apo
« Reply #21 - Posted 2011-11-24 12:45:27 »

Ahh ok. Nice trick.

I like the editor. Should I send my levels to you?
Offline Mike

JGO Wizard


Medals: 85
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #22 - Posted 2011-11-24 12:48:04 »

Level 5 was easier than all but 1, I liked 4 as it wasn't completely obvious how to solve it, more levels like that! Smiley

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline kevglass

JGO Kernel


Medals: 186
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #23 - Posted 2011-11-24 12:58:29 »

Every level apart from level 1 has come from people on twitter using the level editor. I'm just jamming them in at the moment - until I have the full feature set level design won't really be great.

Cheers,

Kev

Offline kevglass

JGO Kernel


Medals: 186
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #24 - Posted 2011-11-24 16:31:30 »

@Apo - please send any levels you have. I'll be adding a few new features later today tho so might be worth looking at them for level inspiration.

Cheers,

Kev

Offline kevglass

JGO Kernel


Medals: 186
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #25 - Posted 2011-11-24 21:14:14 »

New version up at:

http://www.cokeandcode.com/fourkay/snakeonaplane/

Includes two new example levels and a new level editor. Added:

- Teleports
- Velcro ceilings
- White pellets that don't grow you but you must collect

Cheers,

Kev

Offline kevglass

JGO Kernel


Medals: 186
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #26 - Posted 2011-11-25 09:23:39 »

Thanks for the extra levels folks! Smiley

Cheers,

Kev

Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #27 - Posted 2011-11-25 10:00:09 »

I found a bug! When holding down the arrow keys but not actually moving, it still counts as a move.

Great game though, I LOVE the brilliant idea Smiley

Offline kevglass

JGO Kernel


Medals: 186
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #28 - Posted 2011-11-25 13:11:03 »

Just updated to include a new test level for 2 new features:

- Red pills - shrink the snake
- Gravity switch - um, switches gravity.

Editor updated aswell:

http://www.cokeandcode.com/fourkay/snakeonaplane

Cheers,

Kev

Offline Mike

JGO Wizard


Medals: 85
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #29 - Posted 2011-11-25 13:17:22 »

Nice that you fixed the steps bug Smiley It'd be nice to put the new maps in the beginning so you don't have to play through all maps each time you add something Smiley

The red pill is nice and the gravity switch will probably allow for much more complicated levels Smiley

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Pages: [1] 2
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (45 views)
2014-10-17 03:59:02

Norakomi (36 views)
2014-10-16 15:22:06

Norakomi (27 views)
2014-10-16 15:20:20

lcass (31 views)
2014-10-15 16:18:58

TehJavaDev (61 views)
2014-10-14 00:39:48

TehJavaDev (61 views)
2014-10-14 00:35:47

TehJavaDev (51 views)
2014-10-14 00:32:37

BurntPizza (67 views)
2014-10-11 23:24:42

BurntPizza (39 views)
2014-10-11 23:10:45

BurntPizza (81 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!