More getting my GM on

Posted by Toon-Master on Nov. 11, 2006, 10:22 a.m.

—————————————————–

Get my Game Maker On - Card Engine

—————————————————–

Hey, I had this crazy card game idea using plain cards. I wanted to see if I could actually make a card engine so I did an example of a Blackjack game (because it seemed easy to make).

Here's a screenshot:

As you can see, I was just using the sprites from the GM resources and simple graphics. And I won lol.

What did I do?

To be honest I got lucky because I had no plan on it. I made a object that just hold the value of the card and used a bunch of variables to make this card unique. It'll probably slow down if I had all the card instances in a room, but then again whos going to use 52 cards at once? Maybe a 52 pick up lol.

And then I chucked in some global variables like how many cards were left or a array deck and such.

Yep that was the card engine. Of course I throw down some scripts too. This was such as flip card, shuffle, restore deck, draw card and move card.

And that was the easy part I thought. The programming the rules is the tough part. I programmed a blackjack one. Simple rules get 21, ace can be 1 or 11, etc etc. I even added a money system with betting which was just optional lol. And added a External Music changer, if you hated the Sonic Advance - Casino Paradise Act 1 music lol or better yet, no music. All these information were stored in a text file using 39dll's utility functions. I could of used GML, but I used 39dll incase I was going to do online?

To actually programmed the rules I had to add bunch of variables to tell this etc. And scripts that just used my card scripts.

Thanks to my friend Elite Pirate for the BG and card back design.

Anyway you can get all that in the Close Words in this blog.

——————————–

College Adventures

——————————–

I want a new computer! I can't play many GM6 games with it or feel the need to try so many awsome stuff.

Friday my lecturer build a very good computer. He added too much powerful stuff so he could run a Game and a Movie at the same time (crazy).

I wanted to test it. The lecturer asked me for a Demo game that uses a lot of resources. Download speed was too slow ATM, so I just downloaded a Game Maker game I never got to try. So I just picked Hover Tank 3D and messed it around (suck at it) and had a movie up too (2 monitors connected together like a extended screen). Then he added another monitor to make three. I didn't know what to put there so I wanted to try the Pheonix_L3S (Create an EXE from home) on it. And I did :P it ran slow though because HT3D was there. But without it it was at 380 (Average) FPS. I also wanted to test it on another computer and it ran at 60 FPS (average). Big difference and then the lecturer called it a "Diagnostic Tool" (WTF). I said no but he said it still is, and he embarass me by testing the Pheonix_L3S on ever computer <_<. And then he invited the other classes to see me playing on the "super computer". And also invited the lecturers, and they took a picture of me playing HT3D with Pheonix_L3S and some Movie playing… They were talking about a new course where the project is to build a computer and I think I'm in some sort of advertisement on playing a computer…

If you think the test is over, I got to do a write up on some computers (some RAM slots out and in etc) using Pheonix_L3S lol. I think it's going to be funny, but at least you get to know if the computers handle surfaces and the GM speed I guess.

Oh yeah, some kids said Hovertank was bad (they never heard but didn't like it). I said, meh because it looked excellent for first play. And if I get myself in some TAFE college ad of this new course, at least you get to see Pheonix_L3S and Hovertank in it I guess (if you live in WA Perth Australia).

————————–

Closing words:

————————–

Download: Card Engine Example - BJ

Short blog? Bugs, probably <_< I already took the ones I know and they are fixed heeheehee.

Enjoy,

- Toon-Master

EDIT: It seems SodaHertz wants my Blackjack game to be online and work with SodaHertz for points. I accept the challange :)

Heh, another bug… Well I intercepted it and fixed it. It's reuploaded :). The bug was when you start with 2 aces you get 22. I forgot to put a checker for the first two cards <_<.

Please check some bugs too ;)

Comments

Flea1991 18 years, 1 month ago

Wow, that's a very smooth system. :)

KaBob799 18 years, 1 month ago

My current assignment in computer science class is to program blackjack o.0

Toon-Master 18 years, 1 month ago

Feel free to use the code if you want or benefit the ideas of it? It could be better though.

- Toon-Master

DevonX 18 years, 1 month ago

Wow, that was nice.

OL 18 years, 1 month ago

Quote:
Oh yeah, some kids said Hovertank was bad (they never heard but didn't like it). I said, meh because it looked excellent for first play.

Heh, and yet if they used GM they'd think it was amazing ;)

NeutralReiddHotel 18 years, 1 month ago

Pretty. :o

Adventus 18 years, 1 month ago

Wow, Free L3S advertising. XD

Nice card game, Very nifty how your shuffling the deck by just swapping the cards positions around.

poultry 18 years, 1 month ago

:O pai.

Toon-Master 18 years, 1 month ago

Quote:
Heh, and yet if they used GM they'd think it was amazing ;)

Yep no doubt, that's another reason to like it.

Quote:
Wow, Free L3S advertising. XD

Nice card game, Very nifty how your shuffling the deck by just swapping the cards positions around.

Haha yeah.

The shuffle was a simple idea. I think it worked effectively though :).

To the others that gave me comments to the game, thanks.

I better neaten up some code because like I said I got lucky lol. Looks like I'm ready for my new Plain Card Game.

Thanks all,

- Toon-Master