外星人入侵游戏-(创新版)

简介: 外星人入侵游戏-(创新版)

首先,在python上 安装pygame

资源--->https://download.csdn.net/download/Aileenvov/88301424?spm=1001.2014.3001.5503

然后转到228页,根据步骤进行安装

然后,创建文件夹 要注意分级别

插入的图片

插入图片:需要注意图片的大小比例,否则可能显示不出来,这需要根据系统屏幕大小进行设置,

将所需要的图片和音乐拖到对应的文件夹,这是我的图片

主函数 Aileen_invasion的文件

import sys
from time import sleep
import pygame
from settings import Settings
from game_starts import GameStats
from scoreboard import Scoreboard
from button import Button
from ship import Ship
from bullet import Bullet
from aileen import Aileen
class AileenInvasion:
    """Overall class to manage game assets and behavior.整体类来管理游戏资产和行为"""
    def __init__(self):#初始化
        """Initialize the game, and create game resources."""
        pygame.init()
        self.settings = Settings()
        self.screen = pygame.display.set_mode((0,0),pygame.FULLSCREEN)
        self.settings.screen_width = self.screen.get_rect().width
        self.settings.screen_height = self.screen.get_rect().height
        # self.screen = pygame.display.set_mode(
        #     (self.settings.screen_width,self.settings.screen_height))
        #类中变量前有self,说明该变量绑定在当前实例化本身
        pygame.display.set_caption("Aileen Invasion")
        # Creation an instance to store game statistics.
        self.stats = GameStats(self)
        # Create an instance to store game statics,
        # and create a scoreboard.
        self.sb = Scoreboard(self)
        self.ship = Ship(self)
        self.bullets = pygame.sprite.Group()#Group可以批量使用的函数
        self.aileens = pygame.sprite.Group()
        self._create_fleet()
        #Make the play button.
        self.play_button = Button(self,"Play")
        self.bg_color =(0,0,225)  #代表红 绿 蓝 三颜色
    # def _create_fleet(self):
    #     """Create the fleet of aileens."""
    #     #Make a aileen
    #     aileen = Aileen(self)
    #     self.aileens.add(aileen)
    #     #set the background color.
    def run_game(self): #功能:1监听事件,2处理事件,3更新屏幕事件
        """Start the main loop for the game."""
        while True:
            # 1监听事件函数--监听和处理用户的行为
            self._check_events()#将监听事件(封装)外包给这个函数,减轻run_game的工作量---这个过程叫重构(refactory)
            if self.stats.game_active:
                # 2处理事件函数
                self.ship.update()
                #更新子弹
                self._update_bullets()
                self._update_aileens()
            # 3 屏幕更新函数
            self._update_screen()
    def _update_bullets(self):
            self.bullets.update()
            if not self.aileens:
            # Destory existing  bullets and create new fleet
                self.bullets.empty()
                self._create_fleet()
            # Get rid of the bullets that have disappeared.
            for bullet in self.bullets.copy():
                if bullet.rect.bottom <= 0:
                    self.bullets.remove(bullet)
            self._check_bullet_aileen_collisions()
    def _check_bullet_aileen_collisions(self):
        """Respond to bullet-aileen collisions."""
        """ Remove any bullets and aileens that have collided  """
        #👇
        collisions = pygame.sprite.groupcollide(
            self.bullets, self.aileens,True,True)
        if collisions:  #collision是字典类型变量
            # for aileens in collisions.values():
            self.stats.score += self.settings.aileen_points  #* len(aileens)
            for aileens in collisions.values():
                self.stats.score += self.settings.aileen_points * len(aileens)
            self.sb.prep_score()
            self.sb.check_high_score()
            self.sb.prep_high_score()
        if not self.aileens:
                # Destory existing bullets and create new fleet.
                self.bullets.empty()
                self._create_fleet()
                self.settings.increase_speed()
                # Increase level
                self.stats.level += 1
                self.sb.prep_level()
            # print(len(self.bullets))
            # Watch for keyboard and mouse events.  监听用户在做什么操作--这里设置游戏菜单栏
    def _check_events(self): #
        #--snip--
        """Respond to keypress and mouse events"""
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                sys.exit()
            elif event.type == pygame.KEYDOWN:
                self._check_keydown_events(event)
            elif event.type == pygame.KEYUP:
                self._check_keyup_events(event)
            elif event.type == pygame.MOUSEBUTTONDOWN:
                mouse_pos = pygame.mouse.get_pos()
                self._check_play_button(mouse_pos)
    def _check_play_button(self,mouse_pos):
        """Start a new game when the player clicks Play."""
        button_clicked = self.play_button.rect.collidepoint(mouse_pos)
        if button_clicked and not self.stats.game_active:
            # Hide the mouse cursor.
            pygame.mouse.set_visible(False)
            # Reset the game statistics.
            self.stats.reset_stats()
            self.stats.game_active = True
            # 确保分数清0
            self.sb.prep_score()
            self.sb.prep_level()
            self.sb.prep_ships()
            # Get rid of any remaining aileens and bullets.
            self.aileens.empty()
            self.bullets.empty()
            #Create  A new fleet and center the ship.
            self._create_fleet()
            self.ship.center_ship()
            #Reset the game settings.
            self.settings.initialize_dynamic_settings()
            pygame.mixer.init()
            pygame.mixer.music.load("music/香香 - 猪之歌.mp3")
            # pygame.mixer.music.set_volume(2)
            pygame.mixer.music.play()
    def _check_keydown_events(self,event):
        """Respond to keypress"""
                #判断右键
        if event.key == pygame.K_RIGHT:
                    #处理右键
            self.ship.moving_right = True
        elif event.key == pygame.K_LEFT:
            self.ship.moving_left = True
        elif event.key == pygame.K_UP:
            self.ship.moving_up = True
        elif event.key == pygame.K_DOWN:
            self.ship.moving_down = True
        elif event.key == pygame.K_q:#按q键退出游戏
            sys.exit()
        elif event.key == pygame.K_SPACE:
            self._fire_bullet()
    def _check_keyup_events(self,event):
        """Respond to key release."""
        if event.key == pygame.K_RIGHT:
            self.ship.moving_right = False
        elif event.key == pygame.K_LEFT:
            self.ship.moving_left = False
                     # Move the ship to the right.
            self.ship.rect.x += 1
        elif event.key == pygame.K_m:
            self.screen = pygame.display.set_mode((0, 0), pygame.FULLSCREEN)
            self.settings.screen_width =self.screen.get_rect().width
            self.settings.screen_height = self.screen.get_rect().height
            self.ship = Ship(self)
            self.aliens = pygame.sprite.Group()
            self._create_fleet()
        elif event.key == pygame.K_n:
            self.settings = Settings()
            self.screen = pygame.display.set_mode((self.settings.screen_width, self.settings.screen_height))
            self.ship = Ship(self)
            self.aliens = pygame.sprite.Group()
            self._create_fleet()
        elif event.key == pygame.K_UP:
            self.ship.moving_up = False
        elif event.key == pygame.K_DOWN:
            self.ship.moving_down = False
    def _fire_bullet(self):
        """create a new bullet and add it to the bullets group."""
        if len(self.bullets) < self.settings.bullets_allowed:
            new_bullet = Bullet(self)
            self.bullets.add(new_bullet)
    def _create_fleet(self):#self传的也是ai
        """Create the fleet of aileens."""
        #Create an aileen  and find the number of aileens in a row
        #Spacing between each aileen is equal to one aileen width.
        aileen = Aileen(self)
        aileen_width, aileen_height  = aileen.rect.size
        available_space_x = self.settings.screen_width - (2 * aileen_width)
        print(available_space_x)
        print(self.settings.screen_width)
        print(2 * aileen_width)
        number_aileen_x = available_space_x // (2 * aileen_width)
        # Determine the number of rows of aileens that fit on the screen.
        ship_height =self.ship.rect.height
        available_space_y = (self.settings.screen_height -
                             (3 * aileen_height) - ship_height)
        number_rows = available_space_y // (2 * aileen_height)
        #Create the first row of aileens.
        for row_number in range(number_rows):
            for aileen_number in range(number_aileen_x):
                self._create_aileen(aileen_number, row_number)
    def _create_aileen(self,aileen_number, row_number):
            # Create an aileen and place it in row.
            # Make a aileen
            aileen = Aileen(self)
            aileen_width, aileen_height =aileen.rect.size
            aileen.x = aileen_width + 2 * aileen_width * aileen_number
            aileen.rect.x = aileen.x
            aileen.rect.y = aileen.rect.height + 2 * aileen.rect.height * row_number
            self.aileens.add(aileen)
    def _check_aileens_bottom(self):
        """Check if any aileens have reached the bottom of the screen."""
        screen_rect = self.screen.get_rect()
        for aileen in self.aileens.sprites():
            if aileen.rect.bottom >= screen_rect.bottom:
                #Treat this the same as if the ship got hit.
                self._ship_hit()
                break
             # Redraw the screen during each  pass through the loop.  更新画布颜色
    def _update_aileens(self):
        """
        Check if the fleet is at an edge,
        then update the positions of all aliens in the fleet.
        """
        self._check_fleet_edges()
        """Update the positions of all aileens in the fleet."""
        self.aileens.update()
        # Look for aileen-ship collisions.
        if pygame.sprite.spritecollideany(self.ship, self.aileens):
            self._ship_hit()
            print("Ship hit!!!")
        # Look for aileens hitting the bottom of the screen
        self._check_aileens_bottom()
    def _check_fleet_edges(self):
        """Respond appropriately if any aileens have reached an edge."""
        for aileen in self.aileens.sprites():
            if aileen.check_edges():
                self._change_fleet_direction()
                break
    def _change_fleet_direction(self):
        """Drop the entire fleet and change the fleet's direction."""
        for aileen in self.aileens.sprites():
            aileen.rect.y += self.settings.fleet_drop_speed
        self.settings.fleet_direction *= -1
    def _ship_hit(self):
        """Respond to the ship being hit by an allien"""
        if self.stats.ships_left > 0:
            # Decrement ships_left.and update scoreboard
            self.stats.ships_left -= 1
            self.sb.prep_ships()
         # Get rid of any remaining aileens and bullets.
            self.aileens.empty()
            self.bullets.empty()
        # Create a new fleet and center the ship.
            self._create_fleet()
            self.ship.center_ship()
            # Pause
            sleep(0.5)
        else:
            self.stats.game_active = False
            pygame.mouse.set_visible(True)
    def _update_screen(self):
        """Update images on the screen , and flip to the new screen"""
        self.screen.fill(self.settings.bg_color)
        self.ship.blitme()
        for bullet in self.bullets.sprites():
            bullet.draw_bullet()
        self.aileens.draw(self.screen)
        #Draw the score information.
        self.sb.show_score()
        # Draw the play button if the games is inactive.
        if not self.stats.game_active:
            self.play_button.draw_button()
        self.bullets.draw(self.screen)
        pygame.display.flip()
    def check_high_score(self):
        """Check to see if there's a new high score."""
        if self.stats.score > self.stats.high_score:
            self.stats.high_score = self.stats.score
            self.prep_high_score()
