Make the Hero

Game Source Code: https://github.com/not-elm/make_the_hero_easy_type

bevy_flurx GitHub:   https://github.com/not-elm/bevy_flurx 

This game have been created for the demonstration of bevy_flurx. I would be happy if I could provide solutions to questions such as how to write the game's process flow, and how to use a Reactor.

Game rules

The condition for stage clear is to ensure that only one cell with the same number as goal exists that on the stage. 

 All cells can be moved only once. If another cell exists at the destination, calc or swap operation is performed on the two cells. which operation is performed depends on the direction of movement.

  •  The direction calc performed: left up, right up, right down and left down 
  •  The direction swap performed: left, up, right, and down

calc

calc uses two cells, applies four arithmetic operations that differ according to the direction of movement , and create the new cell has the number with resulting number.

The new cell will be placed at the move destination and the two old cells will be deleted.

move dist = md 
move source = ms
move direction (if ms is zero, can't move)operation
leftupmd / ms
rightupmd * ms
leftdownmd - ms
rightdownmd + ms

swap

swap swaps md and ms.

For important point, ms is determined to have moved, but md is determined not.

key or mouseoperation
RRetry this stage
GGenerate a new stage
PPlay answer
Cell click Select or deselect the cell to be moved

How many times can you clear a stage?


Updated 8 days ago
Published 16 days ago
StatusIn development
PlatformsHTML5
Authornot_elm
GenrePuzzle
Made withRust
Tags2D, bevy, bevy-engine, Open Source, Puzzle-Platformer, rust, Short, Singleplayer
Code licenseMIT License
Average sessionA few seconds
LanguagesEnglish
InputsKeyboard, Mouse
LinksSource code, bevy_flurx repository

Development log

Leave a comment

Log in with itch.io to leave a comment.