Search found 4 matches
- Mon Oct 09, 2017 9:08 pm
- Forum: Support and Development
- Topic: How to scale extend width/height of border images without doubling the border thickness.
- Replies: 1
- Views: 1845
Re: How to scale extend width/height of border images without doubling the border thickness.
The usual scaling methods don't discriminate edge pixels vs center pixels, so you won't be able to achieve what you want. However, this looks like a problem for the 9-patch images. You can read about them here: http://wiresareobsolete.com/2010/06/9-patches/ There is a Love2d library that you might t...
- Mon Jan 06, 2014 1:22 am
- Forum: Support and Development
- Topic: [SOLVED] Help with map scrolling, jittery
- Replies: 4
- Views: 3304
Re: Help with map scrolling, jittery
First of all, +1 to what CRxTRDude said. I had to put a random tile set in in order to make it run. Second thing: the strange vertical artifact with half-full rightmost column is not related to anything else, it is just that your "tileSet" is too small. You initialize it for tileDisplayWid...
- Sun Jul 14, 2013 11:35 pm
- Forum: Support and Development
- Topic: [solved] Multi-ball Pong AI, Finding/Following optimal ball
- Replies: 7
- Views: 4900
Re: Multi-ball Pong AI, Finding and Following the optimal ba
I totally agree with what chezrom said. Below is a short snippet with a possible implementation of findOptimal that predicts where the ball will hit the paddle. Note that I didn't include chezrom's modifications, you should try merging the code if you want. function findOptimal() for i = 1, #potenti...
- Sun Jul 14, 2013 1:04 am
- Forum: Support and Development
- Topic: AnAL Animation problems
- Replies: 2
- Views: 2528
Re: AnAL Animation problems
You need to call "update" for the animation, not just "draw". Currently it never moves on from the first frame. This can be fixed by simply adding:
to the end of your update function.
Code: Select all
player.anim:update(dt)