Skip to content

Commit

Permalink
Merge pull request #33 from IdeaSeeker/prepare-to-release
Browse files Browse the repository at this point in the history
Prepare to release
  • Loading branch information
mmvpm authored Dec 5, 2021
2 parents 629b517 + 5b9fa0b commit 1027e6a
Show file tree
Hide file tree
Showing 25 changed files with 60 additions and 62 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# RandomForest
## RandomForest

2D platformer game about a little girl lost in the forest
2D platformer about a little girl lost in the forest

Download game: https://ideaseeker.itch.io/random-forest

<p align="right"> <i>University project at MCS SPbU, fall 2021</i> </p>
3 changes: 2 additions & 1 deletion RandomForest/RandomForest.yyp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 2 additions & 22 deletions RandomForest/objects/oLoading/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,11 @@ funLoadGameState()

//Game window resizing

global.scale = 3

var cam = room_get_camera(rLevel00, 0)
var cam_width = camera_get_view_width(cam)
var cam_height = camera_get_view_height(cam)
var window_width_scaled = cam_width * global.scale
var window_height_scaled = cam_height * global.scale


for (var i = room_first; i != -1; i = room_next(i)) {
var viewport = room_get_viewport(i, 0)
room_set_camera(i, 0, cam)
room_set_viewport(i, 0,
viewport[0], viewport[1], viewport[2],
window_width_scaled, window_height_scaled
)
}

surface_resize(application_surface, cam_width, cam_height)

window_set_size(window_width_scaled, window_height_scaled)

funResizeWindow()
funUpdateFullscreen()
alarm[0] = true // for centering


// Temporary config

global.key_move_left = vk_left
Expand Down
2 changes: 1 addition & 1 deletion RandomForest/objects/oPlayer/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ self.attack_animation_ended = false

// tap attack
self.tap_attack_allowed = true // depends on `on-ground`
self.tap_attack_countdown = 1 * 60 // seconds * fps
self.tap_attack_countdown = 0.5 * 60 // seconds * fps
self.tap_attack_countdown_counter = 0

// hurt
Expand Down
Binary file added RandomForest/options/linux/icons/64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions RandomForest/options/linux/options_linux.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added RandomForest/options/linux/splash/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RandomForest/options/windows/icons/icon.ico
Binary file not shown.
Binary file not shown.
Binary file added RandomForest/options/windows/installer/header.bmp
Binary file not shown.
18 changes: 9 additions & 9 deletions RandomForest/options/windows/options_windows.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added RandomForest/options/windows/splash/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions RandomForest/scripts/funResizeWindow/funResizeWindow.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
function funResizeWindow() {
global.scale = 3

var cam = room_get_camera(rLevel00, 0)
var cam_width = camera_get_view_width(cam)
var cam_height = camera_get_view_height(cam)
var window_width_scaled = cam_width * global.scale
var window_height_scaled = cam_height * global.scale

for (var i = room_first; i != -1; i = room_next(i)) {
var viewport = room_get_viewport(i, 0)
room_set_camera(i, 0, cam)
room_set_viewport(i, 0,
viewport[0], viewport[1], viewport[2],
window_width_scaled, window_height_scaled
)
}

surface_resize(application_surface, cam_width, cam_height)

window_set_size(window_width_scaled, window_height_scaled)
}
12 changes: 12 additions & 0 deletions RandomForest/scripts/funResizeWindow/funResizeWindow.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 1 addition & 20 deletions RandomForest/scripts/funUpdateFullscreen/funUpdateFullscreen.gml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,6 @@ function funUpdateFullscreen() {
}
else {
window_set_fullscreen(false)

var cam = room_get_camera(rLevel00, 0)
var cam_width = camera_get_view_width(cam)
var cam_height = camera_get_view_height(cam)
var window_width_scaled = cam_width * global.scale
var window_height_scaled = cam_height * global.scale


for (var i = room_first; i != -1; i = room_next(i)) {
var viewport = room_get_viewport(i, 0)
room_set_camera(i, 0, cam)
room_set_viewport(i, 0,
viewport[0], viewport[1], viewport[2],
window_width_scaled, window_height_scaled
)
}

surface_resize(application_surface, cam_width, cam_height)

window_set_size(window_width_scaled, window_height_scaled)
funResizeWindow()
}
}
Binary file added icons/150x57.bmp
Binary file not shown.
Binary file added icons/164x314.bmp
Binary file not shown.
Binary file added icons/1800x300.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/350x260.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/630x500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/icon-11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/icon-140.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/icon-64-alpha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/icon-64-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/icon.ico
Binary file not shown.

0 comments on commit 1027e6a

Please sign in to comment.