Search found 82 matches
- Tue Aug 14, 2018 8:54 pm
- Forum: Support and Development
- Topic: [SOLVED] Handling error exceptions for assert(loadstring(str))() ?
- Replies: 8
- Views: 4727
[SOLVED] Handling error exceptions for assert(loadstring(str))() ?
I am trying to add scriptable lua to a console as part of a game, for example to change variables quickly or run custom lua code to edit levels etc. I have figured out i can use something like this: local out = assert(loadstring(console.command))() Where the console uses text input to supply the con...
- Mon Aug 06, 2018 12:23 am
- Forum: Support and Development
- Topic: [Solved] Exit love.keypressed() function
- Replies: 1
- Views: 1397
Re: Exit love.keypressed() function? Cannot figure this out
Derp. Ignore this post... i had some keypress input that was placed in some update() functions... hence they were triggering keypresses outside of the love.keypressed() function... I ended up wrapping the keyboard related code in a block like: if not console.active then -- blah blah end Solved!
- Mon Aug 06, 2018 12:18 am
- Forum: Support and Development
- Topic: [Solved] Exit love.keypressed() function
- Replies: 1
- Views: 1397
[Solved] Exit love.keypressed() function
Can anyone explain why this doesn't work? function love.keypressed(key) if console.active then console:keypressed(key) return -- <---should exit function here end player:keypressed(key) --[[ other code etc.... than should only be run when console.active = false --]] end The problem is that the line ...
- Fri Jul 20, 2018 8:44 pm
- Forum: Games and Creations
- Topic: Phibonacci: a 2048-like game with the Fibonacci numbers
- Replies: 2
- Views: 4755
Re: Phibonacci: a 2048-like game with the Fibonacci numbers
Hey this is an interesting take on the 2048 game. Nicely done!
- Mon Apr 02, 2018 12:49 am
- Forum: General
- Topic: LÖVE 11.0 released!
- Replies: 98
- Views: 109492
Re: LÖVE 11.0 released!
Fantastic! Can't wait to fiddle around with the new features.
- Tue Jan 30, 2018 2:53 am
- Forum: Support and Development
- Topic: [solved] How do i offset an image so that it centres properly with scale?
- Replies: 2
- Views: 3639
Re: How do i offset an image so that it centres properly with scale?
For some reason i was trying to use the x/y values within the offset value itself, which obviously wouldn't work. Your method is perfect.
Thank you so much.
- Mon Jan 29, 2018 8:56 am
- Forum: Support and Development
- Topic: [solved] How do i offset an image so that it centres properly with scale?
- Replies: 2
- Views: 3639
[solved] How do i offset an image so that it centres properly with scale?
I have an image that scales when the player collides with it, as a simple animation for when the player bounces off. However, i can't figure out what to put as the offset for love.graphics.draw() Here's a stripped down bit of code showing what i'm trying to achieve; scale.love The problem: the image...
- Wed Oct 18, 2017 6:58 am
- Forum: Libraries and Tools
- Topic: paddy - touchscreen controls
- Replies: 4
- Views: 7168
Re: paddy - touchscreen controls
Hey, thanks for suggesting that D0NM. I recently changed things a bit, not the best code. But it now supports two kinds of "widgets". One for the dpad, and one for a playstation/snes style button pad. I also decided to change the paddy.dpad.isDown("left") to simply paddy.isDown(&...
- Sat Sep 02, 2017 11:03 pm
- Forum: Libraries and Tools
- Topic: paddy - touchscreen controls
- Replies: 4
- Views: 7168
paddy - touchscreen controls
A small library i created recently to test some basic games on android devices I will be adding more features to this in the future, but thought this could help someone as it is: https://github.com/Jigoku/paddy Basically, it draws a dpad to the screen which you can use to process input on a touchscr...
- Sun Aug 27, 2017 2:41 am
- Forum: General
- Topic: Question about android development
- Replies: 6
- Views: 6871
Re: Question about android development
adb, fastboot and mkbootimg are packaged together as dev-util/android-tools on my distro (Gentoo). Arch seems to have an equivalent package. I'm not sure about Slackware. The package's homepage is given as https://android.googlesource.com/platform/system/core.git/ , but I get the impression you may...