Allegro.cc - Online Community

Allegro.cc Forums » The Depot » Snaek Perviarw~

This thread is locked; no one can reply to it. rss feed Print
 1   2 
Snaek Perviarw~
X-G
Member #856
December 2000
avatar

It seems puzzle games are very popular recently. Well, here's my equivalent of the cakeass thread. Not endorsed by 23yrold3yrold or Canada in general.

Ever played Puyo Puyo? Or perhaps one of its western ports, Dr Robotnik's Mean Bean Machine or Kirby's Avalanche?

Well, here's a little remake of that I'm making. In the future, it will feature hot-seat as well as networked multiplayer mode, but for now there's just endless practice mode. Combos and chains both work, but the "next" fields are kinda empty. Don't try to use the Host Game or Join Game menu options.

Anyway, test it out, and tell me if (when) you find bugs. :P

Controls: Cursor keys to move around, X/C to rotate. O queues up a bunch of ojama blobs for you (for testing purposes).

Runs in windowed mode by default, but if you pass "-fs" as a command-line argument, it will run fullscreen instead.

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

Frank Drebin
Member #2,987
December 2002
avatar

MiquelFire
Member #3,110
January 2003
avatar

The broken cookie said:

Runs in fullscreen by default, but if you pass "-fs" as a command-line argument, it will run fullscreen instead.

Err... what?

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red
If anyone is of the opinion that there is no systemic racism in America, they're either blind, stupid, or racist too. ~Edgar Reynaldo

X-G
Member #856
December 2000
avatar

Eugh, runs in WINDOWED by default. edits

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

Fladimir da Gorf
Member #1,565
October 2001
avatar

Hahaha! Got rid of all of 'em! See the screenshot. Took about 15 minutes of playing though... always when I got rid of a color it reappeared. But still, victory! (in my rankings)

OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori)

X-G
Member #856
December 2000
avatar

Hehe ... in the original, you get a bonus if you clear the well in two-player mode - extra ojama for the enemy! ;)

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

Mars
Member #971
February 2001
avatar

I really like it. Although I've never played any other version of this game I imagine it would be a lot of fun. I love the sprites -- you own creations, I suppose?

I found the controls a bit impractical: Often I only intended to send one key press, which however where interpreted as two, thus sending the blobs exactly where they shouldn't be.

--
This posting is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.

23yrold3yrold
Member #1,134
March 2001
avatar

Good beginning. I'm not as fond of that kind of game as I am of Tetris Attack (or even Super Puzzle Fighter, which is very similar to this), but it plays really well. I saw the point bonuses for chains and combos in there :) Really, good job 8-)

Quote:

Often I only intended to send one key press, which however where interpreted as two, thus sending the blobs exactly where they shouldn't be.

Seconded ...

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

X-G
Member #856
December 2000
avatar

Yes, the repeat timing for the controls need to be tweaked - but it's just modifying two #defines in a header so I'm not exactly prioritizing that right now. :P

And yes, the sprites are mine.

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

DanielH
Member #934
January 2001
avatar

It was good, except I think that when two blobs are connected, they should stay connected. When a blob is cleared underneath a connected blob it becomes deconnected and falls.

X-G
Member #856
December 2000
avatar

DanielH: That's how the original works. That's part of the point - you can chain up some massive combos/chains that way. :P

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

Ultio
Member #1,336
April 2001

Hmm. Crashes when I hit enter at the menu screen on the practice mode. It was running in Windowed Mode. No real idea what might have caused it to crash. I ran it while on a WinME machine. Ahh! I want to play! Tell me what's wrong!?

---
"It's nice knowing that someday, the software I write will just be pirated by millions of people." :-/
http://loomsoft.net | Zep's Dreamland | Allegro Newbie Tutorials

X-G
Member #856
December 2000
avatar

I have ABSOLUTELY no idea. Did you try fullscreen?

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

Ultio
Member #1,336
April 2001

Same thing happens in fullscreen... hmm... I did have to download the allegro dll, and I downloaded the plain dll distribution from alleg.cc. I think it may be newer than yours? Maybe it broke something? I highly doubt it, but you never know.

---
"It's nice knowing that someday, the software I write will just be pirated by millions of people." :-/
http://loomsoft.net | Zep's Dreamland | Allegro Newbie Tutorials

X-G
Member #856
December 2000
avatar

I have Allegro 4.0.3 ... there could be a number of things going wrong here, but I suspect it may have something to do with the socket module (as always) ... what kind of crash was it? Segfault?

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

aybabtu
Member #2,891
November 2002

X-G: I run it, and the title screen pops up, but then if I hit a key or anything...it blows up! :P

X-G
Member #856
December 2000
avatar

If you hit a key? WTF? I can see no reason why it would do that. Anyone have any clues? The menu function looks like this:

1void menu()
2{
3 bool qgame = false;
4 int cmark = 0;
5 BITMAP *bg = load_bitmap("bg2.bmp", NULL);
6
7
8 while (!qgame)
9 {
10 clear(d_buf);
11 drawing_mode(DRAW_MODE_COPY_PATTERN, bg, ticker/3, ticker/3);
12 rectfill(d_buf, 0, 0, d_buf->w, d_buf->h, 0);
13
14 drawing_mode(DRAW_MODE_TRANS, 0, 0, 0);
15 set_trans_blender(0, 0, 0, 64);
16 rectfill(d_buf, 85, 56 + cmark * 20, 235, 73 + cmark * 20, makecol(0, 0, 0));
17 solid_mode();
18
19 shadow_textout_centre(d_buf, g_font, "Practice", 160, 61, makecol(255, 255, 255), makecol(32, 32, 32));
20 shadow_textout_centre(d_buf, g_font, "Host Game", 160, 81, makecol(255, 255, 255), makecol(32, 32, 32));
21 shadow_textout_centre(d_buf, g_font, "Join Game", 160, 101, makecol(255, 255, 255), makecol(32, 32, 32));
22 shadow_textout_centre(d_buf, g_font, "Quit", 160, 121, makecol(255, 255, 255), makecol(32, 32, 32));
23
24 masked_blit(g_gfx, d_buf, 0, 0, 90, 57 + cmark * 20, 16, 16);
25 masked_blit(g_gfx, d_buf, 0, 0, 214, 57 + cmark * 20, 16, 16);
26
27 copybuf();
28
29 while (g_time > 0)
30 {
31 g_time --;
32 ticker ++;
33 
34 if (keypressed())
35 {
36 int k = readkey();
37
38 if ((k >> 8) == KEY_ESC)
39 qgame = true;
40 if ((k >> 8) == KEY_DOWN)
41 cmark ++;
42 if ((k >> 8) == KEY_UP)
43 cmark --;
44
45 if ((k >> 8) == KEY_ENTER)
46 {
47 if (cmark == 0)
48 practice();
49 qgame = true;
50 }
51 }
52
53 while (cmark < 0)
54 cmark += 4;
55 while (cmark > 3)
56 cmark -= 4;
57 }
58 }
59}

I know it's crap, but it's more of a placeholder than anything else right now.

Oh, and by the way: Does the background scroll? It should.

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

Ultio
Member #1,336
April 2001

Background scrolls. I can hit up and down and it moves fine. Just closes itself without any error message or anything when I hit enter while the Practice mode is selected.

---
"It's nice knowing that someday, the software I write will just be pirated by millions of people." :-/
http://loomsoft.net | Zep's Dreamland | Allegro Newbie Tutorials

X-G
Member #856
December 2000
avatar

Ultio and people who had problems - I added some debug messages to points where it can just return mysteriously. Try the attached version (which also has a chain display bar, btw ;))

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

Ultio
Member #1,336
April 2001

Not much helpful. Now all I get is a useless information window instead of the program just crashing. "Tt has caused an error in TT.EXE. Tt wll now close."

:) Tried to hit the debug button and then realized that the MSVC installed on the computer has been removed. Sorry, I couldn't give you any more information!

---
"It's nice knowing that someday, the software I write will just be pirated by millions of people." :-/
http://loomsoft.net | Zep's Dreamland | Allegro Newbie Tutorials

Carrus85
Member #2,633
August 2002
avatar

I would test it, but I

A) Am running linux, so I cannot run the supplied binary
B) Cannot recompile the program for linux because the source is not supplied.

Sorry

X-G
Member #856
December 2000
avatar

I fully intend to both release source and linux binaries in time. I run linux normally - but more people use Windows around here, so I'm more likely to get responses if I supply Windows binaries. :P

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

Carrus85
Member #2,633
August 2002
avatar

True...

I really don't see why more people just use linux. After all, it is much more programmer friendly, not to mention highly customizable. If you know what you are doing you can configure wine to run most of your MS applications, and you can just have a small windows partition for all of those "Must have" proprietary games.

X-G
Member #856
December 2000
avatar

Indeed. I use linux normally - I don't really know why I chose to start this project in Windows. I'm in Windows now, mainly because I'm technically at a LAN. :P

--
Since 2008-Jun-18, democracy in Sweden is dead. | 悪霊退散!悪霊退散!怨霊、物の怪、困った時は ドーマン!セーマン!ドーマン!セーマン! 直ぐに呼びましょう陰陽師レッツゴー!

aybabtu
Member #2,891
November 2002

{"name":"blar2.gif","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/f\/7f4f55236ef846231ce7ff2f2cbac2e6.gif","w":427,"h":275,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/f\/7f4f55236ef846231ce7ff2f2cbac2e6"}blar2.gif
:P

 1   2 


Go to: