Search found 243 matches

by Tjakka5
Thu Feb 01, 2018 12:03 pm
Forum: Support and Development
Topic: Bump.lua - how to change or display collision box?
Replies: 21
Views: 12802

Re: Bump.lua - how to change or display collision box?

You can use 'world:update(item, x,y,<w>,<h>)' to set position and dimensions without collision detection. For displaying the bounding boxes you can use 'world:getItems()' and 'world:getRect(item)': local items, len = world:getItems() for i = 1, len do local x, y, w, h = world:getRect(items[i]) love....
by Tjakka5
Sun Jan 28, 2018 10:07 am
Forum: General
Topic: Hot reload plugin that actually works?
Replies: 49
Views: 30318

Re: Hot reload plugin that actually works?

Corona doesn't do real "hot-reload". When you save a file, it just re-builds automatically the project from scratch. Hot-reload of assets and code while the game is playing is much more difficult to handle. A good working example is Defold (which also has a lua debugger in its editor). ww...
by Tjakka5
Sat Jan 20, 2018 9:00 pm
Forum: General
Topic: Movement - move the player AND the world?
Replies: 10
Views: 7953

Re: Movement - move the player AND the world?

Are you following the player with the camera?

Code: Select all

function love.update(dt)
    camera:update(dt)
    camera:follow(player.x, player.y)
end
by Tjakka5
Thu Jan 11, 2018 6:48 pm
Forum: Ports
Topic: I made an alarm clock that I want to expand it to a TV
Replies: 2
Views: 21553

Re: I made an alarm clock that I want to expand it to a TV

The easiest way would be to get a Raspberry Pi along with a cheap usb keypad from China or something. Then you can put the project on there and run it, and you just need to connect it to a display that supports HDMI. This can be a cheap monitor or a screen specifically for the Pi. Do note that such ...
by Tjakka5
Thu Dec 21, 2017 12:21 pm
Forum: General
Topic: Whats a good resource for writing "good" lua code?
Replies: 6
Views: 9831

Re: Whats a good resource for writing "good" lua code?

Most of it comes from practice and somewhat personal preference. (I for one like to Camelcase modules)

Other than that, Kikito has a nice website with a few things about writing proper code. check it out here: http://kiki.to/
by Tjakka5
Tue Dec 19, 2017 10:28 am
Forum: Support and Development
Topic: How to limit FPS?
Replies: 4
Views: 6112

Re: How to limit FPS?

There's 2 problems with the above solution: 1. I use a 144Hz monitor. I don't want to be limited to 80 fps, especially since my computer should be more than able to run the game at high refresh rates. 2. If the "real" fps is close to 80 this will cause a lot of jittering. I suggest you hav...
by Tjakka5
Fri Dec 15, 2017 12:06 am
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1791
Views: 1499077

Re: What's everyone working on? (tigsource inspired)

I'm currently working on 'Babble': A modular dialogue system that aims at being easy to customize/stylize for any kind of game.
OLYGpIs.gif
OLYGpIs.gif (984.38 KiB) Viewed 10255 times
by Tjakka5
Mon Dec 11, 2017 2:33 pm
Forum: General
Topic: Why faking 3D nowadays?
Replies: 46
Views: 39722

Re: Why faking 3D nowadays?

Here's a little tutorial on how it is achieved: http://www.like100bears.com/writing/2d-3d-in-gamemaker-studio And a developer talking about it: https://www.youtube.com/watch?v=iAJ-tyiUVag&amp;feature=youtu.be&amp;t=2410 I've made a library for this effect: https://love2d.org/forums/viewtopic...
by Tjakka5
Mon Dec 11, 2017 11:14 am
Forum: General
Topic: Why faking 3D nowadays?
Replies: 46
Views: 39722

Re: Why faking 3D nowadays?

Sometimes just as a proof of concept, sometimes for fun, sometimes for the particular style you'll get with that approach. Some examples would be raycasting: https://love2d.org/forums/viewtopic.php?f=5&t=35876 Or using this "Layered Sprites" technique: https://gfycat.com/ConsciousZanyA...
by Tjakka5
Sat Nov 25, 2017 4:07 pm
Forum: Support and Development
Topic: Problems passing
Replies: 4
Views: 3757

Re: Problems passing between blocks (Bump.lua)

Quite simply decrease the hitbox size of the player.