Giter VIP home page Giter VIP logo

card_game's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar lenscas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

card_game's Issues

keep better track of what happened during a turn

right now the client is only told what the new state is of the battle. Not how it got there. If it is also told what cards got played and what runes triggered then it is able to play animations

more/easier transactions

right now the server doesn't make use of transactions, because they are kind of a pain to deal with.
This can be fixed by making a function with this signature

with_transaction(
    pool: PgPool,
    func : impl Fn(t: Transaction) -> Future<Result<impl Response,ReturnErrors>>
) -> future<Result<impl Response, Rejection>

Which will simply commit the transaction if func returns Ok and rolls it back if it returns Err. This should also make exception handling easier inside the other functions as they can now return a ReturnErrors instead of a Rejection

dungeon generation

  • generate a dungeon using cards
  • give the player some cards to complete the dungeon
  • let the player use these cards

character creation

for now, should be something simple and should just be a way to link decks to a specific run

better card images

text is not correctly placed inside the svg template. Causing cutoff's and new lines in descriptions don't work at all.

Also, there is no way to have the svg contain an image yet.

add an AI

right now the "AI" just selects the first card in its hand. This should be improved.

random idea issue

Just an issue I can use to dump random ideas for the game

That's an interesting concept. There is an event in Slay the Spire that I think would be interesting in this context, depending on how your applying it. The ability to stash a card from your deck. In slay the spire it results in that card being stashed for your next run where you encounter the event and removes the card which has an interesting duel purpose. I could see that being quite interesting in an inderect multiplayer context though. Could be quite interesting.
@Videogamester

switch to sqlx 0.4 with offline support

seems like sqlx 0.4 will contain a cli tool to create and manage migrations. It also allows the macro's to run in offline mode, meaning it doesn't need to check against a real database anymore but instead can use the migrations.

Though sqlx 0.4 is not released yet, I want to switch to it ASAP so this issue serves as a good reminder

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.