Mario Shooter (Ruby + Gosu)

A 2d two player shooter game created with Gosu in 2 hours during Le Wagon’s Bootcamp. mario

CONTROLS

Red Mario (Player 1)

W: Jump

A: Move left

D: Move right

SPACE: Shoot a fireball

Blue Mario (Player 2)

Up arrow: Jump

Left arrow: Move Left

Right arrow: Move right

Enter/Return: Shoot a fireball

OTHERS

Press ‘C’ to play again

 

GITHUB:

https://github.com/anakornk/MarioShooter

Holo Phyperiment: My first HoloLens App

Inspiration

Helping kids learn the laws of physics while having fun playing with our mixed reality HoloLens application.

What it does

Users can construct their own world by using our built-in models, add force to objects and see how objects react.

How we built it

Holo-Phyperiment was developed in C# using Unity3D during HACKPKU 2017 (Peking University Hackathon). We use the “HoloToolKit for Unity” Package to ease the development. We first started off by brainstorming the key features of what a physics experiment application should have. After having a clear idea of what we will be building, we watched tutorials on Unity3d development for the HoloLens on Microsoft’s HoloLens Academy website, seeking for features given by HoloLens that could be use in our application to enhance a rich mixed reality experience. Three main features we used were Gaze, Gesture and Voice Recognition.

Accomplishments that we’re proud of

We managed to create key features of what a physics experiment application should have.

  1. Users can create and destroy models.
  2. Users can control and manipulate our 3D built-in models by using voice and gesture commands.
  3. Users can view the state of an object (for e.g. it’s speed and the force given to it.)
  4. Users can change the mass and apply force to the object.
  5. Users can speed up or slow down the physics engine, this allows you to see the action in slow motion.
  6. Users can manipulate gravity. (Ever wonder what it’s like when you reverse gravity?)

DEMO VIDEO:

Java 飞机大战 / Space Shooter

GITHUB: https://github.com/anakornk/Java-SpaceShooter
Java 飞机大战(DISTANCE,UTL)

一、成员:

陈继业 (anakornk)

付振新

王佳麟

二、操作:

左右上下来控制飞船

空格 – 大招

三、功能集锦:

吃弹药箱可以增加每次发子弹的个数

吃”改变子弹”可以改变所发射子弹的种类

吃医疗包可以增加血量

对上下移动的速度做了特殊处理,更贴合实际,有加速的感觉

背景是动态背景,而且随着游戏进行,背景会进行更换

敌方有不同的种类,而且敌方存在大boss

我方有大招,可以干掉屏幕内所有敌人以及子弹

四、游戏界面:

五、设计思想:

通过EventListener来监听用户对键盘的操作,左右上下控制飞船

多线程 – 用来画,效果,更新飞船的位置,计算是否有碰撞,生成新敌人的飞船

为了防止DeadLock 采用了锁机制

检查碰撞 – 认为每个飞船是一个长方形 检验是否有交叉

六、类的继承关系

七、有三个类用来记录常量

enemyInfo.java – 记录关于敌人飞船的信息 如生命值,图片

bulletInfo.java – 记录关于各种子弹的信息 如伤害力,图片

constant.java – 关于游戏界面的信息 如屏幕大小

八、UI

采用了JFrame,JPanel,MenuBar,MenuItem

游戏的绘画都在BattleField JPanel上 (BattleField在gamePanel Jpanel上)