Search found 730 matches
- Wed Sep 11, 2019 11:55 pm
- Forum: Libraries and Tools
- Topic: Animation library in Love2d
- Replies: 6
- Views: 8600
Re: Animation library in Love2d
Are you sure it does not work in 11.x? I do not see anything the code that would prevent it from working.
- Wed Sep 11, 2019 10:26 pm
- Forum: Games and Creations
- Topic: Snake Game
- Replies: 1
- Views: 4701
Re: Snake Game
I know its just a snake game but I like it. You should display the controls on the screen. Also restarting the game is very annoying. On Windows 10 there is a popup every time a game window opens and it is quite annoying. You can avoid this by just clearing the state rather than just relaunching the...
- Tue Aug 27, 2019 11:09 pm
- Forum: Support and Development
- Topic: Assigning an image to consecutive tables using 'for loop'
- Replies: 2
- Views: 3348
Re: Assigning an image to consecutive tables using 'for loop'
So your code needs more critiques than what I can provide right now so hopefully, someone else will help with that but the problem is that your colx variable never resets. So every frame you are adding to the colx value. You can reset colx to 0 after your loop to fix the problem.
- Sat Aug 24, 2019 6:08 pm
- Forum: Games and Creations
- Topic: cave game - generic terraria clone
- Replies: 15
- Views: 20073
Re: cave game - generic terraria clone
If I recall correctly tunneling is caused by predicting the location after movement and if there is no collision then you are allowed to move. If the next location is extremely far away you can travel through walls because you are only testing the target location and not everything in-between. Large...
- Sat Aug 24, 2019 1:29 pm
- Forum: Libraries and Tools
- Topic: Simple Button Library
- Replies: 2
- Views: 5583
Re: Simple Button Library
It seems like a nice simple library. The only critique I have is that your library loads itself into the global scope. I am pretty certain that the standard in the Lua community is to have it use a local and return that local variable.
- Sat Aug 24, 2019 1:11 pm
- Forum: Support and Development
- Topic: What is Text object?
- Replies: 4
- Views: 5008
Re: What is Text object?
I believe it is like a sprite batch or mesh of sorts that batch the calls so that all of the text is drawn only once
- Sat Aug 24, 2019 10:24 am
- Forum: Support and Development
- Topic: Code review please
- Replies: 8
- Views: 5916
Re: Code review please
The importance of using only locals is to mainly prevent name conflicts. This can introduce some pretty crazy bugs. For example, if you declare player in two files and each has conflicting data and or operations done to them it would cause the player to act unpredictably. You can't localize player.c...
- Sat Aug 24, 2019 10:11 am
- Forum: Games and Creations
- Topic: cave game - generic terraria clone
- Replies: 15
- Views: 20073
Re: cave game - generic terraria clone
Well, I fell through the floor when switching active windows. I believe it is a derivative of the bullet tunneling problem. It is repeatable if you grab the window and shake it while over a cavity in the ground. If the frame rate drops a sufficient amount you will fall through the ground. You can al...
- Wed Jun 12, 2019 2:37 pm
- Forum: Support and Development
- Topic: Detect collisions for STI with bump by layer id
- Replies: 1
- Views: 2447
Re: Detect collisions for STI with bump by layer id
I haven't used it in a while but I believe the collision object returns the items the took place in the collision. That's how I handled it.
- Wed Jun 12, 2019 2:34 pm
- Forum: Support and Development
- Topic: sock.lua, cannot create any server
- Replies: 2
- Views: 4038
Re: sock.lua, cannot create any server
See my response to your other post. You have to bind to an IP address available on your machine. such as localhost. You can also look at network properties if you are using windows. Use the IP address from the currently operational network connection.