Search found 49 matches
- Tue Jul 29, 2014 9:39 am
- Forum: Support and Development
- Topic: Make a body slide instead of rotate.
- Replies: 4
- Views: 3363
Re: Make a body slide instead of rotate.
Now I creating game with love.physics (and every part of physics interesting for me too), and may be this http://love2d.org/wiki/Body:setFixedRotation?
- Wed Jul 23, 2014 9:58 am
- Forum: Support and Development
- Topic: Code Structure
- Replies: 14
- Views: 6699
Re: Code Structure
Use middleclass for OOP. And seach games sources. Read and analyse it. In result, you find your favourite structure.
I like:
The Binding of Crate Box
Walk! Jump! Collect! - A Platformer Experiment (ver 2.1)
Basic platformer WIP - Demo
And many other...
I like:
The Binding of Crate Box
Walk! Jump! Collect! - A Platformer Experiment (ver 2.1)
Basic platformer WIP - Demo
And many other...
- Wed Jul 23, 2014 5:32 am
- Forum: Support and Development
- Topic: [Solved] Save/Load physics objects
- Replies: 1
- Views: 1296
Re: Save/Load physics objects
I Solve my problem. This is pseudo-code for saving. local o = {} --our object with o.b - body, o.s - shape, o.f - fixture local s = {} s = {o.s:getPoints()} --Get all points! local cx, cy = o.b:getLocalCenter() for i=1, #s, 2 do --And from every point subtract local center s[i] = s[i] - cx s[i+1] = ...
- Sun Jul 20, 2014 9:44 am
- Forum: Support and Development
- Topic: [Solved] Save/Load physics objects
- Replies: 1
- Views: 1296
[Solved] Save/Load physics objects
Hello! My problem is: For example I create polygon in editor (record every vertexes in array), and I want to save it. In next time I want to load polygon, that I save, in some different point. I know how save array. But I don't , how recreate (with what attributes) polygon. Please help! Thanks!) I p...
- Sun May 25, 2014 8:12 am
- Forum: Libraries and Tools
- Topic: fuccboiGDX
- Replies: 29
- Views: 14451
Re: Mogamett
Add option to save game progress with my Slib (save with encription).
And lib is very usefull! Great!
And lib is very usefull! Great!
- Tue Apr 15, 2014 8:36 am
- Forum: Support and Development
- Topic: Moving an image to a specefic coordinates
- Replies: 2
- Views: 1253
Re: Moving an image to a specefic coordinates
This is good tutorial about this http://love2d.org/wiki/Tutorial:Fire_Toward_Mouse
- Mon Apr 14, 2014 4:18 pm
- Forum: Support and Development
- Topic: Help with functions and parameters
- Replies: 8
- Views: 2025
Re: Help with functions and parameters
Second link is awesome. Thanks. I know, what metatables are. But I miss practice...
- Mon Apr 14, 2014 4:13 pm
- Forum: Support and Development
- Topic: Question for tables and variables :3
- Replies: 12
- Views: 8646
Re: Question for tables and variables :3
His native language - is Russian. I told him, that it's code is little strange...
- Mon Apr 14, 2014 4:03 pm
- Forum: Support and Development
- Topic: Help with functions and parameters
- Replies: 8
- Views: 2025
Re: Help with functions and parameters
Ref, I will watch monitor example.
Ranguna259, thanks, I thought about it. And today I look into your debug. It's awesome.
Thanks for all!
Metatables.. Metatables.. Please give me some good links about this please.
Ranguna259, thanks, I thought about it. And today I look into your debug. It's awesome.
Thanks for all!
Metatables.. Metatables.. Please give me some good links about this please.
- Mon Apr 14, 2014 1:45 pm
- Forum: Support and Development
- Topic: Question for tables and variables :3
- Replies: 12
- Views: 8646
Re: Question for tables and variables :3
In your example, SomeTable.var has String type.
table.insert (SomeTable.var, 1) - first parameter must be Table - not String...
table.insert (SomeTable.var, 1) - first parameter must be Table - not String...