Search found 51 matches
- Wed Jan 02, 2019 2:54 am
- Forum: General
- Topic: Add additional functionality to an instance of a class?
- Replies: 4
- Views: 4732
Re: Add additional functionality to an instance of a class?
Thanks again, St. Cosmo. I've made a few games and I didn't use OOP for them. I've been experimenting with the OOP and I can see why someone would think it's not that well suited to gamedev. That may be especially true for the type of games I'm making. I teach English in Brazil and I make games to k...
- Tue Jan 01, 2019 9:39 pm
- Forum: General
- Topic: Add additional functionality to an instance of a class?
- Replies: 4
- Views: 4732
Re: Add additional functionality to an instance of a class?
Thanks for your reply St. Cosmo. I’m inclined to follow the advice you give in the first paragraph, rather than try to do as you suggest in the rest of your reply, which seems unnecessarily complicated. I’ve actually been thinking about 2 options related to your first paragraph. One option is to cre...
- Tue Jan 01, 2019 7:16 pm
- Forum: General
- Topic: Add additional functionality to an instance of a class?
- Replies: 4
- Views: 4732
Add additional functionality to an instance of a class?
I’m not so sure I understand the usefulness of making classes (pseudo-classes). I’ve created a class called Shape (based on the video www.youtube.com/watch?v=KDXUE1enqXE). It takes 5 arguments: x, y, xSpeed, ySpeed and shapeMode (which is used to make the shape either “fill” or “line”). I didn’t inc...
- Tue Jan 01, 2019 6:44 pm
- Forum: General
- Topic: intensity of printing
- Replies: 4
- Views: 4308
Re: intensity of printing
Thanks pgimento.
Your reply is a bit over my head at my current level of knowledge of löve. At this time this is not a terribly important thing for me. Perhaps sometime in the future I'll revisit this topic and learn about shaders.
Your reply is a bit over my head at my current level of knowledge of löve. At this time this is not a terribly important thing for me. Perhaps sometime in the future I'll revisit this topic and learn about shaders.
- Mon Dec 31, 2018 12:57 pm
- Forum: General
- Topic: intensity of printing
- Replies: 4
- Views: 4308
intensity of printing
While experimenting I accidently printed two nearly identical strings ("test1" and "test2") in the same location. When I corrected this, it seemed as though the text of the two separate strings was not as intense/bright as when they overlapped. So I did a test. I printed the &quo...
- Sat Dec 29, 2018 2:16 pm
- Forum: General
- Topic: difference between ‘local Class = require("Class")’ and ‘require "Class"’?
- Replies: 2
- Views: 3319
difference between ‘local Class = require("Class")’ and ‘require "Class"’?
I've successfully created some basic games, so in my learning I'm now focusing more on details, refining and writing better, more efficient code. This may seem like a stupid question, but what's the difference between ‘local x = require("some_file")’ and ‘require "some_file"’ and...
- Fri Dec 28, 2018 8:49 pm
- Forum: General
- Topic: One big image vs multiple love.graphics.print type statements
- Replies: 3
- Views: 3341
Re: THANKS - One big image vs multiple love.graphics.print type statements
Thanks Darlex and zorg.
- Fri Dec 28, 2018 11:53 am
- Forum: General
- Topic: One big image vs multiple love.graphics.print type statements
- Replies: 3
- Views: 3341
One big image vs multiple love.graphics.print type statements
I was experimenting with löve’s print, rectangle, circle and draw functions. The attached screenshot is the result. I thought it looked kind of cool and I’m thinking of making something similar to use as a splash screen for my games. And I started wondering if it would be better if I create a single...
- Mon Dec 17, 2018 4:48 pm
- Forum: Support and Development
- Topic: tlfres cursor change works but click doesn’t
- Replies: 5
- Views: 3583
Re: tlfres cursor change works but click doesn’t
Thanks, grump. First, I moved the love.mousereleased callback to a position above the 3 primary löve functions (load, update and draw). Then I used the TLfres.getScale() function from TLfres to adjust the x and y coordinates. This seems to be working. The code is below. But this makes me wonder abou...
- Mon Dec 17, 2018 4:18 pm
- Forum: Support and Development
- Topic: tlfres cursor change works but click doesn’t
- Replies: 5
- Views: 3583
Re: tlfres cursor change works but click doesn’t
After looking more, I suspect that the problem is that is giving the original coordinates. I don't know how to make them adjust for this function like does for .
Code: Select all
love.mousereleased = function(x, y, button)
Code: Select all
TLfres.getMousePosition(width, height)
Code: Select all
TLfres.getMousePosition