Story Maker

An all-in-one solution to creating an electronic ‘Choose Your Own Adventure’ game book.

The project is separated into two parts: Story Maker Website and Story Viewer.

Story Maker Website:
A story maker tool that allows you to create dynamic multimedia stories with different endings.
The website uses React for Front-End and Rails for Back-End (including APIs).



Story Viewer:
For now, our story viewer is only available for the WeChat MiniProgram platform.

GITHUB:

https://github.com/anakornk/elp-story-maker

https://github.com/anakornk/elp-wechat-mp

Simple Messenger Bot Rails

Simple Messenger Bot Rails

Screenshot

This bot is a Ruby on Rails version of the Simple Echo Bot from the Facebook Messenger Platform Quick Start guide. It has the same features as the node.js version (plain text, generic message and postback).

Links

Setup

  1. git clone git@github.com:anakornk/simple-messenger-bot-rails.git
  2. cd simple-messenger-bot-rails
  3. bundle install
  4. bundle exec figaro install
  5. Edit application.yml
PAGE_ACCESS_TOKEN: "pageaccesstokenhere"
VERIFY_TOKEN: "verifytokenhere"

GITHUB:

https://github.com/anakornk/simple-messenger-bot-rails

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:

LINE Calculator and Translator BOT

During winter break, I had some spare time to study the new LINE Messaging API. To test out the API and its feature, I programmed two bots using the SDK of the LINE Messaging API for PHP.

1) Calculator BOT
Description: A calculator. Mathematical symbols allowed: (),+,-,*,/

If you want to play with the bot, scan the qr code below or add his username “@ooh4585g”.

2) Translator BOT
Description: The bot translates the input text to Thai. The bot uses google translate api.

If you want to play with the bot, scan the qr code below or add his username “@hrq0366b”.

eMenu 电子菜单 (包含 服务端和iOS端的源代码和项目实习报告)

项目目标
实现一个用于取代传统菜单的电子菜单。电子菜单分为用户端和商户端两个部
分:
用户端:主要功能为浏览菜单,点菜及结账。
商户端:主要功能为编辑菜单,查看与用户的交易记录,以及确认用户的点
单。

开发环境:
iOS端:Swift 3.0 Xcode 8.1
服务端:PHP5 + MySQL

iOS APP 样图:

 

报告
期末汇报ppt

app设计文档

代码:

eMenu-Client-iOS

Server

[PHP] Easiest way to get the Instagram id of the given username without an access token

Details:

1) Easiest way to get the instagram id of the given username.
2) Access token is not needed.
3) Only a few lines of code.
4) PHP example available on github.
https://github.com/anakornk/Get-Instagram-ID-From-Username-PHP/

 

How it works?:
1) username = $_GET[“username”];
2) Send a get request to:
https://www.instagram.com/username/?__a=1
3) The returned JSON contains the user id.
Structure of the returned JSON:

Code:

Usage: 
Send a get request with the parameter “username”

Credits:
http://stackoverflow.com/a/38342137/5334285

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上)