Vityou

Members
  • Content count

    8
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Vityou

  • Rank
    Newbie

Personal Information

  • Interests
    Programming
  1. ok, so I understand how to add functions from C++ to a lua environment. But what I'm looking for is how to add an object (a unit from the game) from C++ to a lua env for the user to access, and when the user does something with the object in the lua script, it is reflected in the actual game.
  2. Either, whichever one is more popular or easier. I just need a way for the game to be controlled in real time by the scripts.
  3. Do you know of any resource that show how to do this?
  4. Isn't that what embedding a script is?
  5. Yet Another Pong

    Not sure what you mean. From the Wikipedia article on OOP: "Languages that support object-oriented programming typically use inheritance for code reuse and extensibility in the form of either classes or prototypes." Also, from Microsoft's website on C++: "Namespaces are used to organize code into logical groups and to prevent name collisions that can occur especially when your code base includes multiple libraries"
  6. Yet Another Pong

    The whole reason OOP and classes are used is for reusability of code. if he doesn't reuse anything, he shouldn't use classes. Namespaces are what you use when you want to group similar functions.
  7. I am thinking of making a game like screeps, where you use actual programming to control the game, but I'm not sure about the best way to do this. I'm probably going to use lua or javascript for the language, and I would like to represent units in the game as objects that the user can command and modify, with restraints based on the actual game, like how screeps does it. However, I am not sure how to get started. I think I have to use C or C++ and then embed the languages, but I'm not sure where to go from there, for example, having objects in lua actually correspond to units in the game. Are there any resources that explain how to do this? Also, I'm not concerned about the graphics of the game whatsoever, it might as well just be a text adventure as far as I'm concerned, I just want the user to be able to control the game through scripting.
  8. I'm looking to create some kind of simulation like game similar to rimworld and dwarf fortress. I would also like to include a way to control units through programming, similar to screeps, I'm even thinking of using JavaScript as well. I would like the graphics to be separate from the actual game, so that people can make their own if they don't like the default on (the game will be open source). Are there any languages or engines that would be good for this task? I mostly program in functional languages like racket, but I know some python, Java, and JavaScript. I know how to use unity somewhat, but I'm not sure that it would be best for this. Also, I'm not sure if this is important for picking out the right tools, but I am thinking of including a feature to run parts of the simulation at different levels of detail, for example, you could "zoom in" on a battle that's happening and see each individual shot, or you could just get the main idea of the battle, like if you won and how much gold you got or something like that. Thanks for any suggestions.