RB
rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
map =
["#########################",
"# #",
"# #",
"# #",
"# #",
"# @ #",
"# #",
"# #",
"# #",
"# #",
"# #",
"#########################"]
"""
This game is made possibke by the help of @Dennis, Follow him :D
2D Game inDev version 0.1
"""
#Declaring variables and requiring the Win32API.
require 'Win32API'
getAsyncKeyState = Win32API.new("User32", "GetAsyncKeyState", ['i'], 'i')
gspeed = 0.5
level = 1
stopgame = false
y = 0
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run