Search found 19 matches
- Thu Jul 19, 2018 7:45 pm
- Forum: Games and Creations
- Topic: Wild World (Sandbox multiplayer)
- Replies: 5
- Views: 10641
Re: Sandbox multiplayer
Cute game, I'm enjoying the horse riding a dragon
- Thu Jul 19, 2018 7:29 pm
- Forum: Support and Development
- Topic: [SOLVED] Different approaches for saving settings and game progress
- Replies: 8
- Views: 6000
Re: Different approaches for saving settings and game progress
Thanks everyone, I'm going to stick with a Lua table using the techniques suggested.
- Wed Jul 18, 2018 4:15 pm
- Forum: Libraries and Tools
- Topic: "profile.lua" a tool for finding bottlenecks
- Replies: 27
- Views: 34428
Re: "profile.lua" a tool for finding bottlenecks
Thanks, very useful library, easier to use than others I found. I've added it to the list of Libraries in the Wiki: https://love2d.org/wiki/profile
- Wed Jul 18, 2018 10:56 am
- Forum: Support and Development
- Topic: [SOLVED] Different approaches for saving settings and game progress
- Replies: 8
- Views: 6000
[SOLVED] Different approaches for saving settings and game progress
I need to save game settings (e.g. video & audio settings) and game progress (e.g. which levels are completed, high-scores for each level). What method are others using? Some ideas I had: Using a Lua table structure to represent the settings, and serializing to a file (there seem to be many seri...
- Mon Jul 16, 2018 11:47 am
- Forum: Support and Development
- Topic: Drag and drop files/pictures onto a love2d window?
- Replies: 3
- Views: 3229
Re: Drag and drop files/pictures onto a love2d window?
I've not used it personally (I'm using an older version), but since Love 0.10.0 there are 2 new callback functions for this functionality:
https://www.love2d.org/wiki/love.filedropped
https://www.love2d.org/wiki/love.directorydropped
https://www.love2d.org/wiki/love.filedropped
https://www.love2d.org/wiki/love.directorydropped
- Thu Jul 12, 2018 3:49 pm
- Forum: Support and Development
- Topic: Encode an mp4?
- Replies: 4
- Views: 2851
Re: Encode an mp4?
I'm unsure of your goal; to make a video from PNG files try FFMPEG: https://trac.ffmpeg.org/wiki/Slideshow
If you're looking to create a video of gameplay footage, use https://obsproject.com/ to capture your screen & audio while you play.
If you're looking to create a video of gameplay footage, use https://obsproject.com/ to capture your screen & audio while you play.
- Thu Jun 28, 2018 2:05 pm
- Forum: Support and Development
- Topic: Help with Platform-based Collision Response
- Replies: 2
- Views: 15165
Re: Help with Platform-based Collision Response
This answer on StackOverflow describes the basic approach: https://stackoverflow.com/a/2657184 (reposting for prosperity) 1. After applying movement, it checks for collisions. 2. It determines the tiles the player overlaps based on the player's bounding box. 3. It iterates through all of those tiles...
- Thu Jun 21, 2018 10:28 am
- Forum: Support and Development
- Topic: The Right Analogue Stick
- Replies: 1
- Views: 1905
Re: The Right Analogue Stick
Here's my code for accessing the analog sticks. Inside love.load: -- Get any attached joysticks (aka gamepads) - assume final joystick found is player 1 for now local joysticks_found = love.joystick.getJoysticks() for i, joy in ipairs(joysticks_found) do player_1_joystick = joy end Inside love.updat...
- Tue Jun 19, 2018 4:17 am
- Forum: Support and Development
- Topic: Object freezes when stops
- Replies: 6
- Views: 3999
Re: Object freezes when stops
You may be interested in this great library: https://github.com/kikito/tween.lua -- make some text fall from the top of the screen, bouncing on y=300, in 4 seconds local label = { x=200, y=0, text = "hello" } local labelTween = tween.new(4, label, {y=300}, 'outBounce') labelTween:update(dt...