怎么用python做简单的游戏 想使用Python做游戏服务器端开发,需要具备哪些技术?

[更新]
·
·
分类:互联网
4743 阅读

怎么用python做简单的游戏

想使用Python做游戏服务器端开发,需要具备哪些技术?

想使用Python做游戏服务器端开发,需要具备哪些技术?

你自己说的太含糊了。游戏服务端。仅这两个词只是能说明你要求的服务器并发量要大,此外可能会有一个游戏引擎。
具体的你用的是什么游戏类型。需要什么样的引擎。以及是否是网网游戏,或者是FLASH做的RPG游戏都没有说。所以很难给出一个具体的框架与协议。
不过简单的说,python做游戏服务器足够,以前有人用python做过魔兽世界的游戏服务器,做过EVE的客户端。通常来讲,会使用一个内存数据库,一组关系型数据库。还有几套应用系统,比如交易系统,副本系统,对话系统,用户管理系统,支付系统系统。
都是相互独立的,与游戏引擎关系不大。 要用的技术挺复杂的。主要是网络,安全,进程管理,C语言接口,数据库,图像处理,分布式管理等。

python可以注入游戏吗?

可以肯定的是python是可以注入游戏的。Github上面有个项目,里面集合了不少的Python开发的小游戏也可以自己玩,也适合新手用来练习项目,另外PyGame里面集合了很多的python开发的小游戏。

Python能写游戏吗?有没有什么开源项目?

我顺手Google了一下最流行的24个Python开源游戏项目,希望对你有所帮助:
The Top 24 Pygame Open Source Projects
Categories gt Games gt Pygame
Pygame ?2,133
pygame (the library) is a Free and Open Source python programming language library for making multimedia applications like games built on top of the excellent SDL library. C, Python, Native, OpenGL.
Become A Software Engineer At Top Companies ?Sponsored
Identify your strengths with a free online coding quiz, and skip resume and recruiter screens at multiple companies at once. Its free, confidential, includes a free flight and hotel, along with help to study to pass interviews and negotiate a high salary!
Games ?1,989
Some games created by python code.
Mu ?841
A small, simple editor for beginner Python programmers. Written in Python and Qt5.
Pygame Learning Environment ?738
PyGame Learning Environment (PLE) -- Reinforcement Learning Environment in Python.
Pymunk ?404
Pymunk is a easy-to-use pythonic 2d physics library that can be used whenever you need 2d rigid body physics from Python
Flappy Bird Deep Q Learning Pytorch ?381
Deep Q-learning for playing flappy bird game
Spaceshooter ?374
The classic retro game recreated using Pygame and python
Airgesture ?332
Play games without touching keyboard
Pygame_tutorials ?272
Code to go along with lessons at
Face Tracking With Anime Characters ?245
Hello! I have made a Python project where YURI from the game doki doki literature club accesses the webcam and stares directly into the players soul. Hope you enjoy!
Pgzero ?227
A zero-boilerplate games programming framework for Python 3, based on Pygame.
Pydark ?195
PyDark is a 2D and Online Multiplayer video game framework written on-top of Python and PyGame.
Swervinmervin ?185
A truly radical homage to 16-bit racing games.
Singularity ?184
A simulation of a true AI. Survive, grow, and learn.
Drl ?157
Repository for codes of Deep Reinforcement Learning
Space_invaders ?143
Python clone with a modern twist
Stellar ?138
An open-source IDE for game development.
Pygame Menu ?137
Menu for pygame. Simple, lightweight and easy to use
Toycarirl ?105
Implementation of Inverse Reinforcement Learning Algorithm on a toy car in a 2D world problem, (Apprenticeship Learning via Inverse Reinforcement Learning Abbeel amp Ng, 2004)
Pibooth ?91
The pibooth project provides a Photo Booth application out-of-the-box for Raspberry Pi and opencv compatible devices
Harmless ?85
A chinese chess engine
Ezpygame ?71
An easier way to use pygame
Chrome T Rex Rush ?61
A python remake of the famous T-Rex game from Google chrome
Pygame Car Tutorial ?15