Snakuence - Snake meets Befunge to make math

Show off your games, demos and other (playable) creations.
jimbo
Prole
Posts: 2
Joined: Wed May 20, 2009 1:46 am

Snakuence - Snake meets Befunge to make math

Post by jimbo »

I thought this would be an appropriate way to express my aesthetic fascination with the two rather beautiful languages Lua and Befunge. It started out as a never-released project for PSP's LuaPlayer, but when I happened across this lovely engine it was clearly meant to be.

I was pleased by how concise and clean the Befunge implementation turned out in Lua, and learned a couple of new tricks like using closures for sequence generators. If anyone would like to give me some advice on honing my Lua skills, I would love to hear it.

The only controls you will need are the arrow keys, Escape to back out to the title screen then quit and Enter to toggle fullscreen.

Free music and sounds are included thanks to the freesound project and Drax/Maniacs of Noise.

Thanks for a great engine, and enjoy! By the way, very classy website.

http://jimbomania.com/Snakuence-beta2.love(May 21) - 712KB - second beta release - fixes timestep and skips music load in Linux
Last edited by jimbo on Fri May 22, 2009 2:02 am, edited 2 times in total.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Snakuence - Snake meets Befunge to make math

Post by bartbes »

I get a segfault (linux).
Sorry I can't give you more information, that's all information I get. I do know it happens just after the window is drawn.
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: Snakuence - Snake meets Befunge to make math

Post by appleide »

Well made! And yes, its a game made for nerds like us =D Interesting concept I hadn't seen before. *goes off to read on befunge*
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Snakuence - Snake meets Befunge to make math

Post by rude »

Awesome. :neko: Befunge looks like one crazy language.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Snakuence - Snake meets Befunge to make math

Post by Robin »

Befunge is awesome indeed. It inspired me a while ago to make a language myself, which was 3D. It was pretty brain-damaged, but when I attempted to make it better, I couldn't get it to work anymore. :ehem:

This game has a very interesting concept, although it might be difficult to make something playable from it.

Oh, and I get a segfault as well on Linux (haven't tested it on windows yet).
Help us help you: attach a .love.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Snakuence - Snake meets Befunge to make math

Post by bartbes »

It runs on windows, maybe it's a sound (or the font?).
User avatar
solsword
Prole
Posts: 9
Joined: Sun Mar 29, 2009 8:24 am
Location: Claremont, CA
Contact:

Re: Snakuence - Snake meets Befunge to make math

Post by solsword »

Linux segfault is sound-related.
The file "DRAX-Space_Whale.xm" seems to be part of the problem.
A backtrace:

(gdb) bt
#0 0xb66951a6 in Player_LoadGeneric_internal () from /usr/lib/libmikmod.so.2
#1 0xb66956bf in Player_LoadGeneric () from /usr/lib/libmikmod.so.2
#2 0xb7c472b7 in MikMod_LoadSongRW () from /usr/lib/libSDL_mixer-1.2.so.0
#3 0xb7c47542 in Mix_LoadMUS_RW () from /usr/lib/libSDL_mixer-1.2.so.0
#4 0x0810b192 in love_sdlmixer::Music::load (this=0xb406f718)
at sdlmixer/Music.cpp:27
#5 0x081062d3 in love_sdlmixer::newMusic (
filename=0xb5ab2ae0 "data/DRAX-Space_Whale.xm")
at sdlmixer/love_sdlmixer.cpp:101
#6 0x0810ad0c in _wrap_newMusic (L=0xb5a97068)
at sdlmixer/mod_sdlmixer.cpp:1824
#7 0xb7c1d347 in ?? () from /usr/lib/liblua5.1.so.0
#8 0xb7c28920 in ?? () from /usr/lib/liblua5.1.so.0
#9 0xb7c1d908 in ?? () from /usr/lib/liblua5.1.so.0
#10 0xb7c18751 in ?? () from /usr/lib/liblua5.1.so.0
#11 0xb7c1ced3 in ?? () from /usr/lib/liblua5.1.so.0
#12 0xb7c1cf38 in ?? () from /usr/lib/liblua5.1.so.0
#13 0xb7c18568 in lua_pcall () from /usr/lib/liblua5.1.so.0
#14 0x0811a3e8 in love_system::LuaGame::call (this=0xb5a0a390, narg=0, nres=0)
at system/LuaGame.cpp:236
#15 0x0811b1bd in love_system::LuaGame::load (this=0xb5a0a390)
at system/LuaGame.cpp:77
#16 0x081173fc in love_system::module_init (argc=2, argv=0xbfd37904,
core=0x91d78d8) at system/love_system.cpp:221
#17 0x08098317 in love::Core::insmod (this=0x91d78d8, m=@0xbfd377ec)
at liblove/Core.cpp:55
#18 0x0809843d in love::Core::insmod (this=0x91d78d8,
init=0x81163d0 <love_system::module_init(int, char**, love::Core*)>,
quit=0x8115dc0 <love_system::module_quit()>,
open=0x8115a70 <love_system::module_open(void*)>) at liblove/Core.cpp:65
#19 0x0804ecaa in main (argc=2, argv=0xbfd37904) at love.cpp:92

If I rename that file to something else, I get an error in love saying that it can't load the file, to which I click continue and the game proceeds to work (without music, but with sounds).

I enjoyed the game.
-=[ solsword ]=-

My favorite games: http://www.cs.hmc.edu/~pmawhorter/games.html
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Snakuence - Snake meets Befunge to make math

Post by Robin »

solsword wrote:If I rename that file to something else, I get an error in love saying that it can't load the file, to which I click continue and the game proceeds to work (without music, but with sounds).
That was... unexpectedly easy. Worked for me as well.

The game's fun, and it starts off pretty hard (although I don't know whether it was too fast, or I was too slow :ehem:)
Help us help you: attach a .love.
fäbian
Prole
Posts: 6
Joined: Sat May 16, 2009 7:41 am

Re: Snakuence - Snake meets Befunge to make math

Post by fäbian »

Awesome game idea, but it runs way too fast. Please make use of the dt given to update so that I can play this cool game.
User avatar
CR4SH3D
Citizen
Posts: 67
Joined: Mon Mar 02, 2009 6:00 pm
Location: England
Contact:

Re: Snakuence - Snake meets Befunge to make math

Post by CR4SH3D »

really great game (now i get it ;P)
surprisingly tricky too
Post Reply

Who is online

Users browsing this forum: No registered users and 109 guests