Topic:   The GMG Cup!   (Read 280395 times)


0 Members and 3 Guests are viewing this topic.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: The GMG Cup!
« Reply #75 on: December 13, 2010, 11:26:14 AM »
Sure. I've never attempted a 3D game, but I reckon it's fairly straightforward. Read the grid map variable every time the player moves and assign the appropriate sprite to the corresponding object?

I'll try to code a bit tonight.
I survived the spammage of 2007

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: The GMG Cup!
« Reply #76 on: December 13, 2010, 12:36:35 PM »
A 3D game? This will be very cool if it works out, good luck Silverwind!

ALSO I'm thinking about doing a point-and click game, perhaps escaping a dungeon type area, not necessarily called Dungeon Escape but it would be like that project. I decided to finish the point-and-click engine since I'm having so much trouble with my arcade game (All I figured out was adding mouse control was very difficult and arrows were not supported) .
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

WarHampster


  • GMG Extraordinaire

  • ***


  • Posts: 1501

  • The People's Moderator
    • Arcade of the Absurd
Re: The GMG Cup!
« Reply #77 on: December 13, 2010, 04:07:28 PM »
Quote
Sure. I've never attempted a 3D game, but I reckon it's fairly straightforward. Read the grid map variable every time the player moves and assign the appropriate sprite to the corresponding object?

Oh... I thought you were going to try to write a raycaster. Does GM have pixel or line drawing commands? If so it's possible.

Charlo


  • GMG-er

  • **


  • Posts: 451
Re: The GMG Cup!
« Reply #78 on: December 13, 2010, 04:10:43 PM »
Quote

Oh... I thought you were going to try to write a raycaster. Does GM have pixel or line drawing commands? If so it's possible.
There are no drawing commands in GM like there are in SC.  A 3D game would have to be done hand-drawn (like I did with The Maze II) or with sprites (like Tireas Dragon did with Labyrinth).  Sprites wouldn't be too hard but if I remember correctly, Labyrinth was a pretty laggy game.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: The GMG Cup!
« Reply #79 on: December 13, 2010, 06:35:56 PM »
Quote
Oh... I thought you were going to try to write a raycaster. Does GM have pixel or line drawing commands? If so it's possible.
Nope. I'm using a sprite based display similar to that of Labyrinth, as Charlo pointed out.

Quote
Sprites wouldn't be too hard but if I remember correctly, Labyrinth was a pretty laggy game.
Your memory fails you; it was a horribly laggy game! Mine will be several times worse though, as I want to display 15 tiles simultaneously, whereas Labyrinth only used 12 (I think).

I just feel like a challenge and trying something new. :) The hard part will be condensing the code.
« Last Edit: December 13, 2010, 06:37:11 PM by Silverwind »
I survived the spammage of 2007

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: The GMG Cup!
« Reply #80 on: December 13, 2010, 07:34:22 PM »
45 minutes and a cup of tea later, here's a pic generated straight from GM:



Using this grid map:

Code: [Select]
001
100
001
100
001

The only trouble I've come across so far is having to write a different value extraction routine for each direction the player might be facing, but I remember TD having problems with that too (and he actually resorted to using four map variables). Hopefully I'll get to finish the engine off tomorrow, and then I can make a start on the floor/wall textures.
« Last Edit: December 13, 2010, 07:38:41 PM by Silverwind »
I survived the spammage of 2007

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: The GMG Cup!
« Reply #81 on: December 13, 2010, 08:11:02 PM »
I don't remember having to use four map variables for labyrinth. I remember having a variable for every wall though and a bunch of other things. In the end I had a nice game, albeit very laggy, but nice.
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Charlo


  • GMG-er

  • **


  • Posts: 451
Re: The GMG Cup!
« Reply #82 on: December 13, 2010, 09:31:46 PM »
Quote
45 minutes and a cup of tea later, here's a pic generated straight from GM:



Using this grid map:

Code: [Select]
001
100
001
100
001

The only trouble I've come across so far is having to write a different value extraction routine for each direction the player might be facing, but I remember TD having problems with that too (and he actually resorted to using four map variables). Hopefully I'll get to finish the engine off tomorrow, and then I can make a start on the floor/wall textures.
Cool.  I suggest making a game with that exact graphic style and color scheme, it would be pretty surreal.

Maybe it seems easy because I haven't tried it, but to account for the player facing a different direction, couldn't you just write an algorithm to twist the entire map variable?  

On second thought, that doesn't seem easy at all. :/

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: The GMG Cup!
« Reply #83 on: December 13, 2010, 10:17:57 PM »
Well lets see maybe you could twist the entire map variable.
Seems to me it wouldn't be too hard

Assuming your grid is 7*7

newgrid$ = ""
y = 8
x = 1
temp = 0
REPEAT 49
  y = y - 1
  IF y = 0 THEN
    y = 7
    x = x + 1
  END IF
  temp = x * 7
  temp = x - 7
  temp = temp + y
  temp$ = MID$ oldgrid$ temp 1
  newgrid$ = newgrid$ + temp$
END REPEAT

That might work I haven't tested it and I haven't used GM in a long time. If it does work it would change
0110120
0101001
1010010
1001011  
1001010
1001010
1111111
into
1111100
1000011
1000101
1111010
1000001
1111102
1001010
well that rotates 90 degrees clockwise.
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: The GMG Cup!
« Reply #84 on: December 15, 2010, 07:33:56 PM »
Finito! http://www.mediafire.com/?1lgb10pjay4a14c

It works perfectly with hardly any lag, although it might become more noticeable with larger graphic files. I wonder why it runs so much faster than Labyrinth? I've included the source for all to use. I can't wait to make a simple game with this! :D

EDIT:

Here's a map of the test dungeon:



You start in the top left corner.
« Last Edit: December 15, 2010, 07:35:09 PM by Silverwind »
I survived the spammage of 2007

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: The GMG Cup!
« Reply #85 on: December 15, 2010, 07:39:59 PM »
Quote
I don't remember having to use four map variables for labyrinth. I remember having a variable for every wall though and a bunch of other things.
Oh, I must be mistaken. I thought you had used one for each direction.

Quote
In the end I had a nice game, albeit very laggy, but nice.
Yeah, Labyrinth is one of the greatest feats ever accomplished in GM! :D
I survived the spammage of 2007

WarHampster


  • GMG Extraordinaire

  • ***


  • Posts: 1501

  • The People's Moderator
    • Arcade of the Absurd
Re: The GMG Cup!
« Reply #86 on: December 15, 2010, 07:56:30 PM »
Nice! I expect to see an old-school dungeon crawler for the contest  ;D

BTW I think I've played Labyrinth but I don't really remember. Where can I download it?
« Last Edit: December 15, 2010, 07:58:15 PM by WarHampster »

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: The GMG Cup!
« Reply #87 on: December 15, 2010, 08:08:21 PM »
There's a link in the game downloads section. I can't get past the fiendish second dungeon! ;D
I survived the spammage of 2007

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: The GMG Cup!
« Reply #88 on: December 15, 2010, 09:44:59 PM »
Are you referring to the fight with the first monster? I didn't think he was that tough.

P.S. Very nice game.
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: The GMG Cup!
« Reply #89 on: December 16, 2010, 12:52:59 AM »
Oh, maybe it's the third dungeon I'm thinking of. The one with all the spinners.
I survived the spammage of 2007