mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-03 00:43:30 +02:00
progress
This commit is contained in:
@@ -43,6 +43,13 @@ pub fn main() void {
|
||||
// Feel free to run this program without adding Zump. What does
|
||||
// it do and why?
|
||||
|
||||
chars[1] = Character{
|
||||
.role = Role.bard,
|
||||
.gold = 10,
|
||||
.health = 100,
|
||||
.experience = 20,
|
||||
};
|
||||
|
||||
// Printing all RPG characters in a loop:
|
||||
for (chars, 0..) |c, num| {
|
||||
std.debug.print("Character {} - G:{} H:{} XP:{}\n", .{
|
||||
|
||||
Reference in New Issue
Block a user