Cube Run Game Mechanics
Cube Run is a game prototype that demostrates basic mechanics for a platformer game, inclduing grabbing tools, basic puzzel solving, shooting and etc. It is built inside Unreal Engine with a combination of Blueprint and C++
Blueprints
Master Blueprints
![](https://freight.cargo.site/t/original/i/f109adeaf958626f6a74aedf81ce56e4e41813cd08ba2e56d17e9036ec566a7c/Weixin-Image_20240331202339.png)
Ammo pickup function
![]()
![](https://freight.cargo.site/t/original/i/1212cbf99ea8ad0758269f2e5bc57a93558bdc356f3f28ef884c5a9650df1fec/Weixin-Image_20240331202345.png)
Respawn player after falling
![]()
Spawning smaller cubes and adding impuse for shooting![]()
![](https://freight.cargo.site/t/original/i/62326471939b10eef26d284f25d202b88177367355b8112e92b106078013a69c/Weixin-Image_20240331202354.png)
Spawning smaller cubes and adding impuse for shooting
![](https://freight.cargo.site/t/original/i/487162dc5b065dc82af36dba4581dfa05c1c4dd15a13dc33cbba41accbb8bee6/Weixin-Image_20240331202350.png)
C++
Moving, rotating and reverse platform’s movement
![](https://freight.cargo.site/t/original/i/d378e4c2723ee989daeb9ad2d5943951fac890005d0dc98436c4a90a47ee1d24/Weixin-Image_20240331205735.png)
Customizable parameter
in editor
for different platform behaviors
![]()
![](https://freight.cargo.site/t/original/i/8ade672aad59f481fff3ad7607758437478643a53bdbdbe56367c3d5de038b68/Weixin-Image_20240331202402.png)
Grab - using linetrace to detect grabable objects and physics handle to grab
![]()
![](https://freight.cargo.site/t/original/i/4b4c721e5e41064aafdba13add927fb1a57b8fd7fecff295676b8e98ab299322/Weixin-Image_20240331205748.png)
![](https://freight.cargo.site/t/original/i/c29458954724a7cd6adbf1574498b7b23860224174c239b1ca83a2b0d4a696a9/Weixin-Image_20240331205739.png)
Release grabable objects
![]()
Setup physics handle
![]()
![](https://freight.cargo.site/t/original/i/55ecbd9e157f204e6c4539fa7c1f4e54b44cccad4edd4e54f8ec1e248bd1c792/Weixin-Image_20240331205742.png)
Setup physics handle
![](https://freight.cargo.site/t/original/i/154ee7e26eab7729a1426bf1f3174617457c3938af7851790c06b9f7b6dfae46/Weixin-Image_20240331205745.png)
Level Design
![](https://freight.cargo.site/t/original/i/4038ab621e644145ccdb1db9ca101b74e7a26cfd64b5b3be66610db4e2ab800d/Weixin-Image_20240331202357.png)