Swear (151)

1 Name: !WAHa.06x36 : 2005-11-03 16:38 ID:4ECwyo7f (Image: 495x495 png, 43 kb) [Del]

src/1131061133777.png: 495x495, 43 kb

And now for something completely different: Swear is a game I wrote a long time ago (the original version ran on the Amiga!). I never got around to doing a proper release of it, although it was pretty much finished (there might be a bug or two left in, though). But now that I have this fancy site and everything, I figured I might as well try and do a release of it. It's multi-platform, using the Allegro library. You can download it here:

Mac OS X: http://wakaba.c3.cx/releases/mac/Swear.zip
Windows: http://wakaba.c3.cx/releases/other/Swear_win.zip
Source: http://wakaba.c3.cx/releases/other/Swear_src.zip

Theoretically, it should compile on Linux computers too, if they have the Allegro library installed, and you run make os=unix. However, this is largely untested.

As for the game itself, it's the old classic worm game, played in non-euclidean space. That is to say, it is played on the surface of various three-dimensional shapes. It's a pretty simplistic game, and it's old enough to use no hardware acceleration of any kind, so performance may vary (on my Mac, it's leaves something to be desired). There are a lot of tweaking options to play with, though. There's also a feature to merge highscore lists, and I might post mine later if someone wants to try and beat it.

Realistically speaking, I probably won't do much development on this from here on out. If you want to report bugs, go ahead, but there's no guarantee that I'll do anything about them. If you want to take the source and run with it, go right ahead. An obvious thing to do would be to change it to use OpenGL under SDL instead of Allegro, for fancier and faster graphics.

Above all else, have fun!

48 Name: !WAHa.06x36 : 2006-03-10 22:00 ID:4ECwyo7f [Del]

Well, I got a bit of inspiration from god knows where, and decided to try my hand at a better Mac OS X port of Swear. The old one ran pretty slow, and it always bugged me. So I threw together this:

http://wakaba.c3.cx/releases/mac/MacSwear1.0.zip

It uses the Mac OS X GUI and OpenGL, and is significantly faster than the old version. It's also a universal binary. Report bugs and problems!

What I'd really like is if someone would feel like doing the hard work for me and porting this to other operating systems, too. I'm too lazy to bother, but I'd really like to see it running on as many systems as possible. The good news for a porter is that it now uses OpenGL code instead of Allegro, making it easier to adapt to anything that supports OpenGL. The bad news is that all the menu code and such has been ripped out and replaced with Cocoa code. The code is fairly well separated into C++ game code and Objective-C GUI code, so adapting the game code for a new platform should be fairly easy. The tricky part is making implementing stuff like highscore lists and such. So if you need a project, here it is!

http://wakaba.c3.cx/releases/mac/MacSwear1.0_src.zip

49 Name: !WAHa.06x36 : 2006-03-11 20:42 ID:Heaven (Image: 620x627 png, 129 kb) [Del]

src/1142134934278.png: 620x627, 129 kb

A quick screenshot of MacSwear.

50 Name: hankm : 2006-03-14 01:31 ID:bYARN7Dg [Del]

Pardon my sounding dumb, but... I have downloaded MacSwear, and it appears to run perfectly—but I haven't a clue how to play it. How does one score? And what does "next" mean?

51 Name: !WAHa.06x36 : 2006-03-14 07:50 ID:Heaven [Del]

>>50

You haven't played the old worm game? You just run around eating the red things to make yourself grow, and try not collid with yourself.

52 Name: Anonymous : 2006-03-14 11:05 ID:Heaven [Del]

now i wish i had a mac to play this on...
i can't justify spending that much money for something i'd only use to play one game, tho...

53 Name: Anonymous : 2006-03-14 17:18 ID:WVtfF39t [Del]

Ohh, so DOS.

Man, gotta play this in Blind Mode and Thick Thorus while drunk, should be an unique experience.

Can use a default Windowed Mode.

54 Name: !WAHa.06x36 : 2006-03-14 20:02 ID:Heaven [Del]

>>53

Hardcore players play in Blind Mode on Random.

55 Name: kick52 : 2006-03-15 14:50 ID:bQoBOEyF [Del]

hi all,

this looks like a great game, but i cant play it on my Power Mac G4, 400mhz, 512, Mac OS X 10.3.9

any help?

kick52

[email protected]

56 Name: !WAHa.06x36 : 2006-03-15 15:27 ID:Heaven [Del]

Current version doesn't work 10.3. Next one might. Get the old version from http://wakaba.c3.cx/releases/mac/old/, it might work, even though it doesn't run as well.

57 Post deleted by moderator.

58 Name: Jeff : 2006-03-22 03:17 ID:mj4EbuUI [Del]

Very cool snake game.

59 Name: bendala : 2006-04-01 11:23 ID:3Xr0Z9j8 [Del]

Fantastic. I am a mathematician, with an special interest in differential geometry, and I am delighted with this program after playing for a while on my Mac. I will try the Windows version and pass the url to my students. Maybe this time they will understand the difference between an orientable and non-orientable surface, maybe even what mean these fancy Betti numbers!

60 Name: Jonatan : 2006-05-21 14:33 ID:6KDDMfpp [Del]

This game look suspiciously alike a game I made a long time ago in Java, published on the web at: http://www.nada.kth.se/~rydh/3DWorm/. Same colors and all.. but not with as many features. (And today most computers are too fast for it since no time delay was implemented so it runs as fast as the processor allows.)

Just curious if the author(s) of this game get any inspiration from that?

61 Name: !WAHa.06x36 : 2006-05-21 15:34 ID:4ECwyo7f [Del]

No, I hadn't seen that before. I wrote the first version of this ages, ago, probably in 1998 or so. The main inspiration was a really, really bad TRON clone played on a sphere (I think it was this: http://www.aminet.net/package.php?package=game/misc/Revolver_V1.lha).

Yours is a far better game than that ever was. Well, I'd obviously think that since it's very similar to mine. Although you did manage to make a camera that's even more nauseating that what I came up with. It seems to have some issues around the poles, though - I guess you're relying on angles instead of vectors for the camera orientation?

62 Name: Jonatan : 2006-05-23 22:34 ID:6KDDMfpp [Del]

I guess its just a small world, and a good idea. I remember having some problems making it look good around the poles, probably because the camera orientation as you said, is computed from angles that can change very fast near the poles. But I decided to leave it as it was for it looked kinda cool. :)

Anyway, I like your version, it is what I wanted it to be, but never had time to make. Now if only somebody could make a multiplayer version...

63 Name: !WAHa.06x36 : 2006-05-24 04:30 ID:wObJR2P+ [Del]

Yes, a multiplayer version is really something I'd like to see too, but I never got around to making this because I suck at networking code, especially real-time networking code. If somebody needs a project to work on, there you have one.

64 Name: Anonymous : 2006-07-20 08:50 ID:AJw8LfCi [Del]

Sorry to resurrect an old thread, but what is the license on this thing? I'd like to work on it a bit, maybe port it to SDL, maybe add some framebuffer effects and other trippiness, but that kind of requires knowing the license. Can't make a derived work without one after all.

65 Name: !WAHa.06x36 : 2006-07-20 17:25 ID:4ECwyo7f [Del]

>>64

Call it public domain. I'm not going to complain about anything you do with it, but I do appreciate it if you tell me, and provide source in one way or the other.

If you're going to SDL it, I recommend using the MacSwear source. It's ported to OpenGL, and also slightly re-arranged to be easier to adapt to other systems. However, it does all the interface stuff in Cocoa instead. The menu code in the Allegro version is heavily dependent on the Allegro font code too, so you're out of luck either way.

66 Name: Anonymous : 2006-07-28 14:33 ID:IAIUwIGg [Del]

This game is one of the best games i've ever seen... a lot of fuckin respect goes out for this!

67 Name: Anonymous : 2006-09-04 14:10 ID:di9FU03+ [Del]

for anyone having trouble with swear running really slow, i got it to speed up A LOT on my freebsd machine by turning antialiasing off.

68 Post deleted by user.

69 Name: Alexis Chazard : 2006-10-29 06:07 ID:5SRdhTXi [Del]

Strangely on my Panther 10.3.9 G4 Ibook, MacSwear doesn't show up. It crashes just after a few "dock triangle blinks". The App had been started from different folders but to no avail. Am I missing something ?
PS : localized french system

70 Name: !WAHa.06x36 : 2006-10-30 15:54 ID:Heaven [Del]

>>69

It doesn't support 10.3 currently.

71 Name: Lukas : 2007-01-31 05:02 ID:SsAob6/0 [Del]

Fascinating game! But I'd LOVE to be able to have mouse-control over the worm, much like Tranquility does http://www.tqworld.com (a great game too, btw!) Would make the controls more precise and the game wuld get more fluency!

I love your apps! keep on the great work! :)

72 Name: Lukas : 2007-01-31 05:04 ID:SsAob6/0 [Del]

oh, and do you think you could implement a full-screen mode (for total immersion)?

73 Name: Anonymous : 2007-02-13 03:20 ID:St7M/Bak [Del]

what's this?

74 Name: Anonymous : 2007-02-13 06:26 ID:2+ZWYooN [Del]

>>72
i don't know if macswear does, but the version linked in the first post has a full-screen mode...

75 Name: Calle : 2007-03-07 16:20 ID:OFPoeiVf [Del]

Awesome game AAAAA+++

Would play again

76 Name: Amiel Martin : 2007-03-20 13:03 ID:k/F0SY5x [Del]

Wow, thanks, swear is way too much fun.
A multiplayer feature would be really cool, My friend and I used to play gnibbles (which has up to 4 players) and we would play two snakes each. Anyway, imagine being in control of two snakes in the Klein bottle...

thanks again

77 Name: icolor : 2007-03-30 04:55 ID:up5FFn6/ [Del]

i love macswear!! a couple of thoughts though:
1) would it be possible to have shortcuts for selecting 'layer'?
2) 'layer' is a strange term(??)
3) i would like to be a worm on an apple sphere!! similar to the icon, with a bite taken, and a leaf on top!
and 4) dual player sounds awesome! if the other guy crashes into me, HE will be destroyed, right?

78 Post deleted by user.

79 Name: FuturDreamz : 2007-03-31 17:33 ID:GcyWOQXC [Del]

It needs a fullscreen mode.

80 Post deleted by user.

81 Name: Anonymous : 2008-01-09 23:07 ID:sR73RV5O [Del]

nice!!

82 Name: Jayson : 2008-01-11 15:01 ID:2D0WgMqc [Del]

Awesome game! One of the best short games to play IMO.

I'm a little confused on the scoring though. The score value for next seems to vary, but I'm not sure why it's higher sometimes. Does it vary based on time between catches, accuracy of hitting the sparkle, or something else?

83 Name: !WAHa.06x36 : 2008-01-11 18:51 ID:Heaven [Del]

It's really just random. In hunt mode, it varies with the size and speed and agility of the prey, though.

84 Name: Paul : 2008-03-04 06:28 ID:Rv8CFw4d [Del]

Thanks a lot for this game. It gives me a brainwash on demand.

85 Post deleted by moderator.

86 Post deleted by moderator.

87 Name: Me : 2008-06-09 20:23 ID:MkChjncf [Del]

heyy, is there a sort of highscore pool for this amzingly fantastic game? That would be amazing. If not, one should be created.

88 Name: Me : 2008-06-09 20:23 ID:MkChjncf [Del]

heyy, is there a sort of highscore pool for this amzingly fantastic game? That would be amazing. If not, one should be created.

89 Name: !WAHa.06x36 : 2008-06-10 06:57 ID:Heaven [Del]

I did consider making one once upon a time, but then I got distracted like so often happens. I'd be happy if someone else did it for me, though.

90 Name: Anonymous : 2008-06-10 12:25 ID:Heaven [Del]

has anyone else considered trying to port this game to the nintendo ds? i've been wanting to do it but haven't started working on it yet, so i figured i'd ask so if anyone else has.

91 Name: R.veerakumar : 2008-07-24 10:19 ID:imScBUBw [Del]

I like it

92 Name: R.veerakumar : 2008-07-24 10:20 ID:imScBUBw [Del]

I like it

93 Name: R.veerakumar : 2008-07-24 10:24 ID:imScBUBw [Del]

I like it

94 Name: RW : 2008-07-26 06:46 ID:UOFWU8AN [Del]

lol... This game rocks. Thanks a lot for releasing source code. If I port it, I'll share!

95 Post deleted by moderator.

96 Post deleted by moderator.

97 Post deleted by moderator.

98 Post deleted by moderator.

99 Post deleted by user.

100 Post deleted by user.

101 Post deleted by moderator.

102 Name: Anonymous : 2008-10-17 17:47 ID:eUiPI9Zb [Del]

I don't suppose you would be willing to port this to iPhone/iPod touch? I know it would garner lots of eyeballs--not that many games on the App Store are that fun--, but it looks like it would require a complete rewrite.

103 Name: Dax : 2008-10-18 11:32 ID:jXNRztb8 [Del]

Please more levels :)
Maybe something like this:
http://www.gomboc.eu/site.php ;
http://www.gomboc.eu/site.php?inc=0&menuId=8 ,
http://www.zeropointnine.com/blog/strange-3d-objects-perlin-noise
Metacage 2,or hollow sphere with some small perforations? :)

104 Name: Dax : 2008-10-18 11:35 ID:jXNRztb8 [Del]

Please more levels :)
Maybe something like this:
http://www.gomboc.eu/site.php ;
http://www.gomboc.eu/site.php?inc=0&menuId=8 ,
http://www.zeropointnine.com/blog/strange-3d-objects-perlin-noise
Metacage 2,or hollow sphere with some small perforations? :)

105 Name: !WAHa.06x36 : 2008-10-19 13:48 ID:RSKjZYuU [Del]

>>102

For the low, low price of buying me an iPhone, I can deliver an iPhone version!

106 Name: !WAHa.06x36 : 2008-10-19 13:51 ID:Heaven [Del]

>>103

Funnily enough, http://wakaba.c3.cx/s/lotsablankers/lotsaglass.html uses almost exactly the same method mentioned in that last link.

107 Name: Anonymous : 2008-12-19 14:34 ID:Heaven [Del]

Just thought I'd comment on this game, it's amazing! I think I'll be keeping this one around forever. Thanks for it!

108 Name: Nilpferd : 2009-01-05 12:31 ID:yMRa74mu [Del]

Oooh should be made for iPod touch app sehr gut!

109 Name: Truckosaurus : 2009-01-18 19:02 ID:MaXGzHPp [Del]

Amazing game, I've been playing in the Klein bottle and... it made me realize how lousy my spatial vision is.

Anyway, this game is great in every detail: the evolution of the classic snake concept, the graphics, options, levels, the overall awesomeness factor... thank you so much for developing it.

But, if I had to point out an imperfection, it would be the application ICON. In my humble opinion, it doesn't do any justice to the stunning look of the game. If you know what I mean, there are lots of people out there who "judge books by their covers", and the corollary of that is that they also judge free games by their icons. I hope that you'll change the icon to reflect the graphic goodness of this game.

Bye, and I hope I didn't offend you in any way, my intention is good.

110 Name: HTYT : 2009-06-02 08:31 ID:57epNHth [Del]

it's like a wireframe version of snake. and very addictive!

111 Name: Boki : 2009-07-03 21:13 ID:ghF6acTE [Del]

This is one cool game! It's really fun to play! It may have been initially inspired by the classic worm game, but with the hunt mode on, it is an entirely different experience, nothing like the classic worm game!

Would it be possible to add a full screen menu option (Command+F)?

Also, a head/mouth for the space worm would make the character more interesting/believable.

What about anti-aliasing? I know, with the spinning action the game doesn't really need it, but the space worm does, as he is pixelated (when he turns).

The game also needs a Leopard sized icon.

112 Name: Boki : 2009-07-03 23:02 ID:ghF6acTE (Image: 0x0 icns, 358 kb) [Del]

And here's the Leopard-size icon! If you like it, download it and use it. Free to share, not to sell. The wireframe sphere is H3g3m0n's work, the icon is mine.

To replace the default icon for the game, (on Mac OS X) right click on the application and choose "Show Package Contents". Navigate into the Contents folder, then into the Resources folder. Copy and replace the swear.icns file. Done!

113 Name: Boki : 2009-07-03 23:20 ID:ghF6acTE [Del]

Whoops, that didn't work. Here:
http://www.filefront.com/13963723/swearicon.zip/
Click "Download".

114 Name: Anonymous : 2009-09-24 21:54 ID:6y6cf1QG [Del]

>>105
how about if i buy you an ipod touch?

115 Post deleted by user.

116 Name: Ivan !MacOSuWib2 : 2009-10-15 20:39 ID:N2krxthL [Del]

wow, this is a fun and addicting game. nice!

117 Name: Gman : 2010-02-16 16:38 ID:dNjL4Aah [Del]

!WAHa.06x36, it freezes on windows when I go through the surface intersection in the bottle. Maybe this can tell you where the bug lays.

118 Post deleted by moderator.

119 Name: Anonymous : 2010-02-17 21:00 ID:Heaven [Del]

>>118
oh god i hope i forget seeing that before i go to bed tonight. i really don't want to know what kind of nightmares that could cause.

120 Name: Ned999 : 2010-03-16 12:05 ID:uhoL+Qsk [Del]

Very nice game! Simple concept, simple -but awesome- graphics, challenging levels, and minimal resources used.. i absolutely love this

121 Name: MM : 2010-06-01 10:49 ID:8NXhGQLX [Del]

I've been doing a little work on a cross-platform SDL version in some bits and scraps of spare time. I'm using the OpenGL code to render the game, of course. But from here, I don't know whether I should be porting the old menu code or just hacking together a new menu. What's the origin/license of this menu code? I couldn't immediately tell. If it's legally unencumbered, I might think about porting it. I've already thrown together a little class to let me render the fonts...

122 Name: !WAHa.06x36 : 2010-06-01 15:11 ID:Heaven [Del]

>>121

Everything should be as free as it gets.

123 Name: MM : 2010-06-14 00:05 ID:8NXhGQLX (Image: 637x475 png, 170 kb) [Del]

src/1276499107178.png: 637x475, 170 kb

>>122

Great. With that in mind, this weekend I started porting the menu code over to SDL/OpenGL. It's not a beautiful job, but it is starting to work. Can always clean it up later. :)

WIP shot shows the main menu pretty much drawing.

124 Name: !WAHa.06x36 : 2010-06-14 10:25 ID:Heaven [Del]

>>123

Excellent.

125 Name: dm : 2010-07-14 13:59 ID:jQHlgQnf [Del]

by playing this game every day i will become a super genius

126 Name: Dax : 2010-07-22 09:54 ID:sox6RDUD [Del]

Where to put our highscores?

127 Post deleted by user.

128 Post deleted by user.

129 Name: Fire17 : 2010-12-22 07:07 ID:2kmO1i3j [Del]

AWESOME GAME!!! THX !WAHa.06x36 !!!
a friend of mine showed me this game a few years ago and it came across my mind when I looked up snake games in itunes...
it took me forever!!! but I found it :D

also the last maps (trefoil knot, mobius strip & twist, and Keiln bottle) immediately freeze when I run them.
running Win7 64 bit
any ideas?... cause they seem like the coolest levels...

and if you make an iphone app of this... i will buy it :D

130 Name: Anonymous : 2010-12-23 10:53 ID:Heaven [Del]

> also the last maps (trefoil knot, mobius strip & twist, and Keiln bottle) immediately freeze when I run them.
> running Win7 64 bit
> any ideas?... cause they seem like the coolest levels...

>>34,35,42-44,117

131 Name: Anonymous : 2010-12-30 12:10 ID:l4fbZQ/5 [Del]

>>105
>>114
Don't forget that in order to build an iPad/iPod/iPhone app, you'll need XCode. And to run XCode you'll need at least a Mac Mini. On top of that, you'll need a $30 (IIRC) developer license if you want to release the game commercially (don't know if you need it if you're not a corporation).

Also, I got it to compile but it gives a guru meditation error. I'm using Bazaar btw, if I get it to work I'll upload it somewhere so you can merge it.

132 Name: Anonymous : 2010-12-30 12:19 ID:l4fbZQ/5 [Del]

I'm havig trouble fixing it, load_datafile in main.cpp:59 returns NULL.

133 Name: Anonymous : 2010-12-30 12:22 ID:l4fbZQ/5 [Del]

Lol, had to get it from the Windows zip. It works now, though I'm keen to know how you made that file.

134 Name: Anonymous : 2010-12-30 13:41 ID:l4fbZQ/5 [Del]

These are the minimal changes for i586:

<code>=== modified file 'creatures.h'
--- creatures.h 2010-12-30 19:58:42 +0000
+++ creatures.h 2010-12-30 20:04:37 +0000
@@ -65,7 +65,7 @@
void place();
void live();
void draw();
- bool skittler::collide(const vector &other,const vector &other_normal);
+ bool collide(const vector &other,const vector &other_normal);

worm *w;

=== modified file 'lib/goa/allegro/misc.cpp'
--- lib/goa/allegro/misc.cpp 2010-12-30 19:58:42 +0000
+++ lib/goa/allegro/misc.cpp 2010-12-30 20:02:54 +0000
@@ -38,7 +38,7 @@
#endif
}

-#ifndef OS_MACOSX
+#ifdef OS_WINDOWS

static LPTOP_LEVEL_EXCEPTION_FILTER prevExceptionFilter = NULL;</code>

135 Name: Anonymous : 2010-12-30 13:42 ID:l4fbZQ/5 [Del]

Oops, it got screwed up. But you get the idea ;)

136 Name: MM : 2011-07-26 00:46 ID:8NXhGQLX [Del]

Just put in an hour or so on the SDL port after not having had time to mess with it for quite a while. Here's a reasonably complete work in progress Windows OpenGL version.

137 Name: MM : 2011-07-26 00:48 ID:8NXhGQLX [Del]

138 Name: Anonymous : 2011-07-26 14:02 ID:Heaven [Del]

>>136,137
nice... the worm is a bit hard to see sometimes, tho. it makes it really hard to play on the klein bottle. are you going to publish the source code? if so, it might convince me to finally get around to getting a version of this working for nintendo ds...

139 Name: !WAHa.06x36 : 2011-07-28 13:30 ID:Heaven [Del]

I should probably link this in this thread, too:

http://wakaba.c3.cx/sup/kareha.pl/1309988497/

140 Name: MM : 2011-07-28 18:31 ID:8NXhGQLX [Del]

>>139
Indeed. Really dig some of the new graphics modes, by the way!

>>138
Yeah. I think I may actually have messed up the blending modes a bit in the build in the zip file. My latest build changes that around a bit, adds ability to (partially) turn off antialiasing, and makes some of the line thickness selectable (so you can have a thick worm, for example). I'll be releasing the source at some point (or just making the repository public) if for no other reason than I'd like someone that isn't me to maintain a Debian package of it. :) It's kind of a mess, but such is life.

141 Name: MM : 2011-07-30 17:57 ID:8NXhGQLX (Image: 468x274 jpg, 44 kb) [Del]

src/1312073867168.jpg: 468x274, 44 kb

Incredibly buggy, but...

142 Name: Anonymous : 2011-08-05 14:46 ID:FpaX0hxg [Del]

>>141
now that's a game that could really take advantage of the 3d screen on my evo 3d!

143 Post deleted by moderator.

144 Post deleted by moderator.

145 Post deleted by moderator.

146 Name: Anonymous : 2011-08-25 15:22 ID:f9+weKSM [Del]

Man, this game is AWESOME! I know that you're not fixing bugs, but i just want to say that when i try 4d objects my game crashes. And btw, i have an amiga and im like oh my god! it's an amiga game!

147 Name: Anonymous : 2011-08-26 10:13 ID:f9+weKSM [Del]

Why is it called Swear?

148 Post deleted by moderator.

149 Name: Anonymous : 2011-12-21 19:42 ID:HXIN6Wg9 [Del]

Love It!

150 Name: Anonymous : 2013-01-28 19:18 ID:wgufy2yu [Del]

Such humble beginnings...

151 Name: Anonymous : 2013-03-05 11:16 ID:Mcvdenh2 [Del]

I still play this game. It's wonderful.

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification: