Jump to content

View more

Image of the Day

Adding some finishing touches...
Follow us for more
#screenshotsaturday #indiedev... by #MakeGoodGames https://t.co/Otbwywbm3a
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

Sign up now

Quick2D, Free Game Enginee

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 Quick2D   Members   


Posted 28 September 2012 - 06:22 AM

I'm new here, pardon me if I made this topic in a wrong place.
I have a small game making studio and we make indie games. recently I've decided to have an independent game engine for my studio.
This engine's called Quick2D. its a free engine for making 2D games and still in developing process.

Download Here

old descriptions here, follow the last post for the last news

For now, it has no editor, you can use any editor of your choise, like Notepad++ .
In this package, there's a main.js file which includes some base codes and not used variables just to show you how things look and are gonna work.

Once you're script is done, simply run it by Dragging it on the core <Quick2D.exe>. there is no independent exe version of your game yet but it'll be added as soon as the main developing process of the engine is over.

You can have your own script like myname.js or anything else, also additional script files can easily be attached.

Functions and Parameters available in this version:
[source lang="jscript"]double = load_texture (string);draw_sprite (id, x, y);draw_text (text, size, x, y);set_origin (id, x, y);set_cursor ("visible" or "invisible");set_title (title);set_screen (width, height);get_width (id);get_height (id);double = screen_width;double = screen_height;exec ("script.js");alert (message);double = random (max);window_mode (0 or 1);quit ();double = Length (string);double = check_collision (id1, id2);[/source]
Events available in this version:
[source lang="jscript"]onMouseButtonPressed (e)onMouseButtonReleased (e)onMouseMove (e)onMouseWheelMoved (e)onKeyPressed (e)onKeyReleased (e)[/source]

There are 3 main Events/Functions that you should never attempt to delete them, Project_Settings, Start and Update.

Project_Settings will be called at the beginning of your game once and for all. in this event you can set your project settings like Windowed or Fullscreen, window size, window title, etc...

Start will be called once after Project_Settings. its the best place to initialize your variables.

Update is the main loop of the game. nothing fancy.

