can we make a game with python in unity? [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I have few questions about programming a game (3d or 2d) with a python language and Unity game engine
Can we make a game with python in Unity game engine?
if yes how?
please share basic tutorials about this topic.

Unity originally comes with support for scripting in C# and Javascript by default. If you wish to utilize all the features of Unity3d, I would recommend you script in either of these.
That being said, there are third party interpreters and plugins that enable you to use Python on unity, but I would recommend sticking to C#
Refer these for ways to use Python in Unity:
UniPython - Python Scripting in Unity3D based games
Python interpreter in Unity

Currently there is not a way to directly use python within unity. You can use an interpreter that will call functions. This can only take you so far beyond the built in functions that unity currently used.
Since you already know Python and probably learned Java in school or have at least seen it. C# is a very simple language to pick up that is very versatile so I would recommend learning it.
Otherwise you can go Piglet or Arcade Game Engine. These engines are built for Python, Piglet does not need outside libraries / dependencies. You could also go with a Blueprint style coding method, both are available with unity and unreal.

Related

Is it possible to create a desktop application using C# and Python to create a Modern GUI [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I've been looking into coding with different languages and have found that C# is a great language for designing modern GUIs. I like python; however, when it comes to designing a GUI with Python they tend to look pretty ugly and never match up to the quality of applications made with C# using WPF and WinForms etc. I've heard of IronPython but do not like the idea of using it. I wanted to ask if it was possible to design the front-end of an application using C# to create a modern looking application and then process all user-input and events through python (more familiar with Python and love coding with it!). If it is, then how? (Please leave a comment if you would like to ask me a question or would like from me to explain further. Thank you!)
Did you try pyqt5? PyQt5 is a comprehensive set of Python bindings for Qt v5. It is implemented as more than 35 extension modules and enables Python to be used as an alternative application development language to C++ on all supported platforms including iOS and Android.

C/C++ source code parser using PYTHON [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Could anyone point me an already available python snippet/script which can parse C/C++ code?
Basically I wanted to create an Class-to-Function() and Object-used-file-location-mapping etc., of a C/C++ source code using python, so that I can create a new level of abstraction of code in a script readable format, which can be used for Artificial Intelligence in the Code parsing..!
LLVM built with Clang will produce libclang for you which, luckily, happens to have great Python bindings right out of the box. Get the latest LLVM and Clang from the releases page, the current stable one being LLVM 6.0.0. Make sure you have the appropriate Python development dependencies and build all of it. Then you can use Clang's Tooling to do all sorts of things to transform or modify your source code, here's a good page to get you started.
I would suggest using Tooling instead of a hand rolled or generated parser especially for C++ due to its complexity. The library however handles it for you and allows you to transform or introspect the produced AST, letting you build on top of that.
No one will generally provide a fully working solution to a complex problem like you've presented, you will have to do the bulk of the work yourself, but those resources are great if you want to get started.

Using Robot framework for Java GUI [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am new to Robotframework as well as to Python. I got to do the Functional Testing of the Java application(not a single jar file, but it is an installer file) and even i got to know that there is SwingLibrary for doing that.
Now my question is
What all the tools do I need to have apart form Robotframework, RIDE
Will it be the Java coding or the Python scripts?
How to connect my application to the test framework
and please post any documentations for learning because i went through this link , but i didn't understand where to deploy this thing.
Other than Ride, you can use Eclipse IDE. Install java and set environmental variables for that along with Eclipse IDE on your
machine. To create your own robot framework you need to add a plugin
called "RED" in your eclipse IDE.
There will be libraries available for some actions. If you want to create your own then you can write your test scripts using python or Java with robot framework. Every method name would be your keyword.
Once you create your own robot project, you can import the libraries that you want into red.XML which you will find in your
robot project.
Let me know if you have any queries..

Embed python in to iOS (iphone) app written in Objective-C/Swift/C/C++ (whatever language i can compile in Xcode and bridge to iOS) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I Do Not Intend To Put The Project On The App Store
Short Question - is there any up-to-date PyObjC tutorial for embedding python scripts into an iOS app written in Objective-C and/or swift? If not if there any up-to-date method for achieving the same goal?
Background: I want to run a bunch python scripts in an objective-c ios app. I have tried a couple of things:
I have tried using the python.framework, but i get a "could not build Python module" error. After googling for help, I realized that python.framework does not work on iOS - Run python scripts in iOS app
PyObjC - For the sake of experimenting, I managed to get the generated *.plugin working on OS X. I followed this tutorial - https://pythonhosted.org/pyobjc/tutorials/embedded.html
Using the same method on iOS, it fails to compile
If anyone is ever interested in calling python from swift, here is some helpful material I found(used) -
use the python framework - https://developer.apple.com/library/ios/technotes/tn2328/_index.html
PyObjC (a little more challenging) -
cobbal - https://github.com/cobbal/python-for-iphone
python docs (you would need to make C-Swift bridhe)
Most of it is for Objective-c, but if you need to use swift you can easily just create an ObjC-Swift bridge (super-super easy) - Lookup the apple docs
I managed to get the first two methods working on an OS X app, but I got some architecture errors for iOS(not important). I've pushed the project aside for now, I have a ton I need to get done.
Hope this will be helpful for anyone interested :-)

How to create desktop applications using python [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have been writing desktop application in c# and of the experience of writing my code in VS, compiling it and let .NET framework do the running and execution.
Now I want to develop desktop applications using python. I am new to python.
Speaking of UI programming, please suggest which framework is best for rich desktop app programming and why, remember I'm coming from a tool like WPF. Also Please suggest any useful tutorials to start developing desktop applications using Python.
I think that answers will be very subjective.
If you are not familiar with python, I suggest you to try few different tutorials and books. If you have experiance with C#, may be Python reference will be good for you: https://docs.python.org/2/reference/ Also, python documentation is pretty good.
After you become more or less familiar with python, than try different Python UI frameworks. Find some 5 popular fremeworks, compare their advantages and disadvantages in terms of problem you are going to solve.
Than just try few of this five. Also lots of popular python books contain chapters about python applications with GUI.
I'm now sure if StackOverflow rules are allow to suggest any specific books. Here the list for python UI frameworks (with a short description): https://wiki.python.org/moin/GuiProgramming
You can look for PyQt and Tkinter.

Categories

Resources