Skip to content

Commit

Permalink
Перенесли бинарные файлы и демонстрационную игру в релиз.
Browse files Browse the repository at this point in the history
  • Loading branch information
tereshenkovav committed Jun 1, 2023
1 parent 67d84e7 commit 246d7b7
Show file tree
Hide file tree
Showing 25 changed files with 0 additions and 116 deletions.
Binary file removed bin/GameStudy.exe
Binary file not shown.
Binary file removed bin/GameStudyNoGUI.exe
Binary file not shown.
Binary file removed bin/Qt5Core.dll
Binary file not shown.
Binary file removed bin/Qt5Gui.dll
Binary file not shown.
Binary file removed bin/Qt5Script.dll
Binary file not shown.
Binary file removed bin/Qt5Widgets.dll
Binary file not shown.
Binary file removed bin/fonts/arial.ttf
Binary file not shown.
Binary file removed bin/libgcc_s_dw2-1.dll
Binary file not shown.
Binary file removed bin/libstdc++-6.dll
Binary file not shown.
Binary file removed bin/libwinpthread-1.dll
Binary file not shown.
Binary file removed bin/openal32.dll
Binary file not shown.
Binary file removed bin/platforms/qwindows.dll
Binary file not shown.
1 change: 0 additions & 1 deletion bin/scripts/consts.inc

This file was deleted.

87 changes: 0 additions & 87 deletions bin/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1,98 +1,11 @@
$include<consts.inc>

var info ;
var labmouse ;
var sound ; ;
var animation ;
var sprite ;
var cursor ;
var line ;
var corner ;

function Init(args) {
system.writeMessage('Game started') ;
system.showCursor(false) ;

game.setBackgroundColor(0,0,0) ;

animation = game.loadAnimation('animation.png',100,100,15,10) ;

sprite = game.loadSprite('sprite.png') ;

corner = game.loadSprite('corner.png') ;
cursor = game.loadSprite('cursor.png') ;
cursor.setHotSpot(0,0) ;

info = game.loadText("arial.ttf","",20) ;
info.setColor(40,255,255) ;

labelmouse = game.loadText("arial.ttf","",20) ;

sound = game.loadSound('signal.wav') ;

line = game.createLine(255,0,0) ;

return true ;
}

function Render() {
var mouse = game.getMousePos() ;

sprite.renderTo(200,420) ;
animation.renderTo(500,400) ;

corner.renderTo(790,10) ;
corner.renderTo(10,590) ;
corner.renderTo(790,590) ;

line.drawTo(100,250,700,250) ;

labelmouse.setText("Mouse pos: ["+mouse.x+","+mouse.y+"]") ;
labelmouse.printTo(20,20) ;

info.setColor(40,255,40) ;
info.setText("Total time:" +Math.round(game.getTotalTime())) ;
info.printTo(400,20) ;

info.setColor(40,255,255) ;
info.setText("Press F2 to other scene") ;
info.printTo(20,50) ;
info.setText("Press LButton to play sound") ;
info.printTo(20,80) ;
info.setText("Press Space to start/stop animation") ;
info.printTo(20,110) ;
info.setText("Press F3 to rotate sprite") ;
info.printTo(400,50) ;
info.setText("Press F4 to scale sprite") ;
info.printTo(400,80) ;
info.setText("Press F6 to mirror sprite") ;
info.printTo(400,110) ;

info.setText("Press Escape to exit") ;
info.printTo(290,150) ;

cursor.renderTo(mouse.x,mouse.y) ;
return true ;

}

function Frame(dt) {

if (game.isKeyDown(KEY_ESCAPE)) return false ;

if (game.isKeyDown(KEY_SPACE)) {
if (animation.isPlayed()) animation.stop() ; else animation.play() ;
}

if (game.isKeyDown(KEY_F2)) game.goToScript(SCENESCRIPT,{text:"Hello"}) ;
if (game.isKeyDown(KEY_F3)) sprite.setAngle(45) ;
if (game.isKeyDown(KEY_F4)) sprite.setScale(150) ;
if (game.isKeyDown(KEY_F6)) sprite.mirrorHorz(true) ;

if (game.isLeftButtonClicked()) {
system.writeMessage('LButton click') ;
sound.play() ;
}

return true ;
}
28 changes: 0 additions & 28 deletions bin/scripts/scene2.js

This file was deleted.

Binary file removed bin/sfml-audio-2.dll
Binary file not shown.
Binary file removed bin/sfml-graphics-2.dll
Binary file not shown.
Binary file removed bin/sfml-network-2.dll
Binary file not shown.
Binary file removed bin/sfml-system-2.dll
Binary file not shown.
Binary file removed bin/sfml-window-2.dll
Binary file not shown.
Binary file removed bin/sounds/signal.wav
Binary file not shown.
Binary file removed bin/sprites/animation.png
Binary file not shown.
Binary file removed bin/sprites/corner.png
Binary file not shown.
Binary file removed bin/sprites/cursor.png
Binary file not shown.
Binary file removed bin/sprites/sprite.png
Binary file not shown.

0 comments on commit 246d7b7

Please sign in to comment.