In Mouse Button events, e contains Button, X, Y (small and capital letters are important)
[source lang="jscript"]if (e.Button+""=="Left"){// Your code}[/source]
You have to convert Button to string. it'll be fixed in the next version.

The function exec is for calling scripts from outside of the main script. simply put it at the beginning of Start event.
get_width and get_height are usable to get sprites sizes by giving them the sprite id.
And remember, never use load_texture in Update event.

Empty template for main.js:
[source lang="jscript"]function Project_Settings(id){}function Start(id){}function Main(id){}[/source]

- Character Animation Tutorial

Feel free to ask any question here Posted Image I'll be responser.

More downloads and tutorials on http://quick2d.wordpress.com/

Edited by Quick2D, 02 October 2012 - 08:41 AM.

#2 Ashaman73   Members   


Posted 28 September 2012 - 06:53 AM

I have a small game making studio and we make indie games

Can you give more information about your game studio, some screenshots, website etc. Your game engine is (packed) <1mb, that is not much. To be honest, I would never test it out of fear of getting a keylogger or other malware installed on my PC. If it is a self written malware, it is likely that no anti-malware tool will detect it.



Gnoblins: Website - Facebook - Twitter - Youtube - Steam Greenlit - IndieDB - Gamedev Log

#3 Quick2D   Members   


Posted 28 September 2012 - 06:59 AM

yes of course. I wouldn't blame you. besides, my engine is mostly the core. as I said, it has no editor yet. the name of my studio is Bluebulk and you can visit the website at www.bluebulk.info and the mini games we've made. its based in Mölln, Germany.

Also if you or anyone else are afraid of keyloggers or trojans or anything like that, you can easily set your firewall to interactive mode and if my engine wanted to connect to internet, block it !

Edited by Quick2D, 28 September 2012 - 07:28 AM.

#4 Quick2D   Members   


Posted 28 September 2012 - 08:34 AM

Tutorial:: How to make character animation

- first, make a file named "character_animation.js" and put the tamplate in it:
[source lang="jscript"]function Project_Settings(id){}function Start(id){}function Main(id){}[/source]
- Go to the Sprites folder and put character folder in it. (files are attached)

Attached File  character.rar   31.72KB   158 downloads

- define these variables:
[source lang="jscript"]var speed, is_down, f, x, y, timer;var frames=new Array();[/source]
- in Project_Settings :
[source lang="jscript"]set_title("Character Animation");window_mode(0);set_screen(800,600);[/source]
in the first line, we set the window title, next we set it to windowed and finally set the resolution to 800x600 pixels.

- in Start event, lets initialize our variables:
[source lang="jscript"]speed=0;f=0;timer=0;x=100;y=250;is_down=false;[/source]
- after that, we need to fill our array with frames. so:
[source lang="jscript"]for (var i=0; i < 8; i+=1){ frames[i]=load_texture("character\\"+(i+1)+".png");}[/source]

now we're set to go.
- in Main event, draw the character using draw_sprite function :
[source lang="jscript"]draw_sprite(frames[f],x,y);[/source]
- now we need to make a timer for frame animation :
[source lang="jscript"]if (is_down){ if (timer < 4) { timer+=1; }else{ timer=0; f+=1; if (f > 7) { f=0; } }}[/source]
you can play with timer values to change the speed of the animation.
now its time to move our character using keyboard.
I'll do it for one direction, you do the rest ;)

- make a keyboard keypress event :
[source lang="jscript"]function onKeyPressed(e){}[/source]
- add following lines in it :
[source lang="jscript"]if (e=="Right"){ is_down=true;}[/source]
it says if you press the Right arrow on your keyboard, it'll start moving. now lets stop it on releasing the key !

[source lang="jscript"]function onKeyReleased(e){ if (e=="Right") { is_down=false; f=0; }}[/source]
Time to move !
- get back to Main event and add this line after if (is_down){
[source lang="jscript"]x+=2;[/source]

Save your script and run your game by dragging character_animation.js onto <Quick2D.exe>

Feel free to ask your questions.


Edited by Quick2D, 28 September 2012 - 09:48 AM.

#5 Quick2D   Members   


Posted 28 September 2012 - 03:57 PM

Upcoming update: http://quick2d.wordpress.com/2012/09/28/some-features-of-rev-1-0-3/

#6 Quick2D   Members   


Posted 29 September 2012 - 06:28 AM

Finally rev 1.0.3 is ready !
Download rev 1.0.3 (1.25Mb)
A mini game with source is included. not all functions are used in it though.

Functions and Parameters Added in this version:
[source lang="jscript"]LeftButton RightButton MiddleButton rotate (id, angle) double = xval_to_point (id, targetX, targetY, speed) double = yval_to_point (id, targetX, targetY, speed) double = xval_to_direction (id, angle, speed) double = yval_to_direction (id, angle, speed) angle = lookAt (id, targetX, targetY) double = distance_to_point (id, targetX, targetY) wait (milliseconds) double = mouse_hit (id, mouseX, mouseY)[/source]

Screenshots of the sample project:

Posted Image
Posted Image

#7 Quick2D   Members   


Posted 02 October 2012 - 08:40 AM

Version 1.1.0 is out now !
Download it from here

In this version you see a flexible Editor. also we made lots of changes in the core and many bugs fixed. You can make different objects, set your project settings visually and run your games by simply click a button. some code snippets and easy to use event buttons, Audio engine and new algorithm to animate strip images. There is a sample project in the rar file. open Quick2D and hit the Folder button to open the project.
Functions and Parameters Added to this release:
[source lang="jscript"]ray_hitdraw_backgroundload_soundplay_soundstop_sound[/source]

Posted Image
Posted Image

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.