Recent

Author Topic: Game Contest 2018  (Read 67707 times)

lainz

  • Hero Member
  • *****
  • Posts: 3225
    • Lainz
Re: Game Contest 2018
« Reply #15 on: January 02, 2018, 05:50:05 pm »
I'm going to port your example to my framework. It will be a nice example to include :)

Thanks, what's your framework?

turrican

  • Full Member
  • ***
  • Posts: 133
  • Pascal is my life.
    • Homepage
Re: Game Contest 2018
« Reply #16 on: January 02, 2018, 07:14:28 pm »
I'm going to port your example to my framework. It will be a nice example to include :)

Thanks, what's your framework?

A little OOP framework I did for ZenGL. You can find here : https://github.com/turric4n/SimpleZGL

I ported part of your code to my Framework. Under 3% of CPU and uses DirectX for Windows and OpenGL for linux. I have not much time today but tomorrow I will end. I compiled only for Windows because now I'm working under a Windows machine.

Here is the link : http://www16.zippyshare.com/v/nygKSJde/file.html

lainz

  • Hero Member
  • *****
  • Posts: 3225
    • Lainz
Re: Game Contest 2018
« Reply #17 on: January 03, 2018, 01:00:03 am »
I can see it works really smooth. 1% CPU on my machine, and GPU usage is higher of course =)

But also I see is not exactly what I did. For example seems that the grid lines dissapears when fading out and some other minor differences.

I've not touched the code but I'm sure you can improve it =)

turrican

  • Full Member
  • ***
  • Posts: 133
  • Pascal is my life.
    • Homepage
Re: Game Contest 2018
« Reply #18 on: January 03, 2018, 09:17:23 am »
I did it on 10 min. Today i'm going to port all features. But you can complete the code if you want :)

lainz

  • Hero Member
  • *****
  • Posts: 3225
    • Lainz
Re: Game Contest 2018
« Reply #19 on: January 03, 2018, 12:29:31 pm »
Thanks you're the one who knows how yo use it, I did not try yet =)

turrican

  • Full Member
  • ***
  • Posts: 133
  • Pascal is my life.
    • Homepage
Re: Game Contest 2018
« Reply #20 on: January 03, 2018, 02:28:53 pm »
I added your circle detection and line drawing code.

Here is the code : https://github.com/turric4n/SimpleZGL/tree/master/examples/Lainz_Circle

Here is precompiled binary for Win32 : http://www11.zippyshare.com/v/jqIBtyji/file.html

lainz

  • Hero Member
  • *****
  • Posts: 3225
    • Lainz
Re: Game Contest 2018
« Reply #21 on: January 03, 2018, 04:57:31 pm »
I added your circle detection and line drawing code.

Here is the code : https://github.com/turric4n/SimpleZGL/tree/master/examples/Lainz_Circle

Here is precompiled binary for Win32 : http://www11.zippyshare.com/v/jqIBtyji/file.html

Amazing! Super fast and nice =)

turrican

  • Full Member
  • ***
  • Posts: 133
  • Pascal is my life.
    • Homepage
Re: Game Contest 2018
« Reply #22 on: January 03, 2018, 07:10:11 pm »
Thanks!

eny

  • Hero Member
  • *****
  • Posts: 1587
Re: Game Contest 2018
« Reply #23 on: January 04, 2018, 10:06:41 pm »
For more inspiration a long overdue block dropping game :)

http://wiki.lazarus.freepascal.org/Petris
All posts based on: Win10 (Win64); Lazarus 1.8.0 'stable' (#56594 win64) unless specified otherwise...

lainz

  • Hero Member
  • *****
  • Posts: 3225
    • Lainz
Re: Game Contest 2018
« Reply #24 on: January 04, 2018, 11:56:14 pm »
For more inspiration a long overdue block dropping game :)

http://wiki.lazarus.freepascal.org/Petris

Thanks. I love Tetris, I'm good at it, and I can't say that for another games like First Person Shooters =)

Added to the retro category. Also I've added turrican conversion of my code since the rules say nothing about conversions =)

Edit: here is my High Score =) 11:48251
« Last Edit: January 05, 2018, 12:13:47 am by lainz »

bylaardt

  • Sr. Member
  • ****
  • Posts: 303
Re: Game Contest 2018
« Reply #25 on: January 05, 2018, 12:15:40 am »
Deadline:
- 6 months from now, until 31 June 2018. No exceptions. On August 2018 we will vote for the best game.

Code: Pascal  [Select]
  1. if Pos('31 june',lainz.text)>0 then
  2.   Exception.create('incompatibility found: Gregorian calendar and lainz date system.');
  3.  

lainz

  • Hero Member
  • *****
  • Posts: 3225
    • Lainz
Re: Game Contest 2018
« Reply #26 on: January 05, 2018, 12:31:35 am »
Deadline:
- 6 months from now, until 31 June 2018. No exceptions. On August 2018 we will vote for the best game.

Code: Pascal  [Select]
  1. if Pos('31 june',lainz.text)>0 then
  2.   Exception.create('incompatibility found: Gregorian calendar and lainz date system.');
  3.  

Thankyou, I was still lost trying to understand =)

Edit: This is the hi score of my brother, level 12 is too fast! 12:70479
« Last Edit: January 05, 2018, 12:54:23 am by lainz »

Paul_

  • Full Member
  • ***
  • Posts: 130
Re: Game Contest 2018
« Reply #27 on: January 05, 2018, 12:59:01 am »
1% CPU on my machine

This is a little confusing on modern CPU's and Windows. At least for me, because:
- it's throttling whole time (so whats single % means?)
- cores are counted somehow, if you have 4 cores CPU (8 Hyper-Threading) so max. load is something like 10-12% per core (+ it depends on the applications, some will exceed that limit).

turrican

  • Full Member
  • ***
  • Posts: 133
  • Pascal is my life.
    • Homepage
Re: Game Contest 2018
« Reply #28 on: January 05, 2018, 09:32:14 am »
For more inspiration a long overdue block dropping game :)

http://wiki.lazarus.freepascal.org/Petris

Yeah, I like to port as example of my framework. Thanks!

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 916
    • Burdjia
Re: Game Contest 2018
« Reply #29 on: January 05, 2018, 01:32:53 pm »
I like to do something but I'm pretty busy right now.  Besides job, I started a project for the MSX-BASIC 2018 contest (people's still using '80 computers, and I think I need "to think different" and good old BASIC is great for this), and I'm forcing myself to release the first beta version of Allegro.pas 5 with Handoko's demonstration game and full Delphi compatibility (the ex_hello example compiles!). Then I should work harder on my game engine so I can do actual games someday...

What a life...  %)

Anyway, I'll be glad to test your games. Keep up the good job and show to those unityers how real games are made!
« Last Edit: January 05, 2018, 01:35:26 pm by Ñuño_Martínez »
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal