Skip to content

WatashiWaraio/Happy-Zombie-Hen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸงŸโ€โ™€๏ธ๐Ÿ’ป Happy-Zombie-Hen ๐Ÿ”

Hi, this is Karen again! Today, we're diving into an educational example on zombie computersโ€”with a twist! Weโ€™re making a videogame, but this game also includes a client-server connection setup. This will be a playful introduction to how connections work in a controlled environment. Letโ€™s dive in! ๐Ÿš€

What's Inside the Repo?

This repository has two main components:

  • setup.py โ€” Our Happy Hen videogame! ๐ŸŽฎ๐Ÿ”

  • controlador.py โ€” A server socket to manage connections. ๐Ÿ–ฅ๏ธ๐Ÿ”—

๐Ÿ“‹ Main Objective

The main goal is to create an .exe using Pygame so that our game can run as a standalone application. To do this, weโ€™ll use cx_Freeze to turn our game into an executable file.

Getting Started

Set Up the IP Address:

Before you begin, youโ€™ll need to modify the IP address in the code. Make sure to enter the IP of the computer you want to use as the server in both the game (setup.py) and the server (controlador.py) files.

Install cx_Freeze:

This tool is what allows us to create an .exe file for our Pygame project.

pip install cx_Freeze

Build an example on cmd:

python setup.py build

On Server device run (controlador.py) :

python controlador.py 

๐ŸŽ‰ Running the Game on client device

After setting up, you can compile and run the game! It's a fun way to explore basic client-server interactions while watching a happy hen survive a zombie apocalypse! ๐Ÿ”๐ŸงŸโ€โ™‚๏ธ]

EXAMPLES

SETUP.EXE

image

CONTROLADOR.PY

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages