Search found 51 matches

by 0x72
Sat Sep 10, 2016 2:16 pm
Forum: Support and Development
Topic: Problem with x,y scaling
Replies: 8
Views: 1592

Re: Problem with x,y scaling

Your default Color3 is black (i.e. "multiply every color by 0 so it's all black whatever texture is used"). I've changed Color3.new so it defaults to white (lines 12-14) and it works great col3.r = Clamp(r or 255, 0, 255) col3.g = Clamp(g or 255, 0, 255) col3.b = Clamp(b or 255, 0, 255) White sounds...
by 0x72
Wed Sep 07, 2016 8:58 am
Forum: Support and Development
Topic: Break an if statement
Replies: 7
Views: 1824

Re: Break an if statement

what you need is elseif
by 0x72
Wed Sep 07, 2016 8:00 am
Forum: Support and Development
Topic: Dead simple threads example
Replies: 12
Views: 3196

Re: Dead simple threads example

My bet is you mean something like that: function love.load() -- update/draw/whatever other_later_defined_function() -- valid call end -- other_later_defined_function() -- this would be an error function other_later_defined_function() -- definition print('foobar') end It might not be obvious at glanc...
by 0x72
Tue Sep 06, 2016 4:34 pm
Forum: Support and Development
Topic: Dead simple threads example
Replies: 12
Views: 3196

Re: Dead simple threads example

Consider this code, I hope it'll make the thing clear: -- using codesting, but as you can see just a filename would be much cleaner local backend_logic_str = [[ love.timer = require('love.timer') -- you won't have it out of box in new thread channel = love.thread.getChannel( 'backend_logic_channel' ...
by 0x72
Fri May 20, 2016 10:08 am
Forum: Games and Creations
Topic: 1K Breakout challenge
Replies: 23
Views: 4850

Re: 1K Breakout challenge

V2 (aka shamelessly stealing ideas from others :P) changes: - no dt - update merged into draw - drawing and updating bricks in one loop - only resizable with conf.lua - inline one a few variables - controlled with A and D instead of arrows - more interesting map :) - remove newline from the last lin...
by 0x72
Thu May 19, 2016 11:09 am
Forum: Games and Creations
Topic: 1K Breakout challenge
Replies: 23
Views: 4850

Re: 1K Breakout challenge

927 926 920 917 912 898 :) (only 3rd "Extra credit" though) L,m=love,math n,N,a=m.min,m.max,m.abs g,k=L.graphics,L.keyboard.isDown R=g.rectangle H,S,s,T,W=50,500,200,595,150 t=function(l,r,w,h)return not(x<l or x>l+w or y<r or y>r+h)end w,h=50,20 v,u=1.19,1.95 F='fill' function D() X,B,x,y,d,e=325,...
by 0x72
Sun Nov 22, 2015 8:52 am
Forum: Games and Creations
Topic: Space Multiplication
Replies: 1
Views: 612

Space Multiplication

Hi there! I've finally finished something - it's very small, but finished nonetheless (except that a game is never truly finished) Space Multiplication is an educational game to teach your kids (or you) multiplication tables. It's intended for kids but I've seen adults having fun with it so I hope y...
by 0x72
Mon Oct 26, 2015 6:18 pm
Forum: Support and Development
Topic: Tile based collision for top down game?
Replies: 5
Views: 1037

Re: Tile based collision for top down game?

You should use bump - you won't write anything better anytime soon (no offence - I neither). But, if you want to write something on your own (educational thing) here are some tips for start (although it might be better to skip those and go straight to bump as my code below lack quality :)): - first ...
by 0x72
Tue Oct 06, 2015 5:17 pm
Forum: Support and Development
Topic: How to qucikly extract quads from a sprite sheet?
Replies: 5
Views: 1127

Re: How to qucikly extract quads from a sprite sheet?

you can introduce some automated spritesheet generator into your pipeline google suggests this one but I have no idea if it's any good: https://www.codeandweb.com/texturepacker (edit: didn't noticed but it looks like it's a paid app - you consider if worth it for 150 images, in case it's not I suppo...
by 0x72
Tue Oct 06, 2015 7:17 am
Forum: Support and Development
Topic: Need Help, My Map wont draw!
Replies: 2
Views: 417

Re: Need Help, My Map wont draw!

looks like you use an outdated library with a newer version of love Feb 16, 2014: https://github.com/Kadoba/Advanced-Tiled-Loader/commit/ae192494da7731f4d6c6f3d7053539083a569469 there is no drawq in 0.9.* either: - upgrade the lib - replace the lib (as it's "no longer being actively developed") and ...