Search found 60 matches

by Xugro
Thu Oct 29, 2015 11:49 pm
Forum: Support and Development
Topic: Detecting a mouse shake?
Replies: 3
Views: 585

Re: Detecting a mouse shake?

I wrote a small program, that should do the trick.

The idea behind it: If you are in an small enough area, then you are really shaking and not just moving the mouse around and getting back to the starting point. In my case I just made an rectangular approximation, but it does the job.
by Xugro
Sun Aug 16, 2015 1:00 am
Forum: Libraries and Tools
Topic: paintonline - online paint (for painting online)
Replies: 51
Views: 10403

Re: PENISDRAW - draw dicks with friends ONLINE!

my request: please share your custom stuff for automated drawing if you made something cool Here is my code for pasting images. Works with Version 2. Just add this to the love.keypressed function. if (not text and key=='p') then local saved_color = current_color current_width = math.max(current_wid...
by Xugro
Mon Aug 10, 2015 3:52 pm
Forum: Support and Development
Topic: Cards and tile-based playboard for rivals of catan
Replies: 5
Views: 1020

Re: Cards and tile-based playboard for rivals of catan

now i tried to include a 2-dimensional table, but i can't figure out why it doesn't work.. [...] but all they give back is "Tileset is not defined (value:nil)". You never declared the table Tileset . You must create the table first and fill it with images. also my cards have 4 sides with each a dif...
by Xugro
Sat Aug 08, 2015 6:20 pm
Forum: Support and Development
Topic: Fog of war
Replies: 3
Views: 1017

Re: Fog of war

Right now i have a working basic fog of war that light up the things around the player in a circle. But the problem is that i see thru walls. Anyone have any tips how to solve this? I have tried to loop thru all my tiles and check if they are behind the walls or not, but ended up with 1 fps. You do...
by Xugro
Mon Aug 04, 2014 7:29 pm
Forum: Libraries and Tools
Topic: Visualization of position space vs. velocity space
Replies: 1
Views: 728

Visualization of position space vs. velocity space

Hi guys, this is just a simple visualization of position space vs. velocity space. In the left side you see the balls jumping around as usual and in the right side you see their velocity. SpaceVsVelocity.png Controls: up : add a ball down : remove a ball left : slow down right : speed up s : reset s...
by Xugro
Sun Apr 20, 2014 9:41 am
Forum: General
Topic: Deriving from Löve
Replies: 6
Views: 1174

Re: Deriving from Löve

If you do not need Lua at all you should not use LÖVE as a basis. Take a look at SDL (Simple DirektMedia Layer) . Here is a overview of what SDL offers you: http://wiki.libsdl.org/Introduction#What_can_SDL_do.3F In short: You get cross-platform graphics, sound, IO, input and a few additional features.
by Xugro
Tue Feb 25, 2014 1:37 am
Forum: Support and Development
Topic: LÖVE GIF maker
Replies: 5
Views: 1360

Re: LÖVE GIF maker

Here is the official GIF specification (33 pages long): http://www.w3.org/Graphics/GIF/spec-gif89a.txt You "just" have to write an encoder. Then you can write the data to a file with love.filesystem.write . Lua-strings can handle the binary data without problems: Lua is eight-bit clean and so string...
by Xugro
Thu Nov 14, 2013 4:07 pm
Forum: Support and Development
Topic: Lua 5.1.2 is goto statement possible?
Replies: 14
Views: 6183

Re: Lua 5.1.2 is goto statement possible?

For such a simple problem it is better to use the break keyword:
http://www.lua.org/pil/4.4.html
by Xugro
Tue Oct 08, 2013 6:57 pm
Forum: Games and Creations
Topic: Ore Miner
Replies: 18
Views: 5692

Re: Ore Miner

1. I cant use love.fillsystem because it will make a folder in the LOVE folder, but I need it in the same folder as the game. No, you do not. The only times you use the filesystem is for saving and loading (all in ./save.lua ). Only a few changes have to be made (and then Linux- and MacOS-User can ...
by Xugro
Sun Oct 06, 2013 4:48 pm
Forum: Games and Creations
Topic: Ore Miner
Replies: 18
Views: 5692

Re: Ore Miner

This reminds me more of MotherLoad than Minecraft. My biggest problem is the user interface. I still struggle to find the right keys*. It would be much easier if you could place small letters on the icons and/or make the icons clickable. You should also use love.filesystem instead of os.execute("mkd...