Page 1 of 2

Cards. The game with no rules.

Posted: Tue Mar 16, 2010 10:29 pm
by ljdp
Cards.
Image

About:
Cards is a networked card game. Much like an online whiteboard, you're provided with
a blank canvas to play any card game you wish, with any amount of people.
Rather than develop many different card games or a card engine I decided it would be more
efficient to provide a whiteboard environment. After all, that's how it works in real life.

How to use:
Either start your own server or join someone else's. Joining a server is as simple as selecting
one from the automatically updated list.
Once joined you can right click for a context menu allowing you to create a new deck of cards
and some poker chips.
To move cards and chips click and drag.
Right click a card to flip it over.
You can drag and select multiple cards, with extra options to pile up, sort, shuffle, flip or delete the selected cards.
You can also control drag to 'lasso' around cards, akin to the lasso tool in Adobe Photoshop.
At the bottom of the window is an area that represents 'Your hand'. Any cards or objects placed here will be invisible to other players.

Things to come:
Extra objects such as chess pieces etc...
More server - client information, I.e chat, player names, avatars, etc...
Let me know any suggestions!

Download:
Currently hosted by GitHub.com, .

GitHub Link

Re: Cards. The game with no rules.

Posted: Wed Mar 17, 2010 4:47 am
by Fourex
I get the blue error screen... :cry:

Re: Cards. The game with no rules.

Posted: Wed Mar 17, 2010 6:54 am
by bartbes
And I know why, he messed up case in his requires.

EDIT: Okay, time for comments:
It looks pretty nice, there are a few things that would improve it though, first chatting with everyone, that would be cool. And second some kind of score counter (which you manually operate.)
I also want to know how you do the server list, I can't find the code..

Re: Cards. The game with no rules.

Posted: Wed Mar 17, 2010 10:26 am
by ljdp
Love only seems to care about the case once you zip it to .love. I did rename all the files to lowercase but git isn't updating that.

You can't find the code for the serverlist because that is done with php and mysql, it's a very simple php post and table insertion deletion.
game.lua line 228: http.request( self.settings.serverDatabase, 'mid=add' )
game.lua line 245: http.request( self.settings.serverDatabase, 'mid=rem' )

Edit:
Updated topic post with working download.

Re: Cards. The game with no rules.

Posted: Wed Mar 17, 2010 2:56 pm
by kalle2990
These graphics.. They make me happy :ultrahappy:

Re: Cards. The game with no rules.

Posted: Wed Mar 17, 2010 9:16 pm
by Robin
Nice. I had to modify it to make it work for me though (crappy computer).

Here's what I have for other people with crappy computers:
cardsx.love
(609.46 KiB) Downloaded 313 times
I only found a few issues:
  1. There is no clear distinction between what is on the table and what is in the hand: I can't see whether other people can see the card.
  2. I have some difficulty with the selection. Especially cards in my hand. Try selecting multiple cards in the hand, and shuffling them.
  3. The window is a bit large: I have 1280x800, but that's not particularly small. Try to find a size that is not too large for many people.
  4. That setMode is best replaced with a conf.lua file. You can use that to set the window title as well. ;)

Re: Cards. The game with no rules.

Posted: Wed Mar 17, 2010 10:00 pm
by ljdp
Thanks for the feedback Bartbes and Robin.

Changelog:
Added conf.lua for screen size and title name,
Visual feedback when making and quitting a server,
Cards now pile horizontally to fit the 'hand' area,
Right click menu's no longer open outside of window,
Server list now pings each server to check it's online.

If anyone is interesting in joining this project to help with the graphics or
extra features such as chat, player names etc let me know.

Re: Cards. The game with no rules.

Posted: Thu Mar 18, 2010 6:17 am
by nevon
Robin wrote:Here's what I have for other people with crappy computers:
cardsx.love
I think you missed the Goo directory. I'm getting a bunch of errors when I try to run it.

As for the game, I wasn't able to play it. I couldn pretty much just see a white screen and the text: "Your hand" (this is after joining or starting a game). So either I was too dumb to figure out how to play it, or it wasn't working for me.

Re: Cards. The game with no rules.

Posted: Thu Mar 18, 2010 6:30 am
by ljdp
ljdp wrote:You can right click for a context menu allowing you to create a new deck of cards
and some poker chips.
That should work.

Re: Cards. The game with no rules.

Posted: Thu Mar 18, 2010 7:46 am
by matthewburk
This is cool. Good job.