Skip to content

This game like somebody's life, encounter many events, make choices, to achieve themselves.

Notifications You must be signed in to change notification settings

destinyd/RubyLifeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Life Game

Version 0.0.1

Game content

This game like somebody's life, encounter many events, make choices, to achieve themselves.

How to play?

first

You must be install ruby above 2.0.0.

second

Clone this project.

git clone [email protected]:destinyd/RubyLifeGame.git
cd RubyLifeGame
cp code.example.rb code.rb
ruby game_controller.rb

third

Edit code.rb to rewrite handle method for play.

We will give you a event, you could read some params(event.params) like type, age, health, how_hard. Judgment and choice an attitude (:hard, :normal, :ignore). When event success, you will get money and happy, they are the scores of this life.

Player will die when health <= 0, and Game Over...

last

Welcome to submit your best scores and code at issue#1.

Welcome to join the development

I write it just for fun.

If you like it or like making games, we can discuss.

Ruby人生游戏

游戏内容

这个游戏就像是某个人的一生,会遇到很多事件,你要作出选择,去成就他们。

怎么玩

首先

你必须先安装ruby 2.0以上版本

其次

把这个项目Clone下来

git clone [email protected]:destinyd/RubyLifeGame.git
cd RubyLifeGame
cp code.example.rb code.rb
ruby game_controller.rb

再次

修改code.rb中的handle方法来进行游戏。

我们传入event,你可以从event.params获取一些数值,例如type, age, health, how_hard,根据他们进行判断,并对处理这个事件的态度进行选择event.choice(:hard)(或者:normal, :ignore)

你的属性还有你态度的选择会决定事件是否成功,如果成功,你会获得金钱和快乐,失败的话可能就会失去,而他们的综合将是你最后的游戏成绩。

当health为0时,角色便会死掉,游戏终止。

最后

欢迎在issue#1提交你最好的分数

欢迎加入开发

我写这游戏只是为了兴趣,舒缓下紧张的精神。

实际写代码也没花多少时间,也就几小时。当然这游戏也十分的简单。如果有人能来一起将它变得更加丰富,我也十分的欢迎。

如果你喜欢这个游戏,或者游戏制作,我们可以一起进行讨论。

About

This game like somebody's life, encounter many events, make choices, to achieve themselves.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages