How easy or how difficult it is to create a game like this? Anyone attempted it before? Please share.

How difficult it is to create a game like this?
|
![]()
Show posts by this member only | IPv6 | Post
#1
|
![]() ![]() ![]()
Validating
90 posts Joined: Jan 2023 ![]() |
|
|
|
|
![]()
Show posts by this member only | Post
#2
|
![]() ![]() ![]()
Junior Member
223 posts Joined: Aug 2021 ![]() ![]() |
|
|
![]()
Show posts by this member only | IPv6 | Post
#3
|
![]() ![]() ![]()
Validating
90 posts Joined: Jan 2023 ![]() |
I found a game competition on:
https://www.syntaxbomb.com/game-coding-competitions/ It gives away 100 pounds for winner. Not sure if it has something to do with Blitz2D and Blitz3D SDK. I am still new there. |
|
![]()
Show posts by this member only | IPv6 | Post
#4
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
4,429 posts Joined: Dec 2004 From: Metro Prima, Kuala Lumpur, Malaysia, Earth, Sol ![]() ![]() |
About 1 day with game engine I think. There are many things that u can't see like high score, menu, level difficulties,vetc. Tullamarine liked this post
|
|
![]()
Show posts by this member only | IPv6 | Post
#5
|
![]() ![]() ![]()
Junior Member
235 posts Joined: May 2011 ![]() |
I did something similar many years ago. I did not use a game engine but I remember using some kind of graphics library. I'm typing this entirely from memory so take it with a grain of salt. But the core of a simple game engine is the rendering loop -- basically an infinite for loop. There's tick-based loop and frame-based loop. One of them is easier to implement -- can't remember which one. At every iteration, you pass some time info to the objects and the physics engine, as well as update score counter and read user input. The objects are the aliens and the player. They have properties like coordinates and HP and speed and direction. For the physics engine, it's for collision detection. If the player shoots a bullet and that bullet object touches the alien, that's collision is going to deduce enemy HP / destroy it. Once the HP gets to zero for the alien, the alien sprite is removed from screen, and the score is updated. I only did a toy project though. It's not a productive way to make real games. Tullamarine liked this post
|
|
![]()
Show posts by this member only | Post
#6
|
![]() ![]() ![]()
Junior Member
223 posts Joined: Aug 2021 ![]() ![]() |
May be this game is very simple,
many tutorial use it. Space Invaders http://appinventor.mit.edu/explore/ai2/space-invaders.html Part 1 - Scratch Space Invaders Tutorial - YouTube https://www.youtube.com/watch?v=1E4b9EwI4lA ![]() This post has been edited by flashang: Mar 16 2023, 11:28 PM |
|
![]()
Show posts by this member only | IPv6 | Post
#7
|
![]() ![]() ![]()
Validating
163 posts Joined: Apr 2020 ![]() |
Is it a must a simple game like space invader to use timer?
Can I use indefinite loop, and then call subroutine to draw, to detect collision, to check key in every cycle / loop? It might be slow if without timer, to handle manually, but I haven't put them into practice. Still not decisive whether to create space invader first, or continue studying disassembler project.... Thank you @narf03 and @iammyself for sharing your experience, and thanks @flashang for the links (The Galaxy shooter is not mobile friendly :=). |
|
![]()
Show posts by this member only | Post
#8
|
![]() ![]() ![]()
Junior Member
223 posts Joined: Aug 2021 ![]() ![]() |
QUOTE(Tullamarine @ Mar 27 2023, 12:33 AM) Is it a must a simple game like space invader to use timer? Both methods are working, you may choose the suitable one.Can I use indefinite loop, and then call subroutine to draw, to detect collision, to check key in every cycle / loop? It might be slow if without timer, to handle manually, but I haven't put them into practice. Still not decisive whether to create space invader first, or continue studying disassembler project.... Thank you @narf03 and @iammyself for sharing your experience, and thanks @flashang for the links (The Galaxy shooter is not mobile friendly :=). IMHO, Using timer when : * Strict time control, e.g. Object from point A move to point B is X seconds aka Y timer count. * "Simple" calculation which can be done within one timer cycle. Using indefinite loop is more suitable for : * Non-time critical requirements, e.g. turn based game, chess, card. * Complex calculation which may not able to complete within limited of time, e.g. chess calculation. You might need to try than can get the "best practice". ![]() This post has been edited by flashang: Mar 27 2023, 09:28 PM Tullamarine liked this post
|
|
|
|
![]()
Show posts by this member only | IPv6 | Post
#9
|
![]() ![]() ![]()
Validating
163 posts Joined: Apr 2020 ![]() |
My new question: How to draw a diagonal line using draw pixel function?
Unlike drawing horizontal line and vertical line, I can increment the x and y. But for diagonal line that connect corner to corner in a rectangle, how to know when to adjust x and y simultaneously? I think it requires math calculation. |
|
![]() |
![]() ![]() ![]()
Junior Member
223 posts Joined: Aug 2021 ![]() ![]() |
QUOTE(Tullamarine @ Apr 18 2023, 06:20 PM) My new question: How to draw a diagonal line using draw pixel function? You may look for the famous "Bresenham’s Line Generation Algorithm" : Unlike drawing horizontal line and vertical line, I can increment the x and y. But for diagonal line that connect corner to corner in a rectangle, how to know when to adjust x and y simultaneously? I think it requires math calculation. Bresenham’s Line Generation Algorithm - GeeksforGeeks https://www.geeksforgeeks.org/bresenhams-li...tion-algorithm/ ![]() Tullamarine liked this post
|
|
![]()
Show posts by this member only | IPv6 | Post
#11
|
![]() ![]() ![]()
Validating
163 posts Joined: Apr 2020 ![]() |
QUOTE(flashang @ Apr 18 2023, 11:33 PM) You may look for the famous "Bresenham’s Line Generation Algorithm" : Thank you (and @angch), for telling me about the Bresenham's Line Algorithm.Bresenham’s Line Generation Algorithm - GeeksforGeeks https://www.geeksforgeeks.org/bresenhams-li...tion-algorithm/ ![]() Your geeksforgeeks website requires an account to continue, so I use the example code in Wikipedia. If I use plotLine, I can only draw horizontal line and diagonal line from upper left to lower right. This is my own code with example screenshot. ![]() However, a fellow coder revealed to me plotLine is only half of the algorithm, have to use plotLineLow and plotLineHigh to meet all cases, like vertical line and diagonal line from lower left to upper right. I am glad to learn about this. Thanks! P/S: Attached is example source code and DOS EXE to test the limited use of plotLine function. This post has been edited by Tullamarine: Apr 20 2023, 03:36 PM |
|
![]() |
![]() ![]() ![]()
Junior Member
210 posts Joined: Mar 2022 ![]() |
using html also can...i done 1 game like space impact using html
This post has been edited by kitsunegeisha: Apr 20 2023, 03:37 PM |
|
![]() |
![]() ![]() ![]() ![]()
Junior Member
348 posts Joined: Sep 2008 ![]() ![]() |
can try ChatGPT.
|
|
![]()
Show posts by this member only | IPv6 | Post
#14
|
![]() ![]() ![]()
Validating
163 posts Joined: Apr 2020 ![]() |
QUOTE(kitsunegeisha @ Apr 20 2023, 03:36 PM) I think you mean JavaScript....QUOTE(donald88 @ Apr 20 2023, 03:41 PM) Nice, wholesome video, he is a game director at Blizzard Entertainment.This post has been edited by Tullamarine: May 6 2023, 11:27 PM |
|
![]()
Show posts by this member only | IPv6 | Post
#15
|
![]() ![]() ![]()
Junior Member
120 posts Joined: Jun 2011 From: Kuala Lumpur ![]() ![]() |
QUOTE(FlierMate4 @ Mar 5 2023, 03:41 PM) A alien space ship shooting game, someone did it using BASIC language, no game engine. What programming language do you want to use to create this game? Is it for Windows platform?How easy or how difficult it is to create a game like this? Anyone attempted it before? Please share. ![]() Take a look at this example created using B4X, with syntax similar to BASIC Games [XUI2D] Space Invaders #1 ![]() This post has been edited by aeric80: May 24 2023, 03:50 PM FlierMate liked this post
|
|
![]() |
![]() ![]()
Probation
22 posts Joined: Jun 2022 ![]() ![]() |
https: //yukkit1026.github.io/Dino.git.io/
Not the best but was my pure effort lmao. I know it suck too. Took me 2 weeks to finish it with newbie knowledge towards js. My fyp |
|
![]()
Show posts by this member only | IPv6 | Post
#17
|
![]() ![]() ![]() ![]() ![]()
Junior Member
533 posts Joined: Nov 2020 ![]() |
QUOTE(aeric80 @ May 24 2023, 03:50 PM) What programming language do you want to use to create this game? Is it for Windows platform? Thanks, I took a look, its resources were taken from a Python project (also a similar game), but haven't fully look into details.Take a look at this example created using B4X, with syntax similar to BASIC Games [XUI2D] Space Invaders #1 ![]() Judging from the screenshot, it looks complex than I thought. Yes, I plan for Windows platform, but mine will be console screen mode, and there will be only one game level. QUOTE(yukkit1026 @ May 25 2023, 03:26 PM) https: //yukkit1026.github.io/Dino.git.io/ Nice FYP.Not the best but was my pure effort lmao. I know it suck too. Took me 2 weeks to finish it with newbie knowledge towards js. My fyp ![]() I help to paste links: Game: https://yukkit1026.github.io/Dino.git.io/ Source Code: https://github.com/yukkit1026/Dino.git.io It is playable, but must press Up arrow multiple times. If the bird can occur at the same screen as cactus, then it will be more challenging. Wish you a bright future ahead. yukkit1026 liked this post
|
|
![]()
Show posts by this member only | IPv6 | Post
#18
|
![]() ![]() ![]()
Junior Member
99 posts Joined: May 2022 ![]() |
Ayam did similar game using QBasic in Form 5
|
|
![]()
Show posts by this member only | IPv6 | Post
#19
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,520 posts Joined: Feb 2012 ![]() ![]() |
2 hours, construct
|
|
![]()
Show posts by this member only | IPv6 | Post
#20
|
![]() ![]() ![]() ![]() ![]()
Junior Member
533 posts Joined: Nov 2020 ![]() |
I got the material / resources already, from https://github.com/leerob/space-invaders
![]() But maybe long time doing console app (command line program) , I find it very difficult to write even simple game like this. Our spaceship need to shoot laser, but alien ships (multiple of them) also can shoot laser? ![]() Some more, got Mystery ship (as seen from screenshot above). I see other space invader game is more complex than this, got Blocks in between our spaceship and alien ships..... ![]() Using Visual Studio 2022 to add pictureBox control..... But not much motivation to continuing doing it. ![]() This post has been edited by FlierMate: Yesterday, 03:36 PM |
Change to: | ![]() ![]() ![]() ![]() Time is now: 5th June 2023 - 07:16 PM |