Search found 220 matches

by Tjakka5
Fri Apr 06, 2018 6:32 pm
Forum: Support and Development
Topic: My own format of files OR not
Replies: 7
Views: 219

Re: My own format of files OR not

Once you build your game the file will be hidden quite nicely.
Getting to it would already be a bit of work, and you're not going to be able to stop anybody who wants to find it with more hiding.
by Tjakka5
Sun Apr 01, 2018 11:34 am
Forum: Support and Development
Topic: Running inherited function with self as parameter.
Replies: 3
Views: 143

Re: Running inherited function with self as parameter.

Simply changing function Jammi:new(o) o = o or {} setmetatable(o, self) self.__index = self return o end to function Jammi:new(o) o = o or {} o.children = {} setmetatable(o, self) self.__index = self return o end should fix it. However, there's quite a few other things that don't seem quite right ab...
by Tjakka5
Tue Mar 20, 2018 10:24 am
Forum: Support and Development
Topic: Love2d selectively refusing to recognize my functions
Replies: 8
Views: 876

Re: Love2d selectively refusing to recognize my functions

You seem to be wanting to create a class, but have no functionality to let your object inherit the class's functions. One fix for it would be like this: timepiece = {} function timepiece:create () local object = {time = 1} -- Our object inherits the functions here object.increment = timepiece.increm...
by Tjakka5
Mon Feb 26, 2018 9:22 am
Forum: Support and Development
Topic: Should I use Delta Time?
Replies: 3
Views: 249

Re: Should I use Delta Time?

As someone with a 144hz monitor, I'd appreciate the game not to be capped at 60 FPS ;)

However, if you're certain your game will run 60fps at all times, theres no point in using delta time (Though I'd still suggest you learn how to work with it.)
by Tjakka5
Tue Feb 20, 2018 2:51 pm
Forum: Games and Creations
Topic: [LÖVE Jam 2018] PON'
Replies: 0
Views: 429

[LÖVE Jam 2018] PON'

For the Love Jam Positive07 and I made PON' together.
It is a juicy variation of Pong, with extra juice.
Did I mention there's juice?

Either way, you can download it here:
https://tjakka5.itch.io/pon
KM2ccE6.png
KM2ccE6.png (686.71 KiB) Viewed 429 times
by Tjakka5
Tue Feb 20, 2018 2:48 pm
Forum: General
Topic: LÖVE Jam 2018
Replies: 6
Views: 867

Re: LÖVE Jam 2018

Positive07 and I made PON' in the last few hours:
https://tjakka5.itch.io/pon

We worked on a different game the majority of the time, which we will keep developing.
by Tjakka5
Fri Feb 16, 2018 6:46 pm
Forum: Support and Development
Topic: Disable key repeat?
Replies: 22
Views: 1160

Re: Disable key repeat?

Sounds like a problems with your code, not with the limitations of the callbacks. Working around your problems will only cause more problems in the long run, so I'd suggest you fix them. Having multiple actions bound to one key is possible, but you must establish a priority. That is, if you press up...
by Tjakka5
Fri Feb 16, 2018 6:06 pm
Forum: Support and Development
Topic: Disable key repeat?
Replies: 22
Views: 1160

Re: Disable key repeat?

Because the best way is to just use keypressed / released

Code: Select all

function love.keypressed(key)
  if key == "up" then
    print("Enter the new room")
  end
end
And that will do exactly what you need it to.
by Tjakka5
Sat Feb 03, 2018 4:51 pm
Forum: Support and Development
Topic: Timer Value only decreases once.G
Replies: 5
Views: 346

Re: Timer Value only decreases once.G

It seems to me you come from a different language that supported references. If this is not the case, please mention it so I can redo my explanation. Variables can be global, or local to a scope (In loops, in functions, etc). Values passed to functions or defined to another variable are copied. The ...
by Tjakka5
Sat Feb 03, 2018 11:57 am
Forum: Support and Development
Topic: How are wiggle animations done?
Replies: 3
Views: 347

Re: How are wiggle animations done?

This effect can be achieved by shearing the sprite. love.graphics.draw last 2 optional arguments are 'kx' and 'ky'. For this particular effect, only kx should be increased / decreased. To see it in action you can try map it to a sine function. Do note that for it to look good you will have to put th...