在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Card-Forge/forge开源软件地址:https://github.com/Card-Forge/forge开源编程语言:Java 99.0%开源软件介绍:ForgeDev instructions here: Getting Started (Somewhat outdated) Discord channel here Requirements / Tools
Project Quick Setup
EclipseEclipse includes Maven integration so a separate install is not necessary. For other IDEs, your mileage may vary. Project Setup
Project LaunchDesktopThis is the standard configuration used for releasing to Windows / Linux / MacOS.
Mobile (Desktop dev)This is the configuration used for doing mobile development using the Windows / Linux / MacOS front-end. Knowledge of libgdx is helpful here.
Eclipse / Android SDK IntegrationGoogle no longer supports Android SDK releases for Eclipse. That said, it is still possible to build and debug Android platforms. Android SDKReference SO for obtaining a specific release: https://stackoverflow.com/questions/27043522/where-can-i-download-an-older-version-of-the-android-sdk WindowsDownload the following archived version of the Android SDK: http://dl-ssl.google.com/android/repository/tools_r25.2.3-windows.zip. Install it somewhere on your machine. This is referenced in the following instructions as your 'Android SDK Install' path. Linux / Mac OSXTBD Android Plugin for EclipseGoogle's last plugin release does not work completely with target's running Android 7.0 or later. Download the ADT-24.2.0-20160729.zip plugin from: https://github.com/khaledev/ADT/releases In Eclipse go to: Help > Install New Software... > Add > Name: ADT Update, Click on the "Archive:" button and navigate to the downloaded ADT-24.2.0-20160729.zip file > Add. Install all "Developer Tools". Eclipse should restart and prompt you to run the SDK Manager. Launch it and continue to the next steps below. Android PlatformIn Eclipse, if the SDK Manager is not already running, go to Window > Android SDK Manager. Install the following options / versions:
Note that this will populate additional tools in the Android SDK install path extracted above. Proguard updateThe Proguard included with the Android SDK Build-tools is outdated and does not work with Java 1.8. Download Proguard 6.0.3 or later (last tested with 7.0.1) from https://github.com/Guardsquare/proguard
Android BuildThe Eclipse plug-ins do NOT support building things for Android. They do however allow you to use the debugger so you can still set breakpoints and trace things out. The steps below show how to generate a debug Android build.
Assuming you got this far, you should have an Android forge-android-[version].apk in the forge-gui-android/target path. Android DeployYou'll need to have the Android SDK install path platform-tools/ path in your command search path to easily deploy builds.
Android DebuggingAssuming the apk is installed, launch it from the device. In Eclipse, launch the DDMS. Window > Perspective > Open Perspective > Other... > DDMS. You should see the forge app in the list. Highlight the app, click on the green debug button and a green debug button should appear next to the app's name. You can now set breakpoints and step through the source code. Windows / Linux SNAPSHOT buildSNAPSHOT builds can be built via the Maven integration in Eclipse.
The resulting snapshot will be found at: forge-gui-desktop/target/forge-gui-desktop-[version]-SNAPSHOT IntelliJQuick start guide for setting up the Forge project within IntelliJ. Card ScriptingVisit this page for information on scripting. Card scripting resources are found in the forge-gui/res/ path. General NotesProject HierarchyForge is divided into 4 primary projects with additional projects that target specific platform releases. The primary projects are:
The platform-specific projects are:
forge-aiforge-coreforge-gameforge-guiThe forge-gui project includes the scripting resource definitions in the res/ path. forge-gui-androidLibgdx-based backend targeting Android. Requires Android SDK and relies on forge-gui-mobile for GUI logic. forge-gui-desktopJava Swing based GUI targeting desktop machines. Screen layout and game logic revolving around the GUI is found here. For example, the overlay arrows (when enabled) that indicate attackers and blockers, or the targets of the stack are defined and drawn by this. forge-gui-iosLibgdx-based backend targeting iOS. Relies on forge-gui-mobile for GUI logic. forge-gui-mobileMobile GUI game logic utilizing libgdx library. Screen layout and game logic revolving around the GUI for the mobile platforms is found here. forge-gui-mobile-devLibgdx backend for desktop development for mobile backends. Utilizes LWJGL. Relies on forge-gui-mobile for GUI logic. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论