Search found 403 matches

by HugoBDesigner
Mon Mar 31, 2014 2:21 pm
Forum: Support and Development
Topic: Small Useful Functions
Replies: 127
Views: 53405

Small Useful Functions

(Just renamed the thread to make it more "accurate") So, I was going to ask help with a small project that uses rectangles with rounded corners. I fixed them, and now I want to share it with you guys. To make it so I haven't made a whole new thread just for it, I'm going to post also a fu...
by HugoBDesigner
Thu Mar 27, 2014 3:46 pm
Forum: Support and Development
Topic: Trying to make a Tetris clone
Replies: 2
Views: 1109

Re: Trying to make a Tetris clone

I tested it, and it is working, in fact. You just made the grid too big or the screen too small, so the block in 1x20 is drawn out of the window.
You'd have to either set the screen to 640x640 or set the grid size to 10x18 :)
by HugoBDesigner
Tue Mar 25, 2014 12:48 am
Forum: Games and Creations
Topic: [v1.1] Block Pusher
Replies: 5
Views: 3784

Re: [v1.1] Block Pusher

Nice Game Hugo! The game works fine with LOVE 0.9.0 Like kikito said the game should keep track of the steps and maybe time too. Also I like the fact that the game saves your progress in a level. Thanks, Alesan! Yes, I thought it'd be cool to save the game EXACTLY like you left it... Oh, and I alre...
by HugoBDesigner
Mon Mar 24, 2014 2:49 pm
Forum: Games and Creations
Topic: [v1.1] Block Pusher
Replies: 5
Views: 3784

Re: [v1.1] Block Pusher

I remembered of a game I used to play a LOOONG time ago, but now I don't remember it. That game is called sokoban . Your game is a good rendition. Some comments: * A score showing the "resolved in XXX steps" next to each level might make it more replayable. * I would like to be able to &q...
by HugoBDesigner
Mon Mar 24, 2014 12:03 pm
Forum: Games and Creations
Topic: [v1.1] Block Pusher
Replies: 5
Views: 3784

Re: [v1.1] Block Pusher

So, just updated it. Fixed a bug with the menu selection, and added my personal intro - for the first time in one of my games, even though I have it done for a veeery long time :)

EDIT: Also added a level display at the top-right corner...
by HugoBDesigner
Mon Mar 24, 2014 9:31 am
Forum: Games and Creations
Topic: [v1.1] Block Pusher
Replies: 5
Views: 3784

[v1.1] Block Pusher

Hello again, guys! So, I was playing around with some stuff, and decided to make this minigame just to test my skills. I remembered of a game I used to play a LOOONG time ago, but now I don't remember it. Then I thought: "Hey, why not just recreate it?", and so I did. I also added a new bl...
by HugoBDesigner
Mon Mar 24, 2014 6:31 am
Forum: Support and Development
Topic: input text
Replies: 3
Views: 2094

Re: input text

Okay, I'll try to simplify it: The ( unicode > 31 and unicode < 127 ) checks if the code of the char you're using fits UTF-8, because those are the only chars Lua supports. It was probably added to avoid crashes on the game. Although I'm not entirely sure if all these chars are included only between...
by HugoBDesigner
Mon Mar 24, 2014 6:20 am
Forum: Support and Development
Topic: filesystem.newFile????
Replies: 17
Views: 10222

Re: filesystem.newFile????

Omg thank you so much i tried to fix it and didn't know where the problem was i am able now to save even X,Y pos question will this work if i want to save tables? or many tables? or do i need another way ???? and thank you for your reply great forum.. :) You're welcome! Saving tables IS possible, b...
by HugoBDesigner
Sun Mar 23, 2014 8:59 pm
Forum: Support and Development
Topic: filesystem.newFile????
Replies: 17
Views: 10222

Re: filesystem.newFile????

Found your problem: while reading the file, you were making this: a.movestate = tonumber(a.movestate) But "a.movestate" is not a number variable, but a direction variable ("left", "right", "up" and "down"). If you remove the line above, it works. Whe...
by HugoBDesigner
Sun Mar 23, 2014 4:52 am
Forum: General
Topic: How do I display an image for a longer time?
Replies: 3
Views: 2353

Re: How do I display an image for a longer time?

You could replace the "correct" value by a number: if [something that triggers the correct] then correct = [number of seconds] end And in love.update you add in this: if correct > 0 then correct = correct - dt end and in love.draw: if correct > 0 then love.graphics.setColor(255,255,255,255...