if __name__ == '__main__':
        #  Make a game instance , and run the game.
    ai = AileenInvasion()#游戏本身的实例化,ai就是那个AileenInvasion
    ai.run_game()

创建外星人aileen的文件

import pygame
from pygame.sprite import Sprite
class Aileen(Sprite):
    """A class to represent a single alien in the fleet"""
    def __init__(self,ai_game):
        """Initilize the aileen and set its starting position."""
        super().__init__()
        self.screen = ai_game.screen
        self.settings = ai_game.settings
        # Load the aileen image and set its rect attribute.
        self.image = pygame.image.load("images/aileen.png")
        self.rect = self.image.get_rect()
        # Start each new aileen near the top left of the screen.
        self.rect.x = self.rect.width#将矩形左上角的值作为外星人的宽度
        self.rect.y = self.rect.height
        #通过飞船左上角的坐标来控制其它图片的位置
        #Store the aileen's exact horizontal position.
        self.x = float(self.rect.x)
    def check_edges(self):
        """Return True if aileen is at edge of screen"""
        screen_rect = self.screen.get_rect()
        if self.rect.right >= screen_rect.right or self.rect.left <= 0:
            return True
    def update(self):
        """Move the aileen to the right or left"""
        self.x += (self.settings.aileen_speed *
                        self.settings.fleet_direction)
        self.rect.x = self.x

子弹bullet的文件

import pygame
import random
from pygame.sprite import Sprite
class Bullet(Sprite):#子弹bullet继承Sprite类--继承
    """A class to manage bullets fired from the ship"""
    def __init__(self,ai_game):
        """Create a bullet object at the ship's current position"""
        super().__init__()#调用父类初始化函数
        self.screen = ai_game.screen
        self.settings = ai_game.settings
        self.color = self.settings.bullet_color
        # Load the aileen image and set its rect attribute.
        self.bullet_images = [pygame.image.load("images/heart.png"),pygame.image.load("images/banana.png"),pygame.image.load("images/cherry.png")]
        self.image = random.choice(self.bullet_images)
        self.rect = self.image.get_rect()
        #Create a bullet rect at(0,0) and then set correct position.
        self.rect =pygame.Rect(0,0,self.settings.bullet_width,
            self.settings.bullet_height)
        self.rect.midtop =ai_game.ship.rect.midtop#利用ai将船和子弹初始位置绑定,使得子弹在船中上方
        # Store the bullet's position as a decimal value.
        self.y = float(self.rect.y)
    def update(self):
        """move the bullet up the screen."""
        #update the decimal position of the bullet.
        self.y -= self.settings.bullet_speed
        #update the rect position.
        self.rect.y = self.y
    def draw_bullet(self):
        """draw the bullet to the screen"""
        self.screen.blit(self.image,self.rect)
        pygame.draw.rect(self.screen, self.color, self.rect)

按钮button的文件

import  pygame.font
class Button:
    def __init__(self,ai_game,msg):
        """Initialize button attributes."""
        self.screen = ai_game.screen
        self.screen_rect = self.screen.get_rect()
        # Set the dimensions and properties(财产,属性==attributes) of the button
        self.width, self.height = 200, 50
        self.button_color = (0, 255, 0)
        self.text_color = (255,255,255)
        self.font = pygame.font.SysFont(None, 48)
        # Build the button's rect object and center it.
        self.rect = pygame.Rect(0,0,self.width,self.height)
        self.rect.center = self.screen_rect.center
        # The button message needs to be prepped(准备) only once.
        self._prep_msg(msg)
    def _prep_msg(self,msg):
        """Turn msg into a rendered image and center and center text on the button."""
        self.msg_image = self.font.render(msg,True, self.text_color,
                                          self.button_color)
        self.msg_image_rect = self.msg_image.get_rect()
        self.msg_image_rect.center = self.rect.center
    def draw_button(self):
        # Draw blank button and then draw message.
        self.screen.fill(self.button_color,self.rect)
        self.screen.blit(self.msg_image,self.msg_image_rect)

游戏数据game_stats的文件

class GameStats:
    """Track statics for Aileen Invasion."""
    def __init__(self,ai_game):
        # High score should never be reset.
        self.high_score = 0
        # Start Aileen Invasion in an active state.
        self.game_active = True
        """Initiallize statistics."""
        self.settings = ai_game.settings
        self.reset_stats()
        # Start game in an inactive state.
        self.game_active = False
    def reset_stats(self):
        """Initialize statistics that can change during the game."""
        self.ships_left = self.settings.ship_limit
        self.score = 0
        self.level=1

游戏分数scoreboard的文件

import pygame.font
from pygame.sprite import Group
from ship import Ship
class Scoreboard:
    """A class to report scoring information."""
    def __init__(self,ai_game):
        """Initialize scorekeeping attributes."""
        self.ai_game = ai_game
        self.screen = ai_game.screen
        self.screen_rect = self.screen.get_rect()
        self.settings = ai_game.settings
        self.stats = ai_game.stats
        # Font settings for scoring information.
        self.text_color = (30,30,30)
        self.font = pygame.font.SysFont(None,48)
        #Prepare the initial score image.
        self.prep_score()
        self.prep_high_score()
        self.prep_level()
        self.prep_ships()
    def prep_ships(self):
        """Show how many ships are left."""
        self.ships = Group ()
        for ship_number in range(self.stats.ships_left):
            ship= Ship(self.ai_game)
            ship.rect.x = 10 + ship_number * ship.rect.width
            ship.rect.y = 10
            self.ships.add(ship)
    def prep_score(self):
        """Turn the score into a rendered image (将分数转换为渲染图像)"""
        score_str = str(self.stats.score)
        """Turn the score into a rendered image."""
        rounded_score = round(self.stats.score,-1)
        score_str = "{:,}".format(rounded_score)  #round 取整
        self.score_image = self.font.render(score_str,True,
                    self.text_color,self.settings.bg_color)
        #Display the score at the top right of the screen.
        self.score_rect = self.score_image.get_rect()
        self.score_rect.right = self.screen_rect.right - 20
        self.score_rect.top = 20
    def prep_high_score(self):
        """Turn the high score into a rendered image"""
        high_score = round(self.stats.high_score,-1)
        high_score_str = "{:,}".format(high_score)
        self.high_score_image = self.font.render(high_score_str,True,
                                self.text_color,self.settings.bg_color)
    # Center the high score at the top of the screen.
        self.high_score_rect = self.high_score_image.get_rect()
        self.high_score_rect.centerx = self.screen_rect.centerx
        self.high_score_rect.top = self.score_rect.top
    def check_high_score(self):
        """Check to see if there's a new high score."""
        if self.stats.score > self.stats.high_score:
            self.stats.high_score = self.stats.score
            self.prep_high_score()
    def prep_level(self):
        """Turn the level into a rendered image."""
        level_str = str(self.stats.level)
        self.level_image = self.font.render(level_str,True,
                                            self.text_color,self.settings.bg_color)
        #Position the level below the score.
        self.level_rect = self.level_image.get_rect()
        self.level_rect.right = self.score_rect.right
        self.level_rect.top = self.score_rect.bottom + 10
    def show_score(self):
        """Draw score,level,and ships to the screen"""
        self.screen.blit(self.score_image,self.score_rect)
        self.screen.blit(self.high_score_image,self.high_score_rect)
        self.screen.blit(self.level_image,self.level_rect)
        self.ships.draw(self.screen)

游戏设置settings的文件

class Settings:
    """A class store all settings for Aileen Invasion."""
    def __init__(self):
        """Initialize the game'settings """
        #Ship settings
        self.ship_speed = 1.5
        self.ship_limit = 3
        # Screen settings
        self.screen_width =1200
        self.screen_height=800
        self.bg_color =(255,255,255)
        # Bullet settings
        self.bullet_speed = 1
        self.bullet_width = 3
        self.bullet_height = 15
        self.bullet_color = (60,60,60)
        self.bullets_allowed = 3
        #Aileen settings
        self.aileen_speed = 1.0
        self.fleet_drop_speed = 10
        # How quickly the game speeds up
        self.speedup_scale = 2
        # How quickly the aileen point values increase
        self.score_scale =1.5
        self.initialize_dynamic_settings()
    def initialize_dynamic_settings(self):
        """Initialize speed settings"""
        self.ship_speed = 1.5
        self.bullet_speed = 1.5
        self.aileen_speed = 10
        # Scoring
        self.aileen_points =50
    # fleet_direction of 1 represents right ; -1 represents left.
        self.fleet_direction = 1
    def increase_speed(self):
        """Increase speed settings"""
        """Increase speed settings and aileen point values"""
        self.ship_speed *= self.speedup_scale
        self.bullet_speed *= self.speedup_scale
        self.aileen_speed *= self.speedup_scale
        self.aileen_points = int(self.aileen_points * self.score_scale)
        print(self.aileen_points)

游戏飞船ship的文件

import  pygame
from pygame.sprite import Sprite
class Ship(Sprite):
    """A class to manage the ship."""
    def __init__(self,ai_game):
        """Initialize the ship and set its starting position."""
        super().__init__()
        self.screen = ai_game.screen
        self.settings = ai_game.settings
        self.screen_rect = ai_game.screen.get_rect()#返回窗口矩形
        # Load the ship image and get its rect.
        self.image = pygame.image.load("images/ship.png")
        self.rect=self.image.get_rect()#取得屏幕的矩形 rect=rectangle 拿到图片矩形
        # Start each new ship at the bottom center of the screen.
        self.rect.midbottom = self.screen_rect.midbottom
        #通过赋值:图片的中下方的坐标,等于屏幕中下方的坐标
        # Store a decimal value for the ship's horizontal position.
        self.x = float(self.rect.x)
        self.y = float(self.rect.y)
        # Movement flag
        self.moving_right =False
        self.moving_left =False
        self.moving_up =False
        self.moving_down =False
    def center_ship(self):
        """Center the ship on the screen"""
        self.rect.midbottom = self.screen_rect.midbottom
        self.x = float(self.rect.x)
    def update(self):
        """Update the ship's position based on the movement flag"""
        # Update the ship's value, not the rect.
        # if self.moving_right:
        if self.moving_right and self.rect.right < self.screen_rect.right:
            self.x += self.settings.ship_speed#不断增加飞船左上角的横坐标带动图片移动
            self.rect.x += 1
        # if self.moving_left:
        if self.moving_left and self.rect.left > 0:
            self.x -= self.settings.ship_speed
            self.rect.x -= 1
        #top
        if self.moving_up and self.rect.top > 720 :
            self.y -= self.settings.ship_speed
            self.rect.y -= 1
        if self.moving_down and self.rect.bottom < self.screen_rect.bottom:
            self.y += self.settings.ship_speed
            self.rect.y += 1
    def blitme(self):#渲染函数,让图片显示出来
        """Draw the ship at its current location."""
        self.screen.blit(self.image,self.rect)

全屏模式下的游戏

小窗口下的游戏

🐖今天的打猪游戏就分享到这里啦~🐖

🐖喜欢就一键三连支持一下吧~🐖

🐖谢谢家人们!🐖


