Search found 8 matches
- Sat Nov 11, 2017 7:42 pm
- Forum: Support and Development
- Topic: Change image/drawing position to the mouse position every frame
- Replies: 3
- Views: 3604
Re: Change image/drawing position to the mouse position every frame
I've postet something similar on github lately for coding tilemaps: https://github.com/RednibCoding/Love2D_Tilemap/blob/master/main.lua -- in love.update -- -- getting mouse position mouseX, mouseY = love.mouse.getPosition() -- in love.draw -- -- print the mouseX mouseY position next to the cursor l...
- Sat Nov 11, 2017 6:02 pm
- Forum: Support and Development
- Topic: Saving files in game directory
- Replies: 12
- Views: 10974
Re: Saving files in game directory
OK awesome. Thanks a lot for the help!
- Sat Nov 11, 2017 5:33 pm
- Forum: Support and Development
- Topic: Saving files in game directory
- Replies: 12
- Views: 10974
Re: Saving files in game directory
Thanks!
But writing always and only happens in %appdata%.
But writing always and only happens in %appdata%.
- Sat Nov 11, 2017 5:06 pm
- Forum: Support and Development
- Topic: Saving files in game directory
- Replies: 12
- Views: 10974
Re: Saving files in game directory
Oh dear now i got it. I thought filesystem.load/open will always and only look in %appdata% for the required file. So i was wondering how the heck do i load game core files like maps that are stored in the game directory (where the main.lua is located) So to make things clear: when i want to load a ...
- Sat Nov 11, 2017 12:55 pm
- Forum: Support and Development
- Topic: Saving files in game directory
- Replies: 12
- Views: 10974
Re: Saving files in game directory
That sounds like a good step. But how do i load the map files from the game's directory? I do not mean the code implementation but the path. How do i tell love that i want to load the map file from the game's map folder. I come from frameworks/languages where i could just load anything from anywhere...
- Sat Nov 11, 2017 9:01 am
- Forum: Support and Development
- Topic: Saving files in game directory
- Replies: 12
- Views: 10974
Re: Saving files in game directory
There are so many good reasons to use the %appdata% folder that I can't even list them all. Yea that might be the case for saves and userdata that are made during runtime of the game but not for game resources like images, sounds, scene files, map files and so on. They are static and should'nt be c...
- Fri Nov 10, 2017 10:50 pm
- Forum: Support and Development
- Topic: Saving files in game directory
- Replies: 12
- Views: 10974
Saving files in game directory
Hello guys, im new to love (but not new to programming and game development) and i was wondering how i can save files into the game directory. Lets say i want to make a game/scene/map editor for my game for faster development and want to save the created scenes/maps in the scenes/map directory of th...
- Fri Nov 10, 2017 7:35 pm
- Forum: Support and Development
- Topic: Game state in lua (or in general)
- Replies: 6
- Views: 6269
Re: Game state in lua (or in general)
I have posted a scenemanager example in github recently. https://github.com/RednibCoding/Love2D_Scenemanagement
Hope this helps
Hope this helps