杨帆博客

你想开发游戏还是改变世界?


  • 首页

  • 标签

  • 归档

  • 搜索

Elimination-Game

发表于 2018-03-17 | 更新于: 2018-08-22

题目地址

  There is a list of sorted integers from 1 to n. Starting from left to right, remove the first number and every other number afterward until you reach the end of the list.

阅读全文 »

【OpenGL】25-碰撞检测

发表于 2018-03-17 | 更新于: 2018-08-22

  这篇文章中,我们将介绍 2D碰撞检测(2D Collision detection) 。在我们的 Breakout 游戏中,我们将使用碰撞检测来实现弹性球销毁可破坏方块功能。

阅读全文 »

【DirectX】2-初识DirectX11

发表于 2018-03-16 | 更新于: 2018-08-22

  本篇文章主要介绍 DirectX 库以及 DirectX 的初始化,在此之前我们需要来配置 DirectX 系统环境。

  DX 的配置还是很方便的,这里是 DX11 SDK 的下载地址,在微软 DC 下载后,直接一路 Next 就可以成功安装了 。之后打开 Visual Studio,建立新项目,在项目属性的 VC++ 目录的 Include 加入 DX 安装路径里的 Include 文件夹, Library 加入 Libs 文件夹(这个和 OpenGL 在 Visual Studio 下的配置基本相同,不多介绍)。

  配置好了之后,我们先建立一个 Win32 窗口,这个我们在第一篇文章中有介绍。建立完毕后现在开始配置 DX11 (希望你不会被这一个配置吓得失去信心)。

阅读全文 »

【OpenGL】Breakout-6-弹性球

发表于 2018-03-16 | 更新于: 2018-08-22

  在上一篇文章之后,我们已经实现了基本的游戏场景绘制,但只是个静态的图像,要让它彻底玩起来还需要很多东西。现在我们来实现这个游戏中最重要的一部分:弹性球(Elastic ball) 。

阅读全文 »

Longest-Repeating-Character-Replacement

发表于 2018-03-16 | 更新于: 2018-08-22

题目地址

LeetCode#424 Longest Repeating Character Replacement

题目描述

  Given a string that consists of only uppercase English letters, you can replace any letter in the string with another letter at most k times. Find the length of a longest substring containing all repeating letters you can get after performing the above operations.

阅读全文 »
1…232425…46
KsGin

KsGin

游戏程序员/计算机图形学/Unity/西山居搬砖

226 日志
16 标签
GitHub E-Mail Google Twitter
© 2018 KsGin @ 2018
0%