Search found 19 matches

by DrCicero
Tue Oct 28, 2014 9:14 pm
Forum: Games and Creations
Topic: Warlock's Tower (RELEASED!)
Replies: 30
Views: 30050

Re: Warlock's Tower - A Movement Puzzle

If you can build complex levels out of simple rules everyone understands, then its a good game. Nice!
by DrCicero
Sat Jun 28, 2014 6:10 pm
Forum: Support and Development
Topic: How do I change card graphic?
Replies: 13
Views: 10216

Re: How do I change card graphic?

There are exactly four comparison to be done, so you need one loop which runs four times. local dirs = { nAtk = {"sAtk", 0, -1}, eAtk = {"wAtk", 1, 0}, sAtk = {"eAtk", 0, 1}, wAtk = {"eAtk", -1, 0}, } function compareCardValues() print("COMPARE: cardSelec...
by DrCicero
Mon Jun 16, 2014 7:46 pm
Forum: Support and Development
Topic: How do I change card graphic?
Replies: 13
Views: 10216

Re: How do I change card graphic?

Oh, yes! The error is in the following lines: (the placement of the spots) spots = {} for i=1,9 do spots[i] = Cardspot:new("fancy", 0, 0, 0, 0) spots[i].x = 220 + (i%3)*130 spots[i].y = 120 + math.floor(i/3)*150 end Do you know the modulo operator %? I used it for the x property. 0%3 = 0; ...
by DrCicero
Sun Jun 15, 2014 4:53 pm
Forum: Support and Development
Topic: How do I change card graphic?
Replies: 13
Views: 10216

Re: How do I change card graphic?

Oh, i'm sorry. I looked at your old code and saw, that those variables (playerHand, enemyHand) were never supposed to be drawn :roll: So just remove those 6 lines. Or do it with even less code: function love.draw() love.graphics.draw(bg, 0, 0) for _, array in ipairs({s, spots, playercardsOnTable, en...
by DrCicero
Sat Jun 14, 2014 7:10 pm
Forum: Support and Development
Topic: How do I change card graphic?
Replies: 13
Views: 10216

Re: How do I change card graphic?

If i understand that game correctly, the atk never changes and only depends on the type of the card. So you could have a associative array that is indexed by the type of card and gives you the Atk values of all four directions: local cardTemplates = { bitebug = {5,1,3,3}, blobra = {5,2,3,1}, bloodso...
by DrCicero
Thu Jun 12, 2014 3:31 pm
Forum: Support and Development
Topic: Night effect
Replies: 8
Views: 4529

Re: Night effect

Well, what is the difference between night and day in real life? :rofl: The light/shadow. Typically at nighttime there is less light and so everything is darker. So simple draw a black rectangle over the screen, while changing the alpha value according to the time: love.graphics.setColor(0,0,0, (sin...
by DrCicero
Tue Jun 10, 2014 9:11 am
Forum: Games and Creations
Topic: Xeldas Saga (Short Action-Platformer)
Replies: 11
Views: 9693

Re: Xeldas Saga (Short Action-Platformer)

Did you get the error immediately on starting? I guess old savefiles produce the error. You can either delete the savefiles in the "Xeldas Saga" directory in the love directory: Windows XP: C:\Documents and Settings\user\Application Data\LOVE\ or %appdata%\LOVE\ Windows Vista and 7: C:\Use...
by DrCicero
Sun Jun 08, 2014 10:30 am
Forum: Games and Creations
Topic: Food Eater
Replies: 5
Views: 2849

Re: Food Eater

Nice game, but it is kind of mean, that the left red block start already in the screen, while right ones start outside of the screen. Also you made a typo in the help: "lies" -> "lives". ;)
by DrCicero
Fri Jun 06, 2014 2:51 pm
Forum: Games and Creations
Topic: Xeldas Saga (Short Action-Platformer)
Replies: 11
Views: 9693

Re: Xeldas Saga (Short Action-Platformer)

Independent of using vsync or not the framerate is always 60 fps on my netbook... I thought löve does that automatically!? Do i have to use a custom love.run if i want to have a maximal framerate? :huh: Edit : now (for v0.2) i use the 0.9.1 love.run from the wiki and replaced sleep with the followin...
by DrCicero
Fri Jun 06, 2014 1:33 am
Forum: Support and Development
Topic: How do I change card graphic?
Replies: 13
Views: 10216

Re: How do I change card graphic?

Actually im not sure why the images are not updated. However your code is quite a mess ;) A simple indicator that your making yourself too much work is when you start naming variables with indices. Remember to stay DRY (Dont repeat yourself), much code you wrote is simply copy-pasted 10 times in a r...