I need a Tutor in Love2D (Solitaire)
I need a Tutor in Love2D (Solitaire)
Is there anyone here who is willing to teach me making a specific game (Solitaire) in Love2d by making a video tutorial for me? I will pay if we both agree with the price. You still own the videos and you can publish it anywhere.
Re: I need a Tutor in Love2D (Solitaire)
Really?
Wouldn't it be much easier if you just read/watch some general tutorials about Lua and LÖVE and then start to code solitaire on your own ? I mean if you want someone to show you how to code a finished solitaire game, where is the fun? Isn't fun the reason why people learn to code in general?
Wouldn't it be much easier if you just read/watch some general tutorials about Lua and LÖVE and then start to code solitaire on your own ? I mean if you want someone to show you how to code a finished solitaire game, where is the fun? Isn't fun the reason why people learn to code in general?
- zorg
- Party member
- Posts: 3470
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: I need a Tutor in Love2D (Solitaire)
While i have coded a card game called speed before (in Delphi 6 no less, which was kind of a nightmare compared to LÖVE and lua), i never coded solitaire, but i can tell you how i'd implement it:Do note that you can do it in many more different ways too, like you could forget the slots, and just on-the-fly mess with x,y positions of cards, and whether they are flipped or not, or you could store cards only as tables in the slots, having 3-parameter values of suit,value,flipped or something.
Also, there are variants like when you take 3 cards from the deck at once, or when the deck can't be flipped back after you went through all the cards.
Things like whether you can drag cards or just click them to select them are minute implementation details, though.
All this said, i'd recommend you reading the PIL, the [wiki]love[/wiki] wiki at least, and try doing it yourself. Money doesn't solve problems you know
Code: Select all
-- Data:
-- French cards, so we have 52 individual ones, 4 suites of 13 values.
-- 7 "slots" where you "work", 4 where you store the 4 suites, 1 where the deck you pull from is, and another where a card from the deck is revealed.
-- Functionality or Rules:
-- The cards have these increasing values: "A23456789JQK"
-- Drawing a card transfers it from the deck to the slot next to it, this is repeatable (and the deck will be reset when you get to the last card)
-- You can move only the top card in the 7 working slots, or flip it if it's not yet flipped; you can only move cards onto another if the current one is both a different color, and the value difference is one. You can only move a king to an empty space, should you have one.
- You can only incrementally place cards in the 4 upper slots
Also, there are variants like when you take 3 cards from the deck at once, or when the deck can't be flipped back after you went through all the cards.
Things like whether you can drag cards or just click them to select them are minute implementation details, though.
All this said, i'd recommend you reading the PIL, the [wiki]love[/wiki] wiki at least, and try doing it yourself. Money doesn't solve problems you know
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Who is online
Users browsing this forum: No registered users and 12 guests