Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Game Contra-Shooter Added #3509

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
188 changes: 188 additions & 0 deletions Games/Contra-Shooter/Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

concat: {
dist: {
src: [
'lib/melonJS.js',
'lib/plugins/*.js',
'js/game.js',
'build/js/resources.js',
'js/**/*.js',
],
dest: 'build/js/app.js'
}
},

copy: {
dist: {
files: [{
src: 'index.css',
dest: 'build/index.css'
},{
src: 'main.js',
dest: 'build/main.js'
},{
src: 'manifest.json',
dest: 'build/manifest.json'
},{
src: 'package.json',
dest: 'build/package.json'
},{
src: 'data/**/*',
dest: 'build/',
expand: true
},{
src: 'icons/*',
dest: 'build/',
expand: true
}]
}
},

clean: {
app: ['build/js/app.js'],
dist: ['build/','bin/'],
},

processhtml: {
dist: {
options: {
process: true,
data: {
title: '<%= pkg.name %>',
}
},
files: {
'build/index.html': ['index.html']
}
}
},

replace : {
dist : {
options : {
usePrefix : false,
force : true,
patterns : [
{
match : /this\._super\(\s*([\w\.]+)\s*,\s*["'](\w+)["']\s*(,\s*)?/g,
replacement : '$1.prototype.$2.apply(this$3'
},
],
},
files : [
{
src : [ 'build/js/app.js' ],
dest : 'build/js/app.js'
}
]
},
},

uglify: {
options: {
report: 'min',
preserveComments: 'some'
},
dist: {
files: {
'build/js/app.min.js': [
'build/js/app.js'
]
}
}
},

connect: {
server: {
options: {
port: 3000,
keepalive: false
}
}
},

'download-electron': {
version: '1.4.6',
outputDir: 'bin',
rebuild: false,
},

asar: {
dist: {
cwd: 'build',
src: ['**/*', '!js/app.js'],
expand: true,
dest: 'bin/' + (
process.platform === 'darwin'
? 'Electron.app/Contents/Resources/'
: 'resources/'
) + 'app.asar'
},
},

resources: {
dist: {
options: {
dest: 'build/js/resources.js',
varname: 'game.resources',
},
files: [{
src: ['data/bgm/**/*', 'data/sfx/**/*'],
type: 'audio'
},{
src: ['data/img/**/*.png'],
type: 'image'
},{
src: ['data/img/**/*.json'],
type: 'json'
},{
src: ['data/map/**/*.tmx', 'data/map/**/*.json'],
type: 'tmx'
},{
src: ['data/map/**/*.tsx'],
type: 'tsx'
}]
}
},

watch: {
resources: {
files: ['data/**/*'],
tasks: ['resources'],
options: {
spawn: false,
},
},
},

});

grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-processhtml');
grunt.loadNpmTasks("grunt-replace");
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-download-electron');
grunt.loadNpmTasks('grunt-asar');

// Custom Tasks
grunt.loadTasks('tasks');

grunt.registerTask('default', [
'resources',
'concat',
'replace',
'uglify',
'copy',
'processhtml',
'clean:app',
]);
grunt.registerTask('dist', ['default', 'download-electron', 'asar']);
grunt.registerTask('serve', ['resources', 'connect', 'watch']);
}
45 changes: 45 additions & 0 deletions Games/Contra-Shooter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# **Contra-Shooter**

---

<br>

## **Description 📃**
<!-- add your game description here -->
- Contra is an action-packed run-and-gun shooter game where players battle through various levels filled with enemies and obstacles. The game offers a mix of intense combat and strategic gameplay, challenging players to use their skills and reflexes to overcome each stage.

## **Functionalities 🎮**
<!-- add functionalities over here -->
- Single-player and co-op multiplayer modes.
- Various weapons and power-ups.
- Multiple levels with unique environments and enemies.
- Boss battles at the end of each level.
- Save and load game progress.
- Customizable controls and settings.

<br>

## **How to play? 🕹️**
<!-- add the steps how to play games -->
- Start the game and choose your mode (single-player or co-op multiplayer).
- Use the arrow keys or joystick to move your character.
- Press the shoot button to fire your weapon at enemies.
- Collect power-ups and weapons to enhance your abilities.
- Navigate through levels, avoid or destroy obstacles, and defeat enemies.
- Face the boss at the end of each level and defeat it to progress.
- Use the pause menu to access settings, save/load game, and more.

<br>

## **Screenshots 📸**

<br>
<!-- add your screenshots like this -->
<!-- ![image](url) -->
![Contra-Shooter](https://github.com/VesperAkshay/GameZone/assets/118452811/f0d2261f-33ee-488d-8fb9-d320a334d708)


<br>

## **Working video 📹**
<!-- add your working video over here -->
107 changes: 107 additions & 0 deletions Games/Contra-Shooter/build/js/resources.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
game.resources = [
{
"name": "dst-inertexponent",
"type": "audio",
"src": "data/bgm/"
},
{
"name": "cling",
"type": "audio",
"src": "data/sfx/"
},
{
"name": "jump",
"type": "audio",
"src": "data/sfx/"
},
{
"name": "stomp",
"type": "audio",
"src": "data/sfx/"
},
{
"name": "icon_badge_24_48",
"type": "image",
"src": "data/img/gui/icon_badge_24_48.png"
},
{
"name": "icon_select_30_25",
"type": "image",
"src": "data/img/gui/icon_select_30_25.png"
},
{
"name": "img_captured",
"type": "image",
"src": "data/img/gui/img_captured.png"
},
{
"name": "img_neslogo",
"type": "image",
"src": "data/img/gui/img_neslogo.png"
},
{
"name": "img_splashpage",
"type": "image",
"src": "data/img/gui/img_splashpage.png"
},
{
"name": "contra-tile-map",
"type": "image",
"src": "data/img/map/contra-tile-map.png"
},
{
"name": "bad-guys",
"type": "image",
"src": "data/img/sprite/bad-guys.png"
},
{
"name": "bill-lance",
"type": "image",
"src": "data/img/sprite/bill-lance.png"
},
{
"name": "explosion-sprite",
"type": "image",
"src": "data/img/sprite/explosion-sprite.png"
},
{
"name": "power-ups-sprite",
"type": "image",
"src": "data/img/sprite/power-ups-sprite.png"
},
{
"name": "rock_platform-sprite",
"type": "image",
"src": "data/img/sprite/rock_platform-sprite.png"
},
{
"name": "bad-guys",
"type": "json",
"src": "data/img/sprite/bad-guys.json"
},
{
"name": "bill-lance",
"type": "json",
"src": "data/img/sprite/bill-lance.json"
},
{
"name": "contra-lvl-0",
"type": "tmx",
"src": "data/map/contra-lvl-0.tmx"
},
{
"name": "contra-lvl-1",
"type": "tmx",
"src": "data/map/contra-lvl-1.tmx"
},
{
"name": "contra-tileset-1",
"type": "tmx",
"src": "data/map/contra-tileset-1.tmx"
},
{
"name": "contra-tileset-2",
"type": "tmx",
"src": "data/map/contra-tileset-2.tmx"
}
];
2 changes: 2 additions & 0 deletions Games/Contra-Shooter/data/bgm/.placeholder
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docs will be placed here when built

Binary file not shown.
Binary file not shown.
Loading
Loading