Ideas for RPG game
Theme :
Escape a room in a prison
Background : a dark room.
NPC: Player interact with NPC, NPC give quests.
NPC1: makes player answer questions, if player answer correctly, u get the key
NPC2: make player find an spoon, return back to npc with spoon, to get the other key
NPC3: tells player that he needs to find two keys to escape and progress
item(spoon): Player interact with item, item disapear, set pickUpItem bool to true, then player interact with npc to continue to get an item.
Item(keys): The player needs two of these to progress to the enxt level, one from the quiz npc, one from the fetch quest npc
we wont add a sprite for this, just a notification that the player has obtained an item

Draw() - draws the sprites on the canvas
Update() - runs so that the sprites can refresh
Interact() - runs when player is close enough, and when a key is pressed, for item, this destroys the item, and updates a variable to 1 item picked up
Interact() (NPC) - This runs when the player is touching the npc, it makes an alert show up.
GiveQuest() - This gives the player a quest, make a variable that stores if the quest is complete, if player interacts with npc after the variable is true, the quest is completed
Movement() - Checks when player presses down a key, then sets the velocity of a player to the speed. the speed is added in the Update() function
npc
item
background
player
![]()