Coded a multiplayer test some month ago
client: a, d = move; space = jump; w=reset pos
server:mouse1=col obj; mouse2=no col obj; scroll= change grid; lshift=drag size obj
Search found 139 matches
- Tue Apr 01, 2014 4:26 pm
- Forum: Support and Development
- Topic: [Solved] Easy way to make a multiplayer?
- Replies: 15
- Views: 13152
- Thu Jan 09, 2014 8:47 am
- Forum: Support and Development
- Topic: Scaling love.graphics geometric shapes like bitmap pics?
- Replies: 19
- Views: 10976
Re: Scaling love.graphics geometric shapes like bitmap pics?
Use a custom line function
here is an example using https://github.com/kikito/bresenham.lua
here is an example using https://github.com/kikito/bresenham.lua
- Wed Jan 08, 2014 1:23 pm
- Forum: Support and Development
- Topic: How to change player image?
- Replies: 13
- Views: 5853
Re: How to change player image?
Make a player draw function something like this: function player:draw() if self.isFacing == "left" then love.graphics.draw( player_image_left, player.x - player.w/2, player.y - player.h) end if self.isFacing == "right" then love.graphics.draw( player_image_right, player.x - playe...
- Thu Jan 02, 2014 10:56 am
- Forum: Support and Development
- Topic: for loop
- Replies: 8
- Views: 8637
Re: for loop
nothe random and graphics.print is right???
recommend you to check out
http://www.lua.org/pil/4.3.5.html (for loop)
and
https://www.love2d.org/wiki/love.graphics.print and https://www.love2d.org/wiki/love.math.random
for correct syntax
- Thu Jan 02, 2014 7:50 am
- Forum: Support and Development
- Topic: thumbnail or mini map
- Replies: 8
- Views: 2014
Re: thumbnail or mini map
You can do a minimap easy with a "camera lib"
http://love2d.org/forums/viewtopic.php? ... lit=gamera
http://love2d.org/forums/viewtopic.php? ... lit=gamera
- Wed Dec 18, 2013 12:03 pm
- Forum: Support and Development
- Topic: Placing a delay between key presses?
- Replies: 8
- Views: 5577
Re: Placing a delay between key presses?
make time = 0 global ( by removing local), that should fix it
- Fri Dec 06, 2013 2:30 pm
- Forum: Support and Development
- Topic: Guidance for path-finding with ATL and ATC
- Replies: 16
- Views: 9526
Re: Guidance for path-finding with ATL and ATC
Yo! Some old function that draws jumpers path needs path as global variable function drawp(tile_size) local half_tile_size = tile_size/2 if path then for i=2,#path do local x,y = path[i].x ,path[i].y local x2,y2 = path[i-1].x ,path[i-1].y love.graphics.line((x2*tile_size)-half_tile_size,(y2*tile_siz...
- Wed Nov 20, 2013 8:07 am
- Forum: Support and Development
- Topic: filesystem not from to console
- Replies: 4
- Views: 1781
Re: filesystem not from to console
You prints all the lines at the same x, y... and you should use love.graphics.print in love.draw() as love.load() only runs once. try function love.draw() local y = 0 for line in love.filesystem.lines('food.txt') do y = y + 10 love.graphics.print(line,100,y) end end
- Mon Oct 28, 2013 7:58 am
- Forum: Support and Development
- Topic: h ,w bug??
- Replies: 5
- Views: 2019
Re: h ,w bug??
Check that you have w and h at the right argument for rectangle
Code: Select all
love.graphics.rectangle( mode, x, y, width, height )
-->
love.graphics.rectangle( "fill", b.x, b.y, b.w, b.h )
- Sun Aug 04, 2013 2:18 pm
- Forum: Support and Development
- Topic: Beginner to HardonCollider
- Replies: 3
- Views: 2766
Re: Beginner to HardonCollider
Check the HC github reference?
http://vrld.github.io/HardonCollider/re ... tCallbacks
http://vrld.github.io/HardonCollider/re ... tCallbacks