Search found 131 matches

by thexerox123
Fri Apr 12, 2024 10:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable Layered Image/Composite Within an Item Definition
Replies: 5
Views: 224

Re: Variable Layered Image/Composite Within an Item Definition

Hmm, right. I guess the data structure is what I'm having trouble wrapping my mind around, though. I'm not averse to changing the structure; I've already added the category attribute to be able to split them into different tabs. I guess for the potential list/dict method, I still can't quite wrap my...
by thexerox123
Fri Apr 12, 2024 8:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable Layered Image/Composite Within an Item Definition
Replies: 5
Views: 224

Re: Variable Layered Image/Composite Within an Item Definition

Though I guess the thing I'm still not sure about is how I'd make a for loop to check each individual instance of a Fro Yo item and keep track of them. Perhaps a list of lists? But then I still need to figure out how to integrate that with my existing inventory system. Purchasing items is just done ...
by thexerox123
Fri Apr 12, 2024 8:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable Layered Image/Composite Within an Item Definition
Replies: 5
Views: 224

Re: Variable Layered Image/Composite Within an Item Definition

That does make sense... so I'd still define the 12 different Fro Yo images, but when putting the image together in the inventory, would determine what to layer on top with ConditionSwitch or LayeredImage?

Thank you, that's helpful in framing how I could approach it! :)
by thexerox123
Fri Apr 12, 2024 8:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable Layered Image/Composite Within an Item Definition
Replies: 5
Views: 224

Variable Layered Image/Composite Within an Item Definition

I have an inventory system in my game that's based on this one . Here's an example of how I define a food Item: define teacup = Item(name="Tea", desc="A steaming cup of tea.", category="Food", icon="images/items/Tea.png", act=Show("edible_popup", foo...
by thexerox123
Thu Mar 14, 2024 12:52 am
Forum: Ren'Py Questions and Announcements
Topic: Zooming (+ moving) renpy.Render displayables
Replies: 3
Views: 200

Re: Zooming (+ moving) renpy.Render displayables

I would start with something like ... Meaning Forest is one object rendered with many blits, zooming_function() and trajectory() could be something simple (linear) for testing purposes. When the displayable works, they could be fine-tuned. PS. If there could be multiple trees at the same "dist...
by thexerox123
Tue Mar 12, 2024 6:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Zooming (+ moving) renpy.Render displayables
Replies: 3
Views: 200

Zooming (+ moving) renpy.Render displayables

I've started muddling my way through putting together another minigame, and am a bit stuck. The idea is just to make a basic tobogganing game, dodging obstacles and getting pickups. I've got my basic loop working so that my toboggan is displayed, and I can move it back and forth. So here's what I ha...
by thexerox123
Sat Feb 03, 2024 10:41 pm
Forum: Ren'Py Cookbook
Topic: 81 mini game Renpy
Replies: 73
Views: 175378

Re: 81 mini game Renpy

I bring another humble offering for this wonderful thread, made using PyTom's Cardgame Framework:

viewtopic.php?p=565308#p565308
by thexerox123
Sat Feb 03, 2024 10:39 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Cardgame Framework help: vertical and horizontal scoring checks?
Replies: 5
Views: 654

Re: [SOLVED] Cardgame Framework help: vertical and horizontal scoring checks?

Well, I'm going to mark this solved, I've figured out pretty well everything I wanted to do with the game! https://i.imgur.com/jXSufI6.png https://thexerox123.itch.io/elfjack-solitaire script.rpy: init: default btn_selected = False transform zoomy: zoom 0.4 transform zoommid: zoom 0.6 transform zoom...
by thexerox123
Fri Feb 02, 2024 3:54 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Cardgame Framework help: vertical and horizontal scoring checks?
Replies: 5
Views: 654

Re: Cardgame Framework help: vertical and horizontal scoring checks?

So, I actually did manage to get both of my wild cards working! https://i.imgur.com/edwEJEH.gif I've also added an auto-deal function/toggle. Currently trying to get the restart and undo buttons that I've added working! The current state of my script: script.rpy: init: default btn_selected = False s...
by thexerox123
Thu Feb 01, 2024 6:55 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Cardgame Framework help: vertical and horizontal scoring checks?
Replies: 5
Views: 654

Re: Cardgame Framework help: vertical and horizontal scoring checks?

Sorry for just spamming my own thread, but I think I've got it mostly figured out! init python: class ElfJack(object): BAUBLE = 0 SNOW = 1 GINGER = 2 REINDEER = 3 STAR = 4 SANTA = 5 GRUMP = 6 CANE = 7 def __init__(self): # Constants that let us easily change where the game is # located. LEFT=700 TOP...
by thexerox123
Thu Feb 01, 2024 3:22 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Cardgame Framework help: vertical and horizontal scoring checks?
Replies: 5
Views: 654

Re: Cardgame Framework help: vertical and horizontal scoring checks?

I've altered my scoring method to just see if I can have it print the integer that corresponds with the suit of each top card in the tableau, and have had success in doing that, at least: def check_for_scoring(self): for row in range(5): for col in range(5): stack = self.tableau[row * 5 + col] # Acc...
by thexerox123
Thu Feb 01, 2024 2:42 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Cardgame Framework help: vertical and horizontal scoring checks?
Replies: 5
Views: 654

Re: Cardgame Framework help: vertical and horizontal scoring checks?

Here's my most recent attempt to figure out the scoring methods, called in the interact method. def check_for_scoring(self): # Check rows for row in range(5): top_cards = [stack[-1] for stack in self.tableau[row] if stack] self.check_and_claim(top_cards, 'horizontal', row) # Check columns for col in...
by thexerox123
Thu Feb 01, 2024 2:39 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Cardgame Framework help: vertical and horizontal scoring checks?
Replies: 5
Views: 654

[SOLVED] Cardgame Framework help: vertical and horizontal scoring checks?

I'd made a previous thread seeking advice on how to set up a custom game using the Cardgame Framework. I've recently made progress beyond that issue, and have the basic setup working. However, I'm struggling to get the scoring system for the game set up. https://i.imgur.com/tXx6OjY.png So, I need a ...
by thexerox123
Thu Nov 02, 2023 6:50 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Shooter Minigame Help - Seeking Refactoring/Organization Advice
Replies: 15
Views: 2982

Re: Shooter Minigame Help - Seeking Refactoring/Organization Advice

So, I tried working on a version of this game with enemies, but I keep running into issues. I think I'll spin that off into its own thread, and count this version centered around ring-collecting as complete. A downloadable version can be found here: https://thexerox123.itch.io/sleigh-ride Here's the...
by thexerox123
Wed Oct 11, 2023 4:39 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Cardgame Framework help: Replacing ranks with index?
Replies: 1
Views: 671

Re: Cardgame Framework help: No ranks, horiz + vert scoring

Still struggling to get this working. Here's the current state of my code, still trying to adapt the Klondike example. init python: class Elfjack(object): # We represent a card as a (suit, rank) tuple. The suit is one of the # following four constants, while the rank is 1 for ace, 2 for 2, # ..., 10...