Create DB #6

Closed
opened 2024-03-17 14:59:22 -05:00 by Jonathan · 2 comments
Owner

Database would store all player / enemy references.

Functions are created in lua and the DB would contain a reference to the function containing part of the game loop, as well as data to be passed into the function.

Database would store all player / enemy references. Functions are created in lua and the DB would contain a reference to the function containing part of the game loop, as well as data to be passed into the function.
Jonathan added the
enhancement
label 2024-03-17 14:59:22 -05:00
Author
Owner

DB tables:

  • map - XY coordinates, ID, occupied_by.
  • player - player_name, player_HP, player_position
  • player_inventory - contains item, quantity, ref to function
    (find way to constrain max number of items)
  • enemy instances - type, ref to enemy function, position
DB tables: - map - XY coordinates, ID, occupied_by. - player - player_name, player_HP, player_position - player_inventory - contains item, quantity, ref to function (find way to constrain max number of items) - enemy instances - type, ref to enemy function, position
Author
Owner

working on it

working on it
Jonathan started working 2024-03-17 16:10:04 -05:00
Jonathan stopped working 2024-03-17 16:55:37 -05:00
45 minutes 33 seconds
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 45 minutes 33 seconds
Jonathan
45 minutes 33 seconds
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Jonathan/Peradventure#6
No description provided.