Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(3 edits)

I've made basic RPG-type fighting  in Bitsy using only super super basic coding knowledge I got from learning the BASIC programming language for about 2 days. All you really have to program is:

- Set player health, player level / strength, enemy health , enemy level / strength as global variables.
- Upon contact with enemy, set random number (you may have to write extra code to set up a faked random number as real random numbers may not be supported - I can't remember what I did). Add your strength or level number to this random number. Subtract that from enemy health.
- If health is less than 0, game over. If enemy health is less than 0, enemy disappears (and you gain 10 exp or whatever). If you reach xx exp, add a point to strength or whatever.

My code did not use any special graphics for when you attack, or have the enemy chase and attack you first, or anything like that. As I said, I figured out how to do it in 2 days of learning BASIC and didn't know any other coding languages, so it is definitely not an advanced thing. You really only need to know if / then statements, variables, global variables, and basic math.