games

授权协议 Readme
开发语言 C/C++
所属分类 游戏/娱乐、 游戏模拟器/工具/引擎
软件类型 开源软件
地区 不详
投 递 者 澹台岳
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Games on GitHub Swimming Octocat

Below is a list of open source games and game-related projects that can be found on GitHub - old school text adventures, educational games, 8-bit platform games, browser-based games, indie games, GameJam projects, add-ons/maps/hacks/plugins for commercial games, libraries, frameworks, engines, you name it.

Contributing

If you'd like to add a repository to the list, please create an Issue, or fork this repository and submit a pull request (click here to edit this file from github).

Would you like to help maintain and improve this repository? Click here for information on becoming a maintainer.

Help: MarkDown Help, Markdown Cheatsheet


Table of Contents.


Major Companies

A selection of major game studios, publishers, etc. using GitHub:

             

Browser-Based

Boardgame

Arcade

FPS

  • BananaBread - Port of the Cube 2/Sauerbraten 3D game engine/first person shooter to the web, compiling C++ and OpenGL to JavaScript and WebGL using Emscripten. Play it now!

RPG

MMORPG

Strategy

Racing

Sandbox

Puzzle

Clicker

Point and Click

Others

  • Beast - An homage to the 1984 ASCII game "BEAST" from Dan Baker, Alan Brown, Mark Hamilton and Derrick Shadel written in node. You have to squash little ASCII beasts between pushable blocks but watch you to not be eaten by them.
  • binb - Competitive, multiplayer, realtime, guess the song game. Play it now!
  • Dental Defender: Saga of the Candy Horde - HTML5 shooter/tower defense game for the #CandyJam. Play it now!
  • Descensus 2 - A TypeScript 2D physics game.
  • Hauberk - Hauberk is a roguelike, an ASCII-art based procedurally-generated dungeon crawl game. It's written in Dart and runs in your browser.
  • HeartLine - Game made in 48 hours for the 2013 Global Game Jam.
  • Psiral - JavaScript/HTML5 game, GitHub Game Off 2 winner. Play it now!
  • CyberPong - Unusual Ping Pong game, adaptable with Makey Makey Kit.
  • Squirts - Well-known indie game implemented in JavaScript.
  • The Killer - Flash/ActionScript3-based "nongame". Play it now!
  • Turkey Cooking Simulator - You have been invited to craft the centerpiece of the American thanksgiving dinner, the turkey. Woo your girlfriend / boyfriend and be judged by your future in-laws! Apply your culinary expertise to impress your family. Play it now!

Native

Action

  • OpenTomb - An open-source Tomb Raider 1-5 engine remake.

Arcade

  • hēXōn - A twin-stick-shooter with 3D graphics and a classic feel.
  • C-Dogs SDL - Overhead shoot-em-up port of the classic DOS game.
  • Chaos Projectile - 2D run'n'gun action game with RPG elements.
  • Clonepoint - Libre clone of Gunpoint, a game in which you hack and punch your way to victory.
  • DynaDungeons - Bomberman clone using the awesome open source Godot game engine.
  • Duckmarines - A ChuChu Rocket remake for PC.
  • Epic Inventor - Indie, side-scrolling, action, RPG.
  • Falling Time - Arcade game inspired by Fall Down.
  • Kroniax - Sidescrolling skill-based game.
  • Missile Command - Missile Command clone in Lua with LÖVE.
  • Mystic Mine - Single and multiplayer action game with mining carts.
  • OpenLieroX - Liero clone, like realtime Worms, or a 2D Quake.
  • OSGG - Oldskool Gravity Game, very difficult lander game in glorious vector graphics.
  • Savage Wheels - 2D car crashing game similar to the old classic Destruction Derby.
  • Space Shooter - Cross platform, 2D space shooting game made using pygame.
  • SDL-Ball - Pretty looking breakout clone available in most distributions.
  • Taisei - Fan-made, open Source clone of the Touhou series.
  • Teeworlds - Online multi-player platform 2D shooter.
  • Wannabe Tempest - Tempest(80's arcade game) clone in Java, and a small project for playing with git.
  • Witch Blast - Roguelite dungeon crawl shooter similar to The Binding of Isaac.

FPS

  • AssaultCube - Total conversion of Wouter van Oortmerssen's FPS called Cube.
  • Freedoom - Free software FPS based on the classic Doom engine.
  • GlPortal - A modern 3D game and engine with portals written in C++.
  • ioquake3 - The free software FPS engine that can be used to play Quake 3, or make your own game.
  • LWJake2 - LWJGL port of Quake 2.
  • OpenLara - Tomb Raider open-source engine Play it now!
  • openspades - Compatible client of Ace of Spades 0.75.
  • Red Eclipse - Free, casual arena shooter featuring parkour.
  • Smokin' Guns - Semi-realistic simulation of the "Old West's" great atmosphere.
  • Turtle Arena - Third-person action game using the Spearmint engine.
  • Unvanquished - Fast-paced, futuristic FPS with RTS elements.
  • Warsow - Fast-paced FPS in a futuristic cartoonish world.

MMORPG

  • Open Meridian - The first 3D MMORPG, released in 1996 and open sourced in 2012. Forked in 2013, Actively developed. Play it now!
  • Meridian 59 - The first 3D MMORPG, released in 1996 and open sourced in 2012. The original codebase for Meridian 59, less frequently updated. Play it now!
  • Stendhal - a fun friendly and free 2D multiplayer online adventure game with an old school feel. Play it now!

RPG

  • Angband - Single-player dungeon exploration game in the universe of JRR Tolkien.
  • Arx Fatalis - Cross-platform port of Arx Fatalis, a first-person role-playing game.
  • Cataclysm: Dark Days Ahead - Roguelike set in a post-apocalyptic world.
  • Cendric - Platformer-RPG in a fantasy setting with puzzle elements.
  • Crystal Picnic - Lighthearted and colourful tribute to the classic era of action RPGs.
  • Dungeon Crawl Stone Soup - Single-player roguelike dungeon exploration game with a larger focus on combat compared to other popular roguelikes.
  • Dungeon Monkey Eternal - Party-based fantasy roguelike role-playing game.
  • Egoboo - Cool 3D dungeon crawling game in the spirit of NetHack.
  • Flare RPG - Fantasy action RPG game with its own engine.
  • Freeablo - Open-source implementation of the Diablo I engine.
  • Monster RPG 2 - Turn-based J-RPG in a fantasy universe.
  • NetHack - Single-player roguelike dungeon exploration game and one of the most popular games in its genre.
  • OpenMW - Reimplementation of the Morrowind game engine.
  • The Legend of Zelda: Mystery of Solarus DX - sequel to The Legend of Zelda: A Link to the Past released on the SNES, written in lua and created with the Solarus engine
  • Valyria Tear - Single-player medieval-fantasy 2D J-RPG.

Platform

Puzzle/card/board

  • 2048-cli - CLI version of the game 2048 for your Linux terminal.
  • 2048-in-terminal - CLI version of the game 2048 made right.
  • Castles of Dr. Creep - The Castles of Dr. Creep
  • Dominion - C# implementation of Dominion, a board/card game.
  • EbbeFlut - Really nice board game implemented in a bad way a VERY long time ago.
  • IRMINGARD - Patience card game written in Ruby.
  • Minilens - Cute puzzle platformer starring a cleaning robot on post-apocalyptic Earth.
  • nudoku - ncurses based CLI sudoku game
  • PuzzleDash - Match-3 puzzle game built in the Dash engine.
  • tictactoe - Graphical tic-tac-toe AI which never loses
  • Wizznic - Most awesome puzzle game.
  • PokerTH - Implementation of Texas Hold'em supporting (online) multiplayer and botplay. Play it now!

Racing

  • Stunt Rally - Rally game with Track Editor, based on VDrift and OGRE.
  • SuperTuxKart - Free 3D kart racing game featuring open source mascots.

Programming

  • CengBall - Soccer programming game with 2D simulation.

Sandbox

  • Blackvoxel - Sandbox game based on a molecular voxel interaction engine.
  • Craft - Simple Minecraft clone written in C using modern OpenGL.
  • Endless Sky - Space trading and combat game similar to the classic Escape Velocity series.
  • Freeminer - Sandbox game inspired by Minecraft.
  • Minecraft - Simple Minecraft-inspired demo written in Python and Pyglet.
  • Manic Digger - A multiplayer block-building voxel game, Minecraft clone.
  • Minetest - Infinite-world block sandbox game with survival and crafting.
  • Pycraft - A Minecraft-inspired game for the terminal.
  • Rigs of Rods - Soft-Body physics simulator for vehicles and more.
  • Space Engineers - Space Engineers is a voxel-based sandbox game set in an asteroid field in space.
  • Terasology - Voxel world game engine inspired by Minecraft and others with fancy graphic effects and a heavy focus on extensibility.
  • The Powder Toy - Falling-sand physics sandbox game.

Strategy

  • 0 A.D. - 3D RTS similar to Age of Empires II
  • Caesaria - Remake of the popular citybuilder and economic sim Caesar III.
  • Colobot - A real-time strategy game with programmable bots.
  • CorsixTH - Clone of Theme Hospital.
  • Curse of War - Fast-paced action strategy game with ncurses and SDL frontends.
  • Harris - Strategy game based around the actions of RAF Bomber Command in the Second World War.
  • Hedgewars - A turn based strategy, artillery, action and comedy game.
  • KaM Remake - RTS game remake of “Knights and Merchants” written in Delphi from scratch.
  • KeeperRL - Roguelike dungeon builder inspired by Dwarf Fortress.
  • Last Colony - RTS game with both a single player campaign mode as well as a multiplayer mode, created entirely in HTML5 and JavaScript. Play it now!
  • MegaGlest - MegaGlest real-time strategy game engine (cross-platform, 3-d).
  • Micropolis - City-building game based on the original code for SimCity.
  • openage - Clone of the Age of Empires II engine.
  • OpenDungeons - Open source game inspired by Dungeon Keeper - Dark, damp and dangerous...
  • OpenFodder - Open-source implementation of Cannon Fodder
  • OpenRA - Open-source implementation of the Red Alert engine using .NET/mono and OpenGL. Runs on Windows, Linux and OSX.
  • OpenTTD - OpenTTD is a transport simulation game based upon the popular game Transport Tycoon Deluxe, written by Chris Sawyer.
  • OpenXcom - Clone of the original X-COM.
  • Pax Britannica - Underwater one-button real-time strategy game.
  • PCOTM (Phone Case of the Monster) - Ruby game, where you play as a phone-collecting monster.
  • Pioneer - Game of lonely space adventure.
  • Polly-B-Gone - Physics platform game about a plucky wheeled robot named Polly.
  • OpenRCT2 - Open source recreation of Rollercoaster Tycoon 2.
  • Race into Space - Turn-based space race strategy game originally by Interplay.
  • Seven Kingdoms: Ancient Adversaries - Classic RTS game liberated in 2009.
  • Source of Tales - Entry in the Liberated Pixel Cup 2012.
  • Tanks of Freedom - Turn-based strategy game in isometric pixel-art style.
  • The Battle for Wesnoth - Turn-based strategy game with a high fantasy theme.
  • Unknown Horizons - 2D isometric RTS economic strategy game written in C++ & Python, built on the Flexible Isometric Free Engine.
  • Voxeliq - Block-based game engine implementation developed with C#.
  • Wargus - Wargus is a Warcraft2 Mod that allows you to play Warcraft2 with the Stratagus engine.
  • Warzone 2100 - Postnuclear realtime strategy.
  • Wyrmsun - Strategy game based on history, mythology and fiction.
  • Zero-K - Open source RTS game with physical projectiles and smart units

Others

  • OpenNotrium - Open source version of Notrium, a top-down survival game.

Mobile Games

Android

  • ChaseWhisplyProject - Chase Whisply is a FPS. You have to seek, find and kill the ghosts living around you.
  • Colorphun - ColorPhun is a simple color based Android Game.
  • Game of Life - Conway's Game of Life with editable rules
  • Gidi Games - Lexis, TicTacToe, Puzzlemania - a collection of 3 board games done with Cocos2d for Android.
  • Green Mahjong - Solitaire mahjong game done in HTML/CSS/JS.
  • Green Wall - Weirdly addictive arcade-style android game, where you fling fruit at a wall. Project developed using Android Studio 1.0.
  • Memory Game - Simple and beautiful memory game for kids.
  • Pixel Dungeon - Traditional roguelike game with pixel-art graphics and simple interface.
  • PuzzleGame - Slider puzzle game implementation created with Cocos2d for Android.
  • Wannabe Tempest - Clone of 80's coin-op arcade game Tempest(80's arcade game).

IOS

  • Bat Loves Bugs - Arcade game about a bug-craving bat.
  • Bridges - Puzzle game with bridges, houses, tolls, and subways for iOS.
  • Canabalt - Release of Canabalt for iOS.
  • Choose Figure - Simple logic game. Choose the right figure. Train your attention.
  • Doom - Doom Classic for iOS.
  • DrugsNRock - Simple multiplayer rhythm game designed during the 2013 Global Game Jam.
  • FinalFighter - Tank deathmatch battle game developed using Cocos2D.
  • Frogatto - Action-adventure game, starring a certain quixotic frog.
  • Gorillas - iPhone(or iPod touch) port of the popular old QBasic game.
  • Green Mahjong - Solitaire mahjong game done in HTML/CSS/JS.
  • Light Jockey - iOS Auditorium-like game.
  • Lumio - Puzzle game for iOS developed using Cocos2D. Available free on the App Store.
  • Sakura Fly - iOS action game developed using SpriteKit. Available free on the App Store.
  • Wolfenstein 3D - Wolfenstein 3D for iOS Source Release.

Chat bots

  • c4bot - Chat bot that plays Connect Four with you, works in web chat, Facebook Messenger, Skype, and Telegram. Play it now!

Just The Source

  • Aquaria - Breath-taking underwater fantasy game. Winner of the Grand Prize at the 2007 Independent Games Festival.
  • Doom 3 - Doom 3 GPL source code release.
  • ID Software - Includes Doom, Quake, Wolfenstein and more.
  • Jedi Academy - Jedi Academy source only, mirror of SourceForge from Raven Software.
  • Jedi Outcast - Jedi Outcast source only, mirror of SourceForge from Raven Software.
  • MaNGOS - Full featured World of Warcraft server.
  • Miner Wars 2081 - For modders of Miner Wars 2081, a 6DOF action-survival space-shooter simulation-game set in the year 2081.
  • OpenJK - Community maintained fork of Jedi Academy and Jedi Outcast development.
  • Prince of Persia - Source code for the original Prince of Persia game that was written on the Apple II, in 6502 assembly language, between 1985-89.
  • UFO RUN - Real time multiplayer with Nextpeer.
  • System Shock - Source code for original System Shock game (PowerMac version), more readable fork available here.

