Just as an update, I changed my camera implementation and replaced my own calculations of the transformation matrix with just using love.graphics' Coordinate methods.
It runs 30-50% faster now
Search found 18 matches
- Mon Apr 28, 2014 3:10 pm
- Forum: Support and Development
- Topic: Feedback Request: 2d Camera with Pan/Rotate/Zoom
- Replies: 3
- Views: 4642
- Fri Apr 25, 2014 10:13 pm
- Forum: Support and Development
- Topic: Space ship game help
- Replies: 3
- Views: 2119
Re: Space ship game help
I'm probably going to rework mine to use the built-in love.graphics. If you want to look at a library I would probably suggest checking out hump's camera instead: http://vrld.github.io/hump/#hump.camera - that's probably what I'll be using, if I don't make my own.
- Fri Apr 25, 2014 5:12 pm
- Forum: Support and Development
- Topic: Space ship game help
- Replies: 3
- Views: 2119
Re: Space ship game help
I'm actually working on something similar (also for a space game). I got a camera working that allows you Pan/Rotate/Zoom: http://love2d.org/forums/viewtopic.php?f=4&t=77807 It basically works by generating a transformation matrix which is then applied to all x/y coordinates in the level. Take a...
- Fri Apr 25, 2014 5:04 pm
- Forum: Support and Development
- Topic: Feedback Request: 2d Camera with Pan/Rotate/Zoom
- Replies: 3
- Views: 4642
Re: Feedback Request: 2d Camera with Pan/Rotate/Zoom
Minor Bump because it was moved from Projects to Support (thanks bartbes). Would still appreciate some feedback
- Thu Apr 24, 2014 8:53 pm
- Forum: Support and Development
- Topic: Feedback Request: 2d Camera with Pan/Rotate/Zoom
- Replies: 3
- Views: 4642
Feedback Request: 2d Camera with Pan/Rotate/Zoom
Overview I have been wanting to work on a top-down space exploration/building game for a while and finally had a chance to get started on it. As a first step I wanted to try and implement a 2d camera system with zoom and rotation. I think I did a reasonably good job. but would like some feedback on...
- Fri Jun 14, 2013 11:32 pm
- Forum: Libraries and Tools
- Topic: Super simple script for running love projects on mac
- Replies: 21
- Views: 10971
Re: Super simple script for running love projects on mac
Why not use the build system on your text editor? From the editor I use F8 (the Apple keyboard has a play icon on this key), and boom, game. I use a love alias from my .bash_profile, and even outside of the text editor I'm usually cd'd into the project dir if I'm working on it, which means "lo...
- Thu Jun 13, 2013 2:32 pm
- Forum: Support and Development
- Topic: Prevent game cheating?
- Replies: 13
- Views: 8023
Re: Prevent game cheating?
A game in LÖVE automatically writes to the appdata directory or Library folder on Mac and some other directory on Linux. The user could easily find this folder with some research. From there they could hack their high score, etc. Is there a way to prevent this? I've tried locking the file in TextWr...
- Thu Jun 13, 2013 11:46 am
- Forum: Support and Development
- Topic: Sublime text - is it possible to have live console output?
- Replies: 4
- Views: 5906
Re: Sublime text - is it possible to have live console outpu
Ah, I found the answer on Stack Overflow
You can make the output display live by adding the following code in your main.lua file:
You can make the output display live by adding the following code in your main.lua file:
Code: Select all
io.stdout:setvbuf("no")
- Thu Jun 13, 2013 11:39 am
- Forum: Support and Development
- Topic: Sublime text - is it possible to have live console output?
- Replies: 4
- Views: 5906
Sublime text - is it possible to have live console output?
Here's a quick question for any Sublime Text 2 users For my Löve projects I'm using this build script: { "selector": "source.lua", "cmd": ["/Applications/love.app/Contents/MacOS/love", "$filepath"] } (this is for mac of course, you can check this pag...
- Tue Jun 11, 2013 10:50 am
- Forum: Libraries and Tools
- Topic: Fizz X
- Replies: 85
- Views: 67744
Re: Fizz X
Probably doing something wrong here (still a total LUA/Löve newb) but when I try to run version 7 I get an error:
but version 6 works just fine