目录
相关文章
|
2月前
|
Python
外星人入侵之武装飞船(1)
本文是关于使用Python编程语言开发游戏《外星人入侵》的项目介绍。分享了自己学习Python的心得,并决定通过该项目来提升自己的编程技能,文章详细讲解了如何安装Pygame库,并逐步展示了创建游戏窗口、设置游戏标题、监听用户输入(包括键盘和鼠标事件)、处理关闭窗口的请求以及不断更新屏幕以实现平滑动画效果的代码。通过这些步骤,构建了一个基础的游戏框架。最后,文章总结了已完成的工作,并预告了接下来的开发计划。 注意:以上内容是摘要,原始文章包含更多详细解释和代码示例。
|
2月前
|
存储 Python
外星人入侵之武装飞船(3)
经过几个月的学习,自己也有了一些学习python的经验,想通过几个稍微大一点的项目的来对自己的开发能力进行训练和评估,从今天继续进行学习和练习Python编程从入门到实践这本书里面的项目。本项目中,自己会对项目中使用的一些方法和构造进行解读,自己学会就是自己的东西。本文章主要是对前面写的一些代码的重构,方便对后续越来越多功能,与代码的简化,为后续代码的进一步管理提供了便利.也增加了飞船向右移动的功能,并增加了按着按键不动,飞船会一直向右移动,使得游戏更加合理,总的来说都是对我在项目制作过程中的一种思路的培养,使我对于项目开发的流程有了更加清晰的了解.
|
2月前
|
存储 Python
外星人入侵之武装飞船(2)
文章介绍了如何使用Python进行游戏开发,特别是通过创建外星人入侵游戏来学习Python编程。并提供了项目的思维导图。文章分为几个部分,首先介绍了如何设置游戏屏幕的背景色,通过调用pygame.display.set_caption()和screen.fill(bg_color)方法实现。接着,作者创建了一个名为`Settings`的类,存储游戏设置,如屏幕尺寸和背景颜色,以便于管理和修改。通过这种方式,初学者不仅可以学习Python编程基础,还能了解到类和对象的概念,以及如何组织代码以实现更复杂的功能。文章还鼓励读者自己寻找合适的图片资源,以避免侵权,并提供了一个简单的飞船图片作为参考。
|
9月前
|
安全 网络安全 区块链
小学生的噩梦《王者荣耀》游戏辅助工具病毒爆发
多数勒索软件都会伪装成神器、外挂、辅助及各种刷钻、刷赞、刷枪、刷人气、刷游戏里头稀有装备的软件,诱导小学生下载,实际上没有任何功能,现在的很多下载网站也是一样,下载到的东西完全牛头不对马嘴。
110 0
|
11月前
|
监控 Serverless
人机对抗游戏,占领城堡
用两个免费试用的产品,就可以生成一个款简单的小游戏
59 0
人机对抗游戏,占领城堡
|
安全 机器人 网络安全
盘点3款高端大气上档次的黑客游戏
盘点3款高端大气上档次的黑客游戏
125 0
盘点3款高端大气上档次的黑客游戏
|
云安全 运维 监控
案例分享|游戏黑客肆意侵袭,阿里云打响“襁褓”保卫战
公元2021年8月6日《弈剑行》铸剑三年开封在即,正值贼寇ACCN猖狂之风正盛,此时“弈剑元世界“初生,兵力虚弱时遇贼寇进犯,三位铸剑者“宁为玉碎,不为瓦全”,ACCN索财未果,恼而攻城。千日铸剑,溃于一旦,27万“弈剑迷”痛失江湖。
312 0
案例分享|游戏黑客肆意侵袭,阿里云打响“襁褓”保卫战
|
安全 物联网 网络安全
面对黑客不断进化的攻击能力,你的游戏真的安全么?
在3月8日的“2017游戏行业全球同服和安全攻防技术沙龙”上,阿里云安全方案高级专家蕴藉为大家介绍了国内外游戏行业的安全形势以及阿里云云盾所提供的全方位优先权解决方案,并结合具体案例介绍了阿里云游戏安全解决方案的应用实战效果。
5115 0
|
安全 区块链
游戏公司盯上了区块链:是机会,还只是一场游戏?
当区块链技术运用到了游戏之中,玩家可以通过以太币等虚拟货币进行交易,尤其是2017年底基于区块链技术的宠物游戏《Crypto Kitties》在网络爆红,让人们看到了其带来的新生意经,并引发了争相效仿。
4417 0