Hi,
Attached is a rope simulator that I threw together using verlet integration. Its very imperfect and not time stepped but the effect is decent.
Hope this helps!
Search found 14 matches
- Fri Mar 09, 2018 7:12 am
- Forum: Support and Development
- Topic: Rope Physics Help
- Replies: 19
- Views: 15924
- Tue Feb 27, 2018 10:52 pm
- Forum: General
- Topic: Why faking 3D nowadays?
- Replies: 46
- Views: 42427
Re: Why faking 3D nowadays?
Do we even need to fake 3d or not? ... So, is it possible to create at least properly textured 3d planes? Hello! For myself, I certainly don't need it but I started doing it for the learning experience as it presented some interesting challenges. :awesome: As for the textured planes, I have a proje...
- Thu Jan 11, 2018 7:26 pm
- Forum: General
- Topic: Whats a good resource for writing "good" lua code?
- Replies: 6
- Views: 10928
Re: Whats a good resource for writing "good" lua code?
In my basic understanding, I break what we do down into two categories: proficiency in the language and design patterns. These two things are frequently mutually exclusive as a design pattern can be applied in many languages. On that note: I find there is plenty of information on language proficienc...
- Wed Jan 10, 2018 7:15 pm
- Forum: Support and Development
- Topic: Enemies, obstacle's, power ups, life's and health bar (help)
- Replies: 11
- Views: 10672
Re: Enemies and obstacle's
Hello! Are you using a collision detection library, and if so which one? That would help me give you some pseudo code. But here is the concept: Store the enemies in a table, iterate through the table for player/enemy collision. Upon collision apply resolution (dx,dy) and reduce the health of the pla...
- Wed Jan 10, 2018 3:34 am
- Forum: Support and Development
- Topic: Creating an isometric platformer
- Replies: 5
- Views: 6548
Re: Creating an isometric platformer
MY GOAL : Create a pseudo-3D environment with an isometric perspective and allow jumping onto platforms with different heights I like this idea. I've accomplished it before by doing it this way: Each object has a "z" which is 0 when grounded as well as a "height" (I see you have...
- Mon Jan 08, 2018 9:36 pm
- Forum: Support and Development
- Topic: Simple question
- Replies: 3
- Views: 2831
Re: Simple question
You tie the input command to a boolean variable. function love.load() switchOn = false end function love.update(dt) if love.keyboard.isDown('space') then switchOn = true end if switchOn then doSomething() end end When the spacebar is pressed, switchOn becomes true and stays true even if released.
- Mon Jan 08, 2018 8:19 pm
- Forum: Support and Development
- Topic: [solved] How to exlude collision detection with a certain shape in HC (hardon collider)
- Replies: 2
- Views: 3199
Re: How to exlude collision detection with a certain shape in HC (hardon collider)
HC is such a lovely library, there's a couple ways to do it. Here's how I do it: I have an ignore variable stored on each object in the world; each object in a table. Here we iterate through enemies. for i=1,#enemies do local candidates = collider:neighbors(enemies[i].mask) --Mask is a reference to ...
- Mon Jan 08, 2018 12:54 am
- Forum: Support and Development
- Topic: Help: Isometric map drawing incorrectly
- Replies: 0
- Views: 1676
Help: Isometric map drawing incorrectly
Greetings! I am making an isometric grid composed of nodes(intersections) and tiles. I want the tiles to update when the nodes are adjusted. There are no errors however, one of the isometric tile coordinates is wrong (I believe its the 4th coordinate) and its causing the tiles to be drawn wrong. Her...
- Sun Jan 07, 2018 5:54 pm
- Forum: Libraries and Tools
- Topic: Spectra - Color Manager for LOVE2D
- Replies: 3
- Views: 4672
Re: Spectra - Color Manager for LOVE2D
Very useful and cool lib! I have a question, how do you actually use the gradient function? How do you draw it exactly? Like use it as the background color? Thanks! The gradient is used for more individual object drawing like tiles or world objects. I iterate through each object/tile and apply a se...
- Fri Jan 05, 2018 6:15 pm
- Forum: Libraries and Tools
- Topic: Spectra - Color Manager for LOVE2D
- Replies: 3
- Views: 4672
Spectra - Color Manager for LOVE2D
Spectra Color Manager Greetings! I made a github repo for a color tool I made and use in my projects to be primarily used with the setColor() function. I originally made it to create simple tiled lighting effects but I also use it to store colors by name (e.g. All enemies should be 'red, while alli...