Frameworks/Engines/Libraries

  • Akihabara - Set of libraries, tools and presets to create pixelated indie-style 8/16-bit era games in Javascript.
  • Allegro 5 - C++ libraries to make 2D games(graphics, sound, etc.).
  • ammo.js - Direct port of the Bullet Physics engine to JavaScript using Emscripten.
  • Atomic Engine - features 2D and 3D rendering, standards compliant JavaScript, full Player and Editor source on GitHub, Windows & Mac Editors, with deployment to Windows, Mac, WebGL, Android, and iOS from the editor.
  • Babylon.js - Complete JavaScript framework for building 3D games with HTML 5 and WebGL.
  • bgfx - Cross-platform rendering library.
  • Chilli Works - An open source, cross-platform game engine designed for indie developers.
  • Chipmunk Physics - Simple, lightweight, fast and portable 2D rigid body physics library written in C.
  • ChoiceScript - A language/engine for developing text-based multiple-choice interactive novels
  • Cocos2d for Android - Cocos2d for Android, based on cocos2d-android-0.82, and now ported from cocos2d-iphone 0.99.4.
  • Cocos2d for iPhone - Framework for building 2D games, demos, and other graphical/interactive applications for iPod Touch, iPhone, iPad and Mac. It is based on the cocos2d design but instead of using python it, uses objective-C.
  • Cocos2d for HTML5 - Cocos2d for Web Browsers. Built using JavaScript.
  • Cocos2d-x - Multi-platform framework for building 2d games, interactive books, demos and other graphical applications. It is based on cocos2d-iphone, but instead of using Objective-C, it uses C++. It works on iOS, Android, Windows Phone, OS X, Windows and Linux.
  • Crafty - JavaScript game library that can help you create games in a structured way.
  • CutJS - Lightweight and fast 2D HTML5 rendering engine for cross-platform game development.
  • Dash - Free and open 3D game engine written in D.
  • Duality - 2D Game Development Framework.
  • EaselJS - Library to make working with the Canvas element easier.
  • EntityJS - HTML5 JavaScript game engine utlizing the entity-component design.
  • Evennia MUD/MU* Creation System - Library for creating online multiplayer text games (MUD, MUSH, MUX, MUCK, MOO etc) in pure Python.
  • Flare - Free/Libre Action Roleplaying Engine.
  • Flashpunk - Free ActionScript 3 library designed for developing 2D Flash games.
  • Flixel - Game-making library written entirely in ActionScript 3.
  • GameJS - GameJs is a JavaScript library for writing 2D games or other interactive graphic applications for the HTML Canvas inspired by PyGame.
  • GamePlay - Cross-platform, C++ game framework/engine for creating 2D/3D mobile and desktop games.
  • GemRB - Cross-platform implementation of Bioware's Infinity Engine.
  • GenesisEngine - GenesisEngine allows you to create and explore procedurally-generated planetary systems, from ground level all the way out into space. Experiments with procedurally-generated worlds, XNA, and design patterns.
  • Gladiator 3D - Canvas based JavaScript ray casting engine for pseudo 3D games.
  • Godot - Fully featured, MIT licensed, game engine. It focuses on having great tools, and a visual oriented workflow that can export to PC, Mobile and Web platforms with no hassle. The editor, language and APIs are feature rich, yet simple to learn, allowing you to become productive in a matter of hours.
  • HaxeFlixel - Free, cross-platform 2D game engine powered by Haxe and OpenFL http://www.haxeflixel.com/
  • JiGS - Online RPG and Trading Game Engine built in PHP.
  • jMonkeyEngine - Cutting edge, cross-platform 3D game engine for adventurous Java developers.
  • kiwi.js - Blazingly fast mobile & desktop browser based HTML5 game framework. It uses CocoonJS for publishing to the AppStore.
  • libGDX - Desktop/Android/HTML5/iOS Java game development framework.
  • libRocket - C++ user interface package based on the HTML and CSS standards. It is designed as a complete solution for any project's interface needs.
  • libSDL2pp - C++11 bindings for SDL 2.0.
  • lycheeJS - Free HTML5 + native OpenGL Game Engine for Embedded, Console, Mobile, Server and Desktop.
  • Matter.js - Matter.js is a JavaScript 2D rigid body physics engine for the web.
  • melonJS - HTML5 game framework for 2D games.
  • MonoGame - XNA Implementation for Mono based platforms (supports iOS, Android, Linux, and started work on PS Suite and NaCli ).
  • Oimo.js - Lightweight 3d physics engine for javascript.
  • OpenRTS - Real-Time Strategy game 3D engine coded in java 7.
  • Oxygine - C++ engine and framework for 2D games on iOS, Android, Windows, Linux and Mac.
  • panda.js - Free HTML5 game engine for mobile and desktop with Canvas and WebGL rendering.
  • Phaser - Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
  • PhysicsJS - Modular, extendable, and easy-to-use physics engine for JavaScript.
  • pixi.js - Super fast HTML 5 2D rendering engine that uses webGL with canvas fallback.
  • Plasma - Cyan Worlds's Plasma game engine.
  • PlayCanvas - 3D WebGL game engine with online toolset.
  • QICI Engine - free JavaScript game engine library with a web-based comprehensive suite of toolset for making HTML5 games.
  • Quasi-Engine - a QtQuick framework that intends to be a complete toolset to ease 2d game development.
  • Ren'py - A Visual Novel Engine, written in python, for both mobile (iOS beta) and desktop platforms.
  • SFML - Simple and Fast Multimedia Library.
  • Solarus - An Action-RPG game engine written in C++.
  • Spring - Real Time Strategy game engine.
  • Starling - ActionScript 3 library that mimics the conventional Flash display tree architecture, can be deployed to mobile devices (iOS, Android), the desktop (Windows, OS X), and to the browser (via the Flash plugin).
  • Superpowers - TypeScript & ThreeJS powered game engine and framework (2D & 3D with WebGL)
  • Tesseract - Make mapping more fun by using modern dynamic rendering techniques, sothat you can get instant feedback on lighting changes, not just geometry.
  • three.js - JavaScript 3D library used in many browser games.
  • tiled - Tiled is a general purpose tile map editor. It is meant to be used for editing maps of any tile-based game, be it an RPG, a platformer or a Breakout clone.
  • Torque 2D - MIT Licensed version of Torque 2D from GarageGames.
  • Torque 3D - MIT Licensed version of Torque 3D from GarageGames.
  • Turbulenz Engine - HTML5 game engine and server-side APIs available in JavaScript and TypeScript for building and distributing 2D and 3D games.
  • Urho3D - Urho3D is a free lightweight, cross-platform 2D and 3D game engine implemented in C++ and released under the MIT license. Greatly inspired by OGRE and Horde3D.
  • Wurfel Engine An isometric game engine for games with an open world made of blocks or voxels.
  • XLE - Rendering engine with advanced features such as Image Based Lighting, dynamic area lights, and a node based material editor. Flexible and modular, it is designed to drop into existing solutions. XLE is the "hackable" engine, intended to be customised for specialised requirements.

