I have this a habit of thinking "What if param == nil?", and that slipped into my style. Now that I think about it, it IS unnecessary given the context.
Search found 260 matches
- Mon Dec 28, 2020 9:18 pm
- Forum: Support and Development
- Topic: Function that switch a boolean value
- Replies: 6
- Views: 5414
- Mon Dec 28, 2020 1:47 pm
- Forum: Support and Development
- Topic: Function that switch a boolean value
- Replies: 6
- Views: 5414
Re: Function that switch a boolean value
Here's another take:
Code: Select all
function switchParameter(param)
if param and param == true then
return false
else
return true
end
end
- Mon Dec 28, 2020 6:22 am
- Forum: Games and Creations
- Topic: Hoarder's Horrible House of Stuff - A 3D Puzzle Game
- Replies: 7
- Views: 7580
Re: Hoarder's Horrible House of Stuff - A 3D Puzzle Game
Love the choice of music.
It completes the "Adventure Sokoban" vibe.
It completes the "Adventure Sokoban" vibe.
- Wed Dec 23, 2020 4:39 am
- Forum: Support and Development
- Topic: Can't move my Sprite
- Replies: 2
- Views: 2222
Re: Can't move my Sprite
I'm only assuming that you didn't call Player:update(dt) inside love.update(dt)
- Wed Dec 23, 2020 1:10 am
- Forum: Support and Development
- Topic: I've used setDefaultFilter but the text is still too pixelated
- Replies: 6
- Views: 3751
Re: I've used setDefaultFilter but the text is still too pixelated
Getting your font the way you want is a different beast of a problem.
- Sat Dec 19, 2020 1:17 am
- Forum: General
- Topic: What do you use to design your game concepts?
- Replies: 4
- Views: 8783
Re: What do you use to design your game concepts?
I mostly do "cloning" jobs. 1. I see a game that I like - ("I want to make a game like this.") 2. There are features that I want to put in, there are features that I want to put out. 3. Scribble down notes in a paper. 4. This is actually the coding part... where my game will most...
- Thu Dec 17, 2020 12:51 am
- Forum: General
- Topic: How to make a platformer [Youtube Tutorial] - All (6) episodes released!
- Replies: 17
- Views: 26109
Re: How to make a platformer [Youtube Tutorial] - E5 Released!
There's one: The ParticleSystem
I kinda know my way around it, but I want beginners to play around with it... knowing how to set the 2 Basic Components (Particles and Emitter) is enough I believe.
- Tue Dec 15, 2020 6:02 pm
- Forum: General
- Topic: why am I getting this error?
- Replies: 4
- Views: 6602
Re: why am I getting this error?
You don't have "hero.x" defined.
Either you do something like this...
or convert the bugged section into something like this:
Either you do something like this...
Code: Select all
hero =
{
image = love.graphics.newImage("hero.png"),
x = 0,
y = 0
}
Code: Select all
if stepx < mouse.x then stepx=stepx+4
end
- Tue Dec 15, 2020 1:11 am
- Forum: General
- Topic: How to make a platformer [Youtube Tutorial] - All (6) episodes released!
- Replies: 17
- Views: 26109
Re: How to make a platformer [Youtube Tutorial] - E5 Released!
Congrats on finishing this series. The next Episode might be called "6.5/6", "7/6" or "Extra".
- Fri Dec 11, 2020 12:59 am
- Forum: General
- Topic: How to make a platformer [Youtube Tutorial] - All (6) episodes released!
- Replies: 17
- Views: 26109