Search found 253 matches

by sphyrth
Mon Jan 18, 2021 6:00 pm
Forum: Games and Creations
Topic: Tic Tac Toe [WIP] - First Game
Replies: 4
Views: 343

Re: Tic Tac Toe [WIP] - First Game

How to copy such objects with functions without metatables? I'm not really a good source for an answer to this, but I currently use normal tables. function newObj() local object = {} object.sample_var2 = 'blah' function object:sampleFunction() -- end return object end Now, I just call that function...
by sphyrth
Fri Jan 15, 2021 11:43 pm
Forum: Games and Creations
Topic: Tic Tac Toe [WIP] - First Game
Replies: 4
Views: 343

Re: Tic Tac Toe [WIP] - First Game

For a self-taught programmer, that as very clean and readable code. You seem to be fluent in any language you study. My suggestions will sacrifice some of that cleanness for better coding practices. #1 - There some parts that should make use of love.update . Take menu.update() for an example. functi...
by sphyrth
Sat Jan 09, 2021 10:59 pm
Forum: Games and Creations
Topic: Trailer for my game Shoot ‘Em!
Replies: 2
Views: 834

Re: Trailer for my game Shoot ‘Em!

A "boring" game with "boring" graphics with a very very entertaining trailer? That's a deceptive way of presenting your game, sir. And I enjoyed it very much. :awesome:
by sphyrth
Mon Dec 28, 2020 9:18 pm
Forum: Support and Development
Topic: Function that switch a boolean value
Replies: 6
Views: 916

Re: Function that switch a boolean value

pgimeno wrote:
Mon Dec 28, 2020 7:44 pm
@sphyrth why the double comparison?
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.
by sphyrth
Mon Dec 28, 2020 1:47 pm
Forum: Support and Development
Topic: Function that switch a boolean value
Replies: 6
Views: 916

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
by sphyrth
Mon Dec 28, 2020 6:22 am
Forum: Games and Creations
Topic: Hoarder's Horrible House of Stuff - A 3D Puzzle Game
Replies: 8
Views: 946

Re: Hoarder's Horrible House of Stuff - A 3D Puzzle Game

Love the choice of music.

It completes the "Adventure Sokoban" vibe.
by sphyrth
Wed Dec 23, 2020 4:39 am
Forum: Support and Development
Topic: Can't move my Sprite
Replies: 2
Views: 347

Re: Can't move my Sprite

I'm only assuming that you didn't call Player:update(dt) inside love.update(dt)
by sphyrth
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: 520

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.
by sphyrth
Sat Dec 19, 2020 1:17 am
Forum: General
Topic: What do you use to design your game concepts?
Replies: 5
Views: 3432

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 definitely diverge ...
by sphyrth
Thu Dec 17, 2020 12:51 am
Forum: General
Topic: How to make a platformer [Youtube Tutorial] - All (6) episodes released!
Replies: 17
Views: 14951

Re: How to make a platformer [Youtube Tutorial] - E5 Released!

Jeeper wrote:
Wed Dec 16, 2020 7:02 pm
Do you have any suggestions on topics I should cover in the future?
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.