如何评价to the moon
时间: 2024-04-29 16:20:34 浏览: 13
"To the Moon" 是一款非常优秀的单机游戏,由 Freebird Games 开发,发行于2011年。它是一款剧情驱动的角色扮演游戏,主要讲述了两名医生进入患者的梦境,通过改变他的记忆来实现他的愿望的故事。
首先,游戏的剧情非常感人,情感渲染非常到位,人物塑造和角色关系处理也非常出色。玩家可以跟随两名医生的视角,探索患者的记忆,解密故事的真相,游戏的剧情非常令人感动。
其次,游戏的音乐非常出色,配合游戏的剧情和氛围,让玩家更加沉浸在游戏的世界中。
总之, "To the Moon" 是一款非常优秀的游戏,它展现了游戏文化的多样性和无限可能性,是一款深入人心、感人至深的佳作,值得推荐。
相关问题
Define a function get_title(movielist) that returns a new list of movies with (year) removed. movielist contains titles of movie as string and year is always written as 4 digits within parathesis at the end of the title. For example 'Transformers (2007)' Example get_title(['Transformers (2007)']) -> ['Transformers'] movies1 = ['Transformers (2007)', 'Star Trek (2009)', "Schindler's List (1993)", 'Ip Man (2008)', 'Casino Royale (2006)', 'Back to the Future (1985)', 'Moon (2009)'] get_title(movies1) -> ['Transformers', 'Star Trek', "Schindler's List", 'Ip Man', 'Casino Royale', 'Back to the Future', 'Moon']
Sure, I can help you with that! Here's the function to remove the year from each movie title:
```python
def get_title(movielist):
new_list = []
for movie in movielist:
new_title = movie.split(' (')[0]
new_list.append(new_title)
return new_list
```
You can use it like this:
```python
movies1 = ['Transformers (2007)', 'Star Trek (2009)', "Schindler's List (1993)", 'Ip Man (2008)', 'Casino Royale (2006)', 'Back to the Future (1985)', 'Moon (2009)']
print(get_title(movies1))
```
This will output:
```
['Transformers', 'Star Trek', "Schindler's List", 'Ip Man', 'Casino Royale', 'Back to the Future', 'Moon']
```
1.在Applet中画一轮黄色新月,并且窗口上方显示红字“The Moon"。当在窗口另一位置单击鼠标后,在鼠标位置重新绘制月亮,并写出相应html文件。
这个需求需要使用HTML5的Canvas和JavaScript来实现。以下是实现该需求的代码:
HTML文件:
```html
<!DOCTYPE html>
<html>
<head>
<title>The Moon</title>
<meta charset="utf-8">
<style type="text/css">
canvas {
border: 1px solid black;
}
</style>
</head>
<body>
<canvas id="canvas" width="500" height="500"></canvas>
<script src="moon.js"></script>
</body>
</html>
```
JavaScript文件(moon.js):
```javascript
// 获取canvas元素
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
// 绘制黄色新月
ctx.beginPath();
ctx.fillStyle = "yellow";
ctx.arc(250, 250, 200, 0.25*Math.PI, 1.25*Math.PI);
ctx.lineTo(250, 250);
ctx.fill();
// 显示"The Moon"文字
ctx.font = "30px Arial";
ctx.fillStyle = "red";
ctx.fillText("The Moon", 10, 50);
// 监听鼠标单击事件
canvas.addEventListener("click", function(event) {
// 清除画布
ctx.clearRect(0, 0, canvas.width, canvas.height);
// 绘制新的月亮
ctx.beginPath();
ctx.fillStyle = "yellow";
ctx.arc(event.clientX, event.clientY, 200, 0.25*Math.PI, 1.25*Math.PI);
ctx.lineTo(event.clientX, event.clientY);
ctx.fill();
// 显示"The Moon"文字
ctx.font = "30px Arial";
ctx.fillStyle = "red";
ctx.fillText("The Moon", 10, 50);
});
```
以上代码实现了在页面中绘制黄色新月,并且在窗口上方显示红字"The Moon"。当在窗口另一位置单击鼠标后,会在鼠标位置重新绘制月亮。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)