All Projects → dciets → Arcade-CS-Games

dciets / Arcade-CS-Games

Licence: other
Jeux pour l'arcade des CS Games

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Arcade-CS-Games

pool
A pool game written in python and pygame.
Stars: ✭ 33 (+83.33%)
Mutual labels:  pygame
Pycraft
Pycraft is the OpenGL, open world, video game made entirely with Python. This project is a game to shed some light on OpenGL programming in Python as it is a seldom touched area of Python's vast amount of uses. Feel free to give this project a run, and message us if you have any feedback!
Stars: ✭ 39 (+116.67%)
Mutual labels:  pygame
pygameweb
🎮🕸️ pygame.org website. Python, PostgreSQL, Flask, sqlalchemy, JS.
Stars: ✭ 94 (+422.22%)
Mutual labels:  pygame
EvoArm
An open-source 3D-printable robotic arm
Stars: ✭ 114 (+533.33%)
Mutual labels:  pygame
RealTime-DigitRecognition
RealTime DigitRecognition using Convolutional Neural Network(CNN) with keras.
Stars: ✭ 108 (+500%)
Mutual labels:  pygame
COVID-Resource-Allocation-Simulator
Agent-based modelling for resource allocation in viral crises to investigate resource allocation and policy interventions with respect to transmission rate.
Stars: ✭ 61 (+238.89%)
Mutual labels:  pygame
midiGenerator
Generate midi file with deep neural network 🎶
Stars: ✭ 30 (+66.67%)
Mutual labels:  pygame
python-tetris
Tetris game with AI made by pygame, inspired by react-tetris
Stars: ✭ 19 (+5.56%)
Mutual labels:  pygame
Fegaria-Remastered
Similar to my other project Fegaria, but with improved graphics, collisions and terrain generation.
Stars: ✭ 73 (+305.56%)
Mutual labels:  pygame
raylib-py
A Python binding for the great C library raylib.
Stars: ✭ 147 (+716.67%)
Mutual labels:  pygame
Python.io
Snake game inspired from Slither.io but features a python instead of a snake. Made in Python 3
Stars: ✭ 15 (-16.67%)
Mutual labels:  pygame
Snake-Game-with-Deep-learning
Developing a neural network to play a snake game
Stars: ✭ 43 (+138.89%)
Mutual labels:  pygame
PlaneWars
微信飞机大战 python pygame
Stars: ✭ 22 (+22.22%)
Mutual labels:  pygame
Elimination-Game
利用pygame实现消消乐小游戏GUI界面(Use pygame to eliminate the GUI interface of music game)
Stars: ✭ 18 (+0%)
Mutual labels:  pygame
connect4
🎮 It is a two-player connection game in which the players first choose a color and then take turns dropping one colored disc from the top into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the lowest available space within the column, user wins by forming row of four of same color
Stars: ✭ 18 (+0%)
Mutual labels:  pygame
pygame-car-tutorial
rmgi.blog./pygame-2d-car-tutorial.html
Stars: ✭ 30 (+66.67%)
Mutual labels:  pygame
DungeonGenerator
Procedural Dungeon Generation with Python and Pygame
Stars: ✭ 57 (+216.67%)
Mutual labels:  pygame
ALIEN INVASION
A repository with game files being made with pygame
Stars: ✭ 35 (+94.44%)
Mutual labels:  pygame
ConkyLuaMakerGUIv2
An interactive GUI to generate lua conky
Stars: ✭ 20 (+11.11%)
Mutual labels:  pygame
Conway-s-Game-of-life---Python
Conways game of life with pygame
Stars: ✭ 26 (+44.44%)
Mutual labels:  pygame

Arcade-CS-Games-2015

Jeux pour l'arcade des CS Games 2015

Game for the CS Games 2015 Arcade

Create a Pull Request to add new game. You can ping @isra17 or email him at [email protected] if you have any issue or question.

The arcade can have two player playing at once and has a 4-direction digital joystick + 1 button. Keep the game short and simple. Each round should be between 3 and 10 seconds.

Ajouter un minigame

Créer un nouveau module sous /minigames/ et créer une classe dérivant de multiplayer.Minigame ou singleplayer.Minigame. Un jeu de type singleplayer consiste à un minigame joué tour par tour jusqu'à ce qu'un joueur ait 3 défaites. Un jeu multijoueur est joué par les deux joueurs simultanément.

Finalement, importer la classe du jeu dans /minigames/__init__.py.

Chaque classe de minigame doit définir l'attribut de classe name qui sera affiché aux joueurs.

Les méthodes suivantes peuvent être définies dans la classe de jeu:

Create a new module under /minigames/ and create a subclass for multiplayer.Minigame or singleplayer.Minigame. A singleplayer game is a game that is played turn by turn by each player until one player loses 3 times. A multiplayer game is played by the two players simultaneously.

Finally, import the minigame class in /minigames/__init__.py.

Minigame class attributes

name

The name attribute must be overloaded by the minigame implementation. This attribute gives minimal instructions to the player.

duration

The name attribute must be overloaded by the minigame implementation. This attribute sets the duration of the minigame.

Minigame instance attributes

self.scores

If your minigame keeps track of user-defined points during a minigame, your can use this attrribute. This attribute must be typed as self.scores = [player1_points, player2_points]

self.frame

Returns the number of frames elapsed since the start of the minigame. Every minigame runs at a capped 30 FPS.

self.elapsed_ms

Returns the number of milliseconds elapsed since the start of the minigame. One minigame tick() is roughly 33.33ms.

Minigame methods

init(self)

Méthode appelée avant une manche du jeu.

Method called before the minigame starts.

tick(self)

Méthode appelée à chaque boucle d'update.

Method called in the update loop.

get_duration(self)

Méthode retournant le temps de jeu total. Peut être généré à partir de self.difficulty pour diminuer le temps selon la difficulté.

Method that returns the total duration of the mini-game. Can be generated from self.difficulty to reduce the time and make the mini-game harder.

get_results(self) ou get_result(self)

Méthode retournant le résultat des joueurs ou du joueur dans le cas d'un jeu singleplayer.

Method that returns the results (win/lose) for each player.

Exemple multiplayer

import pygame
from pygame.locals import *
import multiplayer
from input_map import *

class MTest(multiplayer.Minigame):
    name = "Multiplayer Test"

    def init(self):
        self.results = [False, False]

    def tick(self):
        for event in pygame.event.get():
            if event.type == KEYDOWN:
                for i in range(2):
                    if event.key == PLAYERS_MAPPING[i][UP]:
                        self.results[i] = True
                    elif event.key == PLAYERS_MAPPING[i][DOWN]:
                        self.results[i] = False

        self.gfx.print_msg("[W]in or [L]ose", (50, 50))

        if self.results[0]:
            self.gfx.print_msg("Winning", (50, 100), color=(0, 255, 0))
        else:
            self.gfx.print_msg("Losing", (50, 100), color=(255, 0, 0))

        if self.results[1]:
            self.gfx.print_msg("Winning", topright=(750, 100), color=(0, 255, 0))
        else:
            self.gfx.print_msg("Losing", topright=(750, 100), color=(255, 0, 0))

    def get_results(self):
        return self.results

Exemple singleplayer

import pygame
from pygame.locals import *
import singleplayer
from input_map import *

class STest(singleplayer.Minigame):
    name = "Singleplayer Test"

    def init(self):
        self.result = False

    def tick(self):
        pygame.event.get()
        self.result = self.get_player_keys()[UP]

        self.gfx.print_msg("[W]in or [L]ose", (50, 50))

        if self.result:
            self.gfx.print_msg("Winning", (50, 100), color=(0, 255, 0))
        else:
            self.gfx.print_msg("Losing", (50, 100), color=(255, 0, 0))

    def get_result(self):
        return self.result
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].