-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
93 changed files
with
5,111 additions
and
4,859 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
flags: ["--enable-networking --disable-gtk3", | ||
"--enable-networking --enable-gtk3", | ||
"--disable-networking"] | ||
include: | ||
- os: macos-latest | ||
flags: "--enable-networking" | ||
- os: ubuntu-latest | ||
container: benmwebb/mingw | ||
flags: "--host=x86_64-w64-mingw32 --enable-nativewin32" | ||
runs-on: ${{ matrix.os }} | ||
container: ${{ matrix.container }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies (Linux) | ||
if: matrix.os == 'ubuntu-latest' && matrix.container == null | ||
run: | | ||
sudo apt-get update -qq && sudo apt-get install -qq automake autoconf gcc libglib2.0-dev libcurl4-openssl-dev libgtk2.0-dev libgtk-3-dev | ||
- name: Install dependencies (Mac) | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
brew install automake | ||
- name: Build | ||
run: | | ||
./autogen.sh ${{ matrix.flags }} && make -j2 | ||
- name: Test | ||
if: matrix.container == null | ||
run: | | ||
src/dopewars -v | ||
src/dopewars -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ develop ] | ||
schedule: | ||
- cron: '38 13 * * 3' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'cpp' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] | ||
# Learn more: | ||
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies (Linux) | ||
run: | | ||
sudo apt-get update -qq && sudo apt-get install -qq automake autoconf gcc libglib2.0-dev libcurl4-openssl-dev libgtk-3-dev gettext | ||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v1 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# How to contribute | ||
|
||
dopewars is open-source software, meaning that it is free for anybody to | ||
use. However, this also means that the quality of the software is dependent | ||
in part on **you** the user. You **don't** have to be a programmer to | ||
help out - in fact, dopewars currently needs people to produce sounds and | ||
graphics rather than to write code. | ||
|
||
- **Sounds** are needed. dopewars-1.5.7 and later support sounds, but | ||
don't contain sounds for every game event. If **you** can provide | ||
copyright-free sounds, then short files are needed for various effects | ||
in the game. For example, gunshots, bullet hits, ricochets and subway | ||
trains are obvious candidates for sound effects, although pretty much | ||
any event in the game that you can think of can conceivably have a sound | ||
(e.g. when players join or leave the game). These sounds should be in WAV | ||
format, and should probably be no more than a second or two in length. | ||
Later versions of dopewars may also be able to play longer repeating | ||
sounds (i.e. music) if you're interested in contributing this. Please | ||
open a [pull request](https://github.com/benmwebb/dopewars/pulls) | ||
to add sound files to dopewars. | ||
|
||
- **Suggestions** for future improvements are always welcomed at the | ||
[issue tracker](https://github.com/benmwebb/dopewars/issues). | ||
These can be anything from "the game interface is confusing" through | ||
"more game locations are needed" to "what about a hospital". (I can't | ||
guarantee that such suggestions will ever make it into dopewars, but | ||
it's a lot easier if I know they exist! Also, it's far more likely | ||
to happen if you write the code - see the | ||
[tips for developers](https://dopewars.sourceforge.io/docs/developer.html) | ||
page.) | ||
|
||
- **Bug reports** are always useful. Register them with the | ||
[issue tracker](https://github.com/benmwebb/dopewars/issues). | ||
If I don't know the problem exists, I can't fix it... | ||
The more information you can give here, the better. In particular, I need | ||
to know your operating system - e.g. Linux or Windows. For Linux, gdb stack | ||
traces of the core file are most useful. | ||
|
||
- **Configuration files** can be included in future distributions. If | ||
you run a customised game, and think others might want to play with your | ||
configuration, or at least use it as an example, then post it in the | ||
[issue tracker](https://github.com/benmwebb/dopewars/issues). | ||
|
||
- **Translation** of dopewars into your language will enable you to | ||
play the game in your native tongue, and will also help others that speak | ||
the same language. It's pretty easy, too - all you have to do is edit a | ||
simple text file! See the | ||
[i18n pages](https://dopewars.sourceforge.io/docs/developer.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
[![Build Status](https://travis-ci.com/benmwebb/dopewars.svg?branch=develop)](https://travis-ci.com/benmwebb/dopewars) | ||
[![Build Status](https://github.com/benmwebb/dopewars/workflows/build/badge.svg?branch=develop)](https://github.com/benmwebb/dopewars/actions?query=workflow%3Abuild) | ||
[![Download dopewars drug dealing game](https://img.shields.io/sourceforge/dt/dopewars.svg)](https://dopewars.sourceforge.io/download.html) | ||
|
||
This is dopewars 1.6.1, a game simulating the life of a drug dealer in | ||
This is dopewars 1.6.2, a game simulating the life of a drug dealer in | ||
New York. The aim of the game is to make lots and lots of money... | ||
unfortunately, you start the game with a hefty debt, accumulating interest, | ||
and the cops take a rather dim view of drug dealing... | ||
|
||
These are brief instructions; see the HTML documentation for full information. | ||
|
||
dopewars 1.6.1 servers should handle clients as old as version 1.4.3 with | ||
dopewars 1.6.2 servers should handle clients as old as version 1.4.3 with | ||
hardly any visible problems (the reverse is also true). However, it is | ||
recommended that both clients and servers are upgraded to 1.6.1! | ||
recommended that both clients and servers are upgraded to 1.6.2! | ||
|
||
## Installation | ||
|
||
|
@@ -19,10 +20,10 @@ Either... | |
|
||
Or... | ||
|
||
1. Get the tarball `dopewars-1.6.1.tar.gz` from the same URL | ||
2. Extract it via `tar -xvzf dopewars-1.6.1.tar.gz` | ||
1. Get the tarball `dopewars-1.6.2.tar.gz` from the same URL | ||
2. Extract it via `tar -xvzf dopewars-1.6.2.tar.gz` | ||
3. Follow the instructions in the `INSTALL` file in the newly-created | ||
`dopewars-1.6.1` directory | ||
`dopewars-1.6.2` directory | ||
|
||
Once you're done, you can safely delete the RPM, tarball and dopewars | ||
directory. The dopewars binary is all you need! | ||
|
@@ -33,8 +34,8 @@ score file can be selected with the `-f` switch. | |
|
||
## Windows installation | ||
|
||
dopewars now compiles as a console or regular application under Win32 | ||
(XP or later). Almost all functionality of the standard Unix binary is retained; | ||
dopewars now compiles as a console or regular application under Win32 (Windows 7 | ||
or later). Almost all functionality of the standard Unix binary is retained; | ||
for example, all of the same command line switches are supported. However, for | ||
convenience, the configuration file is the more Windows-friendly | ||
"dopewars-config.txt". | ||
|
@@ -48,21 +49,21 @@ dopewars has built-in client-server support for multi-player games. For a | |
full list of options configurable on the command line, run dopewars with | ||
the `-h` switch. | ||
|
||
`dopewars -a` | ||
`dopewars -a` | ||
This is "antique" dopewars; it tries to keep to the original dopewars, based | ||
on the "Drug Wars" game by John E. Dell, as closely as possible. | ||
|
||
`dopewars` | ||
`dopewars` | ||
By default, dopewars supports multi-player games. On starting a game, the | ||
program will attempt to connect to a dopewars server so that players can send | ||
messages back and forth, and shoot each other if they really want to... | ||
|
||
`dopewars -s` | ||
`dopewars -s` | ||
Starts a dopewars server. This sits in the background and handles multi-player | ||
games. You probably want to use the `-l` command line option too to direct its | ||
log output to somewhere sensible. | ||
|
||
`dopewars -c` | ||
`dopewars -c` | ||
Create and run a computer dopewars player. This will attempt to connect | ||
to a dopewars server, and if this succeeds, it will then participate in | ||
multi-player dopewars games. | ||
|
@@ -100,11 +101,11 @@ nicer! ;) | |
## License | ||
|
||
dopewars is released under the GNU General Public License; see the text file | ||
LICENCE for further information. dopewars is copyright (C) Ben Webb 1998-2020. | ||
LICENCE for further information. dopewars is copyright (C) Ben Webb 1998-2022. | ||
The dopewars icons are copyright (C) Ocelot Mantis 2001. | ||
|
||
## Support | ||
|
||
dopewars is written and maintained by Ben Webb <[email protected]> | ||
dopewars is written and maintained by Ben Webb <[email protected]> | ||
Enquiries about dopewars may be sent to this address (keep them sensible | ||
please ;) Bug fixes and reports, improvements and patches are also welcomed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.