找回密码
 立即注册
查看: 116|回复: 0

[范例] Blackjack minigame

[复制链接]

108

主题

0

回帖

412

积分

管理员

积分
412
发表于 2025-9-9 14:36:27 | 显示全部楼层 |阅读模式
This is a plugin for RPG Maker MV that adds a Blackjack minigame. It will fit right in inside any casino in your game, but it's also customisable enough to not look out of place when played in a medieval tavern or on a futuristic spaceship.
Features
  • A fully functional Blackjack minigame: including animated cards, and a helpful window explaining what various actions do.
  • An optional luck system: allows you to determine how lucky the player should be. Finally something to make use of that luck stat!
  • Simple to use: all you need is the "Blackjack" plugin command, which will start the game using the party's gold.
  • Extremely customisable: while it works just fine out of the box, there are 80 plugin parameters allowing you to customise nearly everything: all the text, sounds and colours, as well as things like animation speed or spacing between game's windows.
  • Custom cards: you can not only replace the card graphics with your own, but even create completely unique decks. Want your fantasy version of Blackjack to have 7 card suits, kings to be worth 12 instead of 10, jacks to be worth -10 instead of 10, and queens to be worth either 5 or 15, depending on player's choice? This plugin has got you covered!
  • All parameters are dynamic: as usual with my minigames, every plugin parameter can be modified with a plugin command mid-game, all numerical parameters can instead use a variable, and all boolean (true/false) parameters can instead use a switch. So if one table/casino is not enough for you, you can make more of them, each working completely differently - changing things like the background, wager sizes, sounds, cards, action descriptions and so on. An underground dwarven casino that uses stone tablets as cards perhaps?
  • A bunch of outputs: Various stats from the game are saved to variables of your choice - this is needed when you want to update how many tokens the player now has (if you're not using gold), but can also be used to have NPCs react to how the game went.
Assets
This plugin requires an image with cards, as well as a bunch of sound effects for various animations. Those come provided in the "assetPack.zip" file - big thanks to Kenney for providing these assets under CC0 so that they can be redistributed like this. To use the plugin, you'll need to unpack that zip, place the images inside img/pictures, and the sound effects inside audio/se.
Even if you're planning on using your own sounds and graphics for the cards, I recommend downloading the pack to get an idea of how the card spritesheet should look like.
Terms
This plugin (MAC_Blackjack.js) is available under the MIT Licence. You're free to use it in any games, commercial or not, or use the code in your own plugins. Credit is appreciated, but not required. If you wish to give credit, do so for "Mac15001900" or link to https://mac15001900.itch.io/.
The attached asset pack (assetPack.zip) is available under the Creative Commons 0 licence, and is free to use for any purpose with no credit. If you wish to include credits for it (which I highly recommend you do), credit "Kenney" or "www.kenney.nl".

游客,如果您要查看本帖隐藏内容请回复



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|零九石器时代技术论坛-----09SA RPG MAKER技术论坛

GMT+8, 2025-10-14 11:02 , Processed in 0.113769 second(s), 30 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表