Search found 407 matches

by DaedalusYoung
Sat Mar 09, 2024 11:00 pm
Forum: Support and Development
Topic: Prevent window rotation on Android
Replies: 6
Views: 3637

Re: Prevent window rotation on Android

if orientation == "portrait" or "portraitflipped" then I realise this is an older post, but I believe that if-statement is wrong. I think it should be: if orientation == "portrait" or orientation == "portraitflipped" Otherwise, it will always return true, and...
by DaedalusYoung
Tue Feb 22, 2022 11:08 pm
Forum: Support and Development
Topic: Gray box instead of image [RESOLVED]
Replies: 11
Views: 4808

Re: Gray box instead of image

Are the image dimensions powers of 2? This used to be an issue in older versions, because graphics cards don't like it if images are not powers of two. It has been fixed, but I can imagine there's some edge cases where it's still an issue. [edit] The fix was made in version 0.8.0, see information [h...
by DaedalusYoung
Thu Jul 22, 2021 3:36 pm
Forum: Support and Development
Topic: Code editor for android phone.
Replies: 2
Views: 5602

Re: Code editor for android phone.

I've used DroidEdit Free for Android in the past.
by DaedalusYoung
Thu Jul 22, 2021 2:36 pm
Forum: Games and Creations
Topic: I was bored at work, so I made a Tetris clone
Replies: 2
Views: 7352

Re: I was bored at work, so I made a Tetris clone

Thanks! Yes, on an old Windows tablet (HP Stream 7), with on screen keyboard. I've ordered a Bluetooth keyboard to make it easier, but this was done all on the tablet screen. We have a lot of downtime lately and they don't mind it if we do our own things in that time. We also sometimes play badminto...
by DaedalusYoung
Thu Jul 22, 2021 10:14 am
Forum: Games and Creations
Topic: I was bored at work, so I made a Tetris clone
Replies: 2
Views: 7352

I was bored at work, so I made a Tetris clone

Tested only in 800x600. Written on a touch device, so the buttons at the bottom right can be activated by touch. I've expanded it on a desktop computer, to include mouse and keyboard functionality. Left key moves blocks left, right key moves blocks right, down key moves block down (1 line only), and...
by DaedalusYoung
Mon Apr 11, 2016 10:06 pm
Forum: Support and Development
Topic: love2d thinks the number "3" is a bool
Replies: 9
Views: 7267

Re: love2d thinks the number "3" is a bool

This:

Code: Select all

v[3] == 2 and v[2] + 1 or v[3] == 4 and v[2] - 1
seems to return false.
by DaedalusYoung
Mon Apr 11, 2016 8:42 pm
Forum: Support and Development
Topic: Collision with walls
Replies: 5
Views: 6047

Re: Collision with walls

Glad it works :)

Yeah, you don't need to declare them as local, they automatically are:
http://www.lua.org/pil/4.3.5.html wrote:The loop variables are local to the loop body (...)
by DaedalusYoung
Mon Apr 11, 2016 10:33 am
Forum: Support and Development
Topic: Collision with walls
Replies: 5
Views: 6047

Re: Collision with walls

Set the player.canwalk booleans all to true before you start the for loop, and get rid of them in the if col == false block. My guess is that alone should work, but you could also try that once you determined that there is a collision, you iterate the walls table, then as soon as you've found the bl...
by DaedalusYoung
Thu Apr 07, 2016 6:26 pm
Forum: Support and Development
Topic: Anyone need help with small projects?
Replies: 19
Views: 8855

Re: Anyone need help with small projects?

You could always try to see how Code Doodles work and try to make your own, will get you experience and feedback from others how to improve your code.
by DaedalusYoung
Mon Aug 24, 2015 2:26 am
Forum: Support and Development
Topic: [SOLVED]Making a Dress Up Game... Have a Question!
Replies: 8
Views: 6156

Re: Making a Dress Up Game... Have a Question!

Ok, here: for i,v in ipairs(clothesImages) do love.graphics.draw(clothesImages, v.x, v.y) end clothesImages is a table, containing the various images. You can go through this table in order and draw each image. You're sort of doing that, it just needs a minor adjustment. You iterate the table using ...