Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Game Development Design articles  (Read 31745 times)

0 Members and 1 Guest are viewing this topic.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
AW: Re: Game Development Design articles
« Reply #15 on: January 19, 2013, 03:28:42 pm »
Is there a noticeable overhead in using Property<int> instead of actual ints?
I guess it really depends on the use case and implementation. I guess it could be possible to write it in a way, so the compiler can optimize to an int directly.
Besides that a component system isn't about a certain type, but about any type, which are part of the whole system. But I guess if you only use/need ints, then you won't need such a generic way, as said in the article , it is only needed because we want one type that fits all types. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

SuperV1234

  • SFML Team
  • Full Member
  • *****
  • Posts: 188
    • View Profile
Re: Game Development Design articles
« Reply #16 on: January 19, 2013, 03:54:28 pm »
Thanks for the reply. I'd like to see an implementation of this :)

cire

  • Full Member
  • ***
  • Posts: 138
    • View Profile
Re: Game Development Design articles
« Reply #17 on: January 19, 2013, 07:44:26 pm »
It's not exactly an implementation, but Game Programming Patterns does a pretty good job of illustrating the component pattern with a realistic example using C++ code.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: Game Development Design articles
« Reply #18 on: January 19, 2013, 10:25:57 pm »
Laurent: That is correct, thanks for the pointer.

SuperV1234: Yes, there is overhead. If it is noticeable depends on your implementation. It is possible to reduce the complexity to one single indirection operation when accessing properties. For example, you can fetch pointers to the property values when the controller is created and store them as members in the controller.

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Game Development Design articles
« Reply #19 on: February 09, 2013, 03:07:52 pm »
Are there going to be more? :o What will be in them? Will you write about Lua in general/Lua in FlexWorld?
« Last Edit: February 09, 2013, 04:43:37 pm by FRex »
Back to C++ gamedev with SFML in May 2023

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: Game Development Design articles
« Reply #20 on: February 10, 2013, 02:02:03 am »
Yes, I'm planning on writing more articles. Like always, that depends on time and mood. ;)

I already have some topics in mind that are probably worth writing about. Mostly things that are discussed/explained again and again, especially on the IRC channel, like basic code dependency problems in games, separation of logic, data and rendering and much more.

Your idea of writing about embedding scripting languages for game development is also a nice topic. I think it might be useful for a lot of people, because it allows rapid prototyping and completely separating logic into an external language, which can be mostly reloaded during runtime.

However my main focus for the next articles is clearly code design. In my opinion game development is very often tried by newcomers not having a solid C++ background, so knowledge about designing the core structures is missing. When development in a project is progressing, people are not refactoring their stuff, and soon realize the mess they've produced, which results in losing overview, frustration and therefore cancellation of projects, unfortunately. I'd be happy if I could at least help some people to avoid making such "mistakes".

But still, I'm of course very open for ideas!

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: Game Development Design articles
« Reply #21 on: February 10, 2013, 04:41:46 am »

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Game Development Design articles
« Reply #22 on: February 10, 2013, 11:59:53 am »
Quote
like basic code dependency problems in games, separation of logic, data and rendering and much more.
Awesome!
I'm looking very forward to that (esp. that this last article was mostly correct when it said I'm probably sighing).
I'm also looking forward to scripting article because you probably have Lua bias(and so do I  ;D ).
« Last Edit: February 10, 2013, 11:14:26 pm by FRex »
Back to C++ gamedev with SFML in May 2023

downtimes

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Game Development Design articles
« Reply #23 on: February 11, 2013, 02:05:40 am »
If you keep the Quality of your work on the same level it doesn't really matter much about what you write. All the topics you stated have enough stuff you can write about.
Very interesting article. After reading it i was instantly temptet to try a little prototype of your described system (talking about the self-attaching Component System; not enough time currently though).

Looking forward to your next Article.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: Game Development Design articles
« Reply #24 on: February 11, 2013, 08:21:47 am »
Quote
After reading it i was instantly temptet to try a little prototype of your described system
Using test-driven development, I hope! ;)

Quote
I'm also looking forward to scripting article because you probably have Lua bias(and so do I   ).
I'm actually more biased to Python than Lua, but in my opinion Lua is much better embeddable, faster and more lightweight. Keep in mind an article about using scripting languages won't be a tutorial on how to do it in detail. What problems do you exactly have in that area?

Thanks for your feedback.

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Game Development Design articles
« Reply #25 on: February 11, 2013, 12:58:09 pm »
Quote
What problems do you exactly have in that area?
I'm just learning Lua 5.2, so far I know stack managment, in-Lua syntax, C function calling and creating (meta)tables for user data or functions. But as always : I have no
Quote
solid C++ background, so knowledge about designing the core structures is missing
and I don't know how to put that all to use together. :P
Quote
like basic code dependency problems in games, separation of logic, data and rendering and much more.
But that is really more interesting, I'd rather not double the amount of languages I have design problems in. ;D
« Last Edit: February 11, 2013, 01:01:30 pm by FRex »
Back to C++ gamedev with SFML in May 2023

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: Game Development Design articles
« Reply #26 on: February 11, 2013, 07:48:51 pm »
I see. :) I guess general design issues are most popular among developers. ;)

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Game Development Design articles
« Reply #27 on: February 11, 2013, 08:27:14 pm »
Right ;), what is a good way to split rendering and logic? And how do entity components in entity system communicate?
Back to C++ gamedev with SFML in May 2023

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: Game Development Design articles
« Reply #28 on: February 11, 2013, 09:12:57 pm »
Quote
what is a good way to split rendering and logic? And how do entity components in entity system communicate?
Those questions are very general. I'll probably talk about the first one in another article, because it can't be explained in two sentences (at least I can't). Regarding the second question: Do you have an example/use-case? I'm not quite sure what you're trying to do.

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Game Development Design articles
« Reply #29 on: February 11, 2013, 09:22:32 pm »
Scrap the second question, I'm probably too new to entity approach to understand it yet.. that's alright.
Quote
I'll probably talk about the first one in another article,
Is it going to be based on mvc? It apparently can be used in games: http://www.gamasutra.com/view/feature/2280/the_guerrilla_guide_to_game_code.php
Back to C++ gamedev with SFML in May 2023

 

anything