Maps/Hacks/Plugins/Utilities/All of the Things™

  • Bfxr - Flash + AIR sound effects generator. Based on Sfxr.
  • Brood War API - C++ framework to interact with the Real Time Strategy (RTS) game Starcraft: Broodwar.
  • FlxCollisions - Simple set of 2d physics + collision demos for flixel v2.0. Play it now!
  • Gamertag - Gem for retrieving Xbox Live Gamertag information from various sources.
  • Greenworks - A node.js/nw.js addon allowing you to integrate HTML5 game with Steamworks.
  • Halo::Reach::API - Ruby gem for interacting with the Halo:Reach API.
  • IodineGBA - GameBoy Advance emulator written entirely in JavaScript and powered by HTML5.
  • itch - An electron cross-platform game downloader, installer, and library manager for itch.io written in TypeScript.
  • JavaScript Breakouts - Collection of JavaScript engine implementations of Breakout.
  • Leaderboard(Java) - Leaderboards backed by Redis(in Java).
  • Leaderboard(PHP) - Leaderboards backed by Redis(in PHP).
  • Leaderboard(Python) - Leaderboards backed by Redis(in Python).
  • Leaderboard(Ruby) - Leaderboards backed by Redis(in Ruby).
  • Leaderboard(Scala) - Leaderboards backed by Redis (in Scala).
  • libfreenect - Drivers and libraries for the Xbox Kinect device on WIndows, Linux, and OS X.
  • OpenEmu - Project to bring game emulation to OS X as a first class citizen.
  • Mudlet - A cross-platform, open source, and super fast MUD (text-only MMORPGs) client with scripting in Lua.
  • stats.js - JavaScript performance monitor.
  • Tassadar - Starcraft 2 replay parser written in pure Ruby.
  • World of Warcraft Addons - Various World of Warcraft addons written in Lua.
  • World of Warcraft API Docs - Public documentation for the RESTful web service provided as part of the World of Warcraft community site.

License

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

  • 【更新中,欢迎关注】 笔记 Rasterization 光栅化 Lecture 7-9 Shading [Illumination, Shading] Lecture 7-9 Shading [Shading Frequencies 着色频率] Curves and Meshes 曲线和曲面 Ray Tracing 光线追踪 Animation / Simulation 动画与模拟 作业 Assi

 相关资料
  • 问题内容: 我需要帮助在游戏场景中呈现警报视图。我目前正在努力做到这一点,例如GameScene.Swift不是标准的ViewController。如果有帮助,我需要这样做,因为我需要用户输入一个值,该值用作游戏中球Sprite Kit节点的坐标。输入只是一个标准整数,因此这不是问题。也欢迎通过警报视图实现此操作的其他任何想法。 那是在GameViewController文件中 谢谢 问题答案:

  • 问题内容: 我一直在玩SpriteKit,并且对如何从代码中驱动它有了相当不错的感觉,但是对于Xcode 6中包含的关卡编辑器却颇为困惑。 我已经看过wwdc视频(“平台联合状态”和“ spriteKit中的新功能”),并在网上搜寻,但未能找到有关关卡编辑器及其实际功能的大量描述。 我不明白,模板设置的两个文件之间有什么关系?.sks文件是GameScene.swift文件的表达式还是它包含的Ga

  • 问题内容: 我想“重置”和“重启” GameScene,就好像第一次调用GameScene一样。我已经研究了执行此操作的不同方法,但是每次收到警告时,我都试图将节点添加到已具有父级的父级。但是,在我的代码中,我删除了所有现有节点,因此我对如何重置GameScene感到非常困惑。这就是我现在的操作方式(当我想从头开始重新启动GameScene时调用此代码,并在GameScene类中调用此代码): 1

  • 问题内容: 我在main.storyboard上创建了一个UI元素,需要隐藏该元素,直到游戏结束,并且一旦玩家点击屏幕将其关闭即可。Main.storyboard链接到GameViewController,因此我所有的IBOutlet和IBActions都在其中,而我所有的游戏代码都在GameScene中。我如何将视图控制器链接到场景,以便弹出图像和按钮仅在游戏结束时出现。非常感谢您的帮助,我已经

  • 问题内容: 我有一个方法,它在我的viewController中具有自定义序列,如下所示: 我在GameScene.swift中这样调用方法: 我仔细检查了segue名称,它是正确的。每当我在GameScene.swift文件中调用此命令时,我都会收到SIGABRT消息,但我不知道为什么。我尝试仅使用println()消息调用该函数,并且该函数有效。 对于为什么发生这种情况以及如何成功调用Game

  • 目前正在做一个游戏,我已经到了需要实现多人游戏功能的地步。我正在尝试将GameSparks SDK加载到我的项目中,但无法正确导入模块,我不太确定发生了什么。 SDK是用Objective C编写的,但我的项目是用Swift编写的。他们说你只需要将文件导入到你的项目中,所以我用cocoapods安装了它,并将源文件复制到我的项目中,我的文件如下所示: 在我的桥接报头中,我有 并且没有错误,一切都编

  • 我已经做了一些测试,同时集成了新的谷歌游戏与假分数,现在我需要重置排行榜之前,我的游戏发布! 我发现了这个REST API:https://developers.google.com/games/services/management/api/?hl=en#Scores 但这似乎只与网络游戏有关,而与Android游戏无关:“使用Google Play game services REST API

  • 我想允许已经加入比赛的用户在任何人进行比赛之前就我的游戏的级别达成一致。该过程如下所示: > 用户选择对手使用谷歌游戏默认UI。 如果我不能用基于Google Play Games turn的API实现这一点,我还应该考虑其他的